diff --git a/LICENSE b/LICENSE index fdddb29..7346f85 100644 --- a/LICENSE +++ b/LICENSE @@ -1,24 +1,20 @@ -This is free and unencumbered software released into the public domain. +Copyright (c) 2012-2023 Audel Rouhi -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index a428192..afec485 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,32 @@ # GitLab API + +![PyPI - Version](https://img.shields.io/pypi/v/gitlab-api) +![PyPI - Downloads](https://img.shields.io/pypi/dd/gitlab-api) +![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/gitlab-api) +![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/gitlab-api) +![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/gitlab-api) +![PyPI - License](https://img.shields.io/pypi/l/gitlab-api) +![GitHub](https://img.shields.io/github/license/Knuckles-Team/gitlab-api) + +![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/gitlab-api) +![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/gitlab-api) +![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/gitlab-api) +![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/gitlab-api) + +![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/gitlab-api) +![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/gitlab-api) +![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/gitlab-api) +![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/gitlab-api) +![PyPI - Wheel](https://img.shields.io/pypi/wheel/gitlab-api) +![PyPI - Implementation](https://img.shields.io/pypi/implementation/gitlab-api) + *Version: 0.5.0* GitLab API Python Wrapper -Includes a large variety of API calls to GitLab +Includes a large portion of useful API calls to GitLab -This repository is actively maintained and will continue adding more API calls +This repository is actively maintained - Contributions are welcome! ### API Calls: - Branches @@ -24,7 +45,9 @@ This repository is actively maintained and will continue adding more API calls - Users - Wiki -### Usage: +
+ Usage: + ```python #!/usr/bin/python # coding: utf-8 @@ -49,22 +72,25 @@ response = client.get_runners(runner_type='instance_type', all_runners=True) print(f"Runners: {response}") ``` -#### Install Instructions +
+ +
+ Installation Instructions: + Install Python Package ```bash python -m pip install gitlab-api ``` -#### Build Instructions -Build Python Package +
-```bash -sudo chmod +x ./*.py -pip install . -python setup.py bdist_wheel --universal -# Test Pypi -twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password" -# Prod Pypi -twine upload dist/* --verbose -u "Username" -p "Password" -``` +
+ Repository Owners: + + + + +![GitHub followers](https://img.shields.io/github/followers/Knucklessg1) +![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1) +
diff --git a/setup.py b/setup.py index e50350b..44b7bb2 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ url='https://github.com/Knuckles-Team/gitlab-api', author=__author__, author_email='knucklessg1@gmail.com', - license='Unlicense', + license='MIT', packages=['gitlab_api'], include_package_data=True, install_requires=[str(requirement.requirement) for requirement in requirements],