mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
Correct harbor-py dependencies & URLs (#2962)
* Correctly specify dependency packages Include the requests package as part of setup.py, so pip will download and install it as a dependency. * Update URLs to point to main harbor git repo harbor-py was moved to the main harbor git repo in July 2016 but the URLs still point to the deprecated repository.
This commit is contained in:
parent
ef909b4e0c
commit
302d5c4073
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
[harbor](https://github.com/vmware/harbor) is the enterprise-class registry server for docker distribution.
|
[harbor](https://github.com/vmware/harbor) is the enterprise-class registry server for docker distribution.
|
||||||
|
|
||||||
[harbor-py](https://github.com/tobegit3hub/harbor-py) is the native and compatible python SDK for harbor. The supported APIs are list below.
|
harbor-py is the native and compatible python SDK for harbor and is included in the harbor git repository under `contrib/sdk/harbor-py`.
|
||||||
|
|
||||||
|
The supported APIs are:
|
||||||
|
|
||||||
- [x] Projects APIs
|
- [x] Projects APIs
|
||||||
- [x] [Get projects](./examples/get_projects.py)
|
- [x] [Get projects](./examples/get_projects.py)
|
||||||
@ -59,7 +61,7 @@ For more usage, please refer to the [examples](./examples/).
|
|||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
If you have any suggestion, feel free to submit [issues](https://github.com/tobegit3hub/harbor-py/issues) or send [pull-requests](https://github.com/tobegit3hub/harbor-py/pulls) for `harbor-py`.
|
If you have suggestions, feel free to submit [issues](https://github.com/vmware/harbor/issues) or send [pull-requests](https://github.com/vmware/harbor/pulls) for `harbor-py`.
|
||||||
|
|
||||||
Publish `harbor-py` package to [pypi](https://pypi.python.org/pypi/harbor-py/) server with the following commands.
|
Publish `harbor-py` package to [pypi](https://pypi.python.org/pypi/harbor-py/) server with the following commands.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
""" The missing harbor python SDK
|
""" The missing harbor python SDK
|
||||||
|
|
||||||
See: https://github.com/tobegit3hub/harbor-py
|
See: https://github.com/vmware/harbor/tree/master/contrib/sdk/harbor-py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
@ -17,7 +17,7 @@ setup(
|
|||||||
description='The missing harbor python SDK',
|
description='The missing harbor python SDK',
|
||||||
|
|
||||||
# The project's main homepage.
|
# The project's main homepage.
|
||||||
url='https://github.com/tobegit3hub/harbor-py',
|
url='https://github.com/vmware/harbor',
|
||||||
|
|
||||||
# Author details
|
# Author details
|
||||||
author='tobe',
|
author='tobe',
|
||||||
@ -68,7 +68,7 @@ setup(
|
|||||||
# your project is installed. For an analysis of "install_requires" vs pip's
|
# your project is installed. For an analysis of "install_requires" vs pip's
|
||||||
# requirements files see:
|
# requirements files see:
|
||||||
# https://packaging.python.org/en/latest/requirements.html
|
# https://packaging.python.org/en/latest/requirements.html
|
||||||
#install_requires=['peppercorn'],
|
install_requires=['requests>2.2.0'],
|
||||||
|
|
||||||
# List additional groups of dependencies here (e.g. development
|
# List additional groups of dependencies here (e.g. development
|
||||||
# dependencies). You can install these using the following syntax,
|
# dependencies). You can install these using the following syntax,
|
||||||
|
Loading…
Reference in New Issue
Block a user