Kaynağa Gözat

Merge branch 'master' into fr/signed-url

FabioRosado 4 yıl önce
ebeveyn
işleme
0178eddd00
3 değiştirilmiş dosya ile 15 ekleme ve 5 silme
  1. 1 1
      README.rst
  2. 9 0
      docs/topics/install.rst
  3. 5 4
      setup.py

+ 1 - 1
README.rst

@@ -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.

+ 9 - 0
docs/topics/install.rst

@@ -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

+ 5 - 4
setup.py

@@ -53,9 +53,7 @@ REQS_OPENSTACK = [
     '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',
@@ -76,10 +74,13 @@ setup(
     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
     },