Skip to content

Commit

Permalink
Merge pull request #292 from RyanSiu1995/Separate-the-dependencies
Browse files Browse the repository at this point in the history
Separate the dependencies
  • Loading branch information
nuwang committed Nov 24, 2021
2 parents d1cbbcd + 01e175b commit bf11839
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Install the latest release from PyPi:

.. code-block:: shell
pip install cloudbridge
pip install cloudbridge[full]
For other installation options, see the `installation page`_ in
the documentation.
Expand Down
9 changes: 9 additions & 0 deletions docs/topics/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ The development version of the library can be installed directly from the

$ pip install --upgrade git+https://github.com/CloudVE/cloudbridge.git

Single Provider Installation
-----------------------------
If you only require to integrate with one to two providers, you can install
the particular providers only as the following.

$ pip install cloudbridge[aws,gcp]

The available options are aws, azure, gcp and openstack.

Developer installation
----------------------
To install additional libraries required by CloudBridge contributors, such as
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
'python-neutronclient>=6.0.0,<8.0',
'python-keystoneclient>=3.13.0,<5.0'
]
REQS_SIMPLE = REQS_BASE + REQS_AWS + REQS_GCP + REQS_OPENSTACK
REQS_AZURE = REQS_SIMPLE + REQS_AZURE
REQS_FULL = REQS_SIMPLE + REQS_AZURE
REQS_FULL = REQS_AWS + REQS_GCP + REQS_OPENSTACK + REQS_AZURE
# httpretty is required with/for moto 1.0.0 or AWS tests fail
REQS_DEV = ([
'tox>=2.1.1',
Expand All @@ -76,10 +74,13 @@
author_email='help@genome.edu.au',
url='http://cloudbridge.cloudve.org/',
setup_requires=['nose>=1.0'],
install_requires=REQS_SIMPLE,
install_requires=REQS_BASE,
extras_require={
':python_version<"3.3"': ['ipaddress'],
'azure': REQS_AZURE,
'gcp': REQS_GCP,
'aws': REQS_AWS,
'openstack': REQS_OPENSTACK,
'full': REQS_FULL,
'dev': REQS_DEV
},
Expand Down

0 comments on commit bf11839

Please sign in to comment.