From 27f044df4f8f17ae04e8ee6482f5e6f677315481 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Tue, 15 Dec 2015 12:34:30 -0600 Subject: [PATCH] Remove requests from requirements With the move to keystoneauth, we no longert depend on the requests library for anything at runtime. We do still have one test, which is valid, that depends on requests to ensure that https://bugs.launchpad.net/python-openstacksdk/+bug/1428342 stays fixed. This change moves requests to test-requirements and additionally removes the list of dependencies in the README file, as it duplicates the only place requirements are truly needed. Change-Id: I6aa8e71573e685b2748150ea5cec946b65d525ae --- README.rst | 10 ---------- doc/source/contributors/setup.rst | 16 +--------------- requirements.txt | 1 - test-requirements.txt | 1 + 4 files changed, 2 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index b931caa5..a75f448a 100644 --- a/README.rst +++ b/README.rst @@ -30,16 +30,6 @@ Documentation Documentation is available at http://developer.openstack.org/sdks/python/openstacksdk/ -Requirements ------------- - -* Python 2.7, Python 3.3+ -* pbr -* requests -* six -* stevedore -* oslo.utils - License ------- diff --git a/doc/source/contributors/setup.rst b/doc/source/contributors/setup.rst index c81cf690..628b685b 100644 --- a/doc/source/contributors/setup.rst +++ b/doc/source/contributors/setup.rst @@ -106,21 +106,7 @@ or to run example scripts, you need to install the project's dependencies.:: (sdk3)$ pip install -r requirements.txt After the downloads and installs are complete, you'll have a fully functional -environment to use the SDK in. This step installs the following dependencies. - -* `oslo.utils `_, which we use - for its ``timeutils`` module when calculating if or when authentication - tokens are considered expired. -* `pbr `_, or the Python Build - Reasonableness project. pbr injects a set of common defaults which are used - throughout the OpenStack project. -* `requests `_, which we use in the - :class:`~openstack.transport.Transport` class to handle HTTP requests and - responses. -* `six `_, which we use for compatibility - across Python 2 and 3. -* `stevedore `_, which we use for - working with plugins. stevedore builds on setuptools ``entry_points``. +environment to use the SDK in. Building the Documentation -------------------------- diff --git a/requirements.txt b/requirements.txt index 01e434a6..d4b6a789 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. pbr>=1.6 -requests!=2.9.0,>=2.8.1 six>=1.9.0 stevedore>=1.5.0 # Apache-2.0 oslo.utils>=3.2.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index f22e2e7b..be3976e5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -10,6 +10,7 @@ mock>=1.2 python-subunit>=0.0.18 openstackdocstheme>=1.0.3 os-testr>=0.4.1 +requests!=2.9.0,>=2.8.1 requests-mock>=0.7.0 # Apache-2.0 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 testrepository>=0.0.18