diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-05-20 09:06:46 +1200 |
---|---|---|
committer | Roman Podoliaka <rpodolyaka@mirantis.com> | 2015-11-30 17:01:36 +0000 |
commit | 01359ef1671bf2b7ecd22c210b35c9987c3a0550 (patch) | |
tree | b7099cadc58f7e00802f29c2e53de204599cc125 /setup.cfg | |
parent | 936ffc187d445ed7644d755bcdfa3be682b786fa (diff) | |
download | oslo-db-01359ef1671bf2b7ecd22c210b35c9987c3a0550.tar.gz |
Refactor deps to use extras and env markers4.1.0
Adds extras for e.g. nova to use for testing, so that oslo.db can
control the libraries used.
Removes test-requirements.txt - it becomes a single env-marker
controlled list, and shows how tox will access those dependencies.
Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>
Change-Id: I97ef5bad215abe60d92c3fda4474c48ccb13eab0
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 35 |
1 files changed, 30 insertions, 5 deletions
@@ -18,6 +18,36 @@ classifier = Programming Language :: Python :: 3 Programming Language :: Python :: 3.4 +[extras] +# So e.g. nova can test-depend on oslo.db[mysql] +mysql = + PyMySQL>=0.6.2 # MIT License +# or oslo.db[mysql-c] +mysql-c = + MySQL-python:python_version=='2.7' +# or oslo.db[postgresql] +postgresql = + psycopg2>=2.5 +# Dependencies for testing oslo.db itself. +test = + hacking<0.11,>=0.10.0 + coverage>=3.6 + discover + doc8 # Apache-2.0 + eventlet>=0.17.4 + fixtures>=1.3.1 + mock>=1.2 + python-subunit>=0.0.18 + sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 + oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0 + oslotest>=1.10.0 # Apache-2.0 + testrepository>=0.0.18 + testtools>=1.4.0 + tempest-lib>=0.10.0 +fixtures = + testresources>=0.2.4 + testscenarios>=0.4 + [files] packages = oslo_db @@ -56,11 +86,6 @@ keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg output_file = oslo.db/locale/oslo.db.pot -[extras] -fixtures = - testresources>=0.2.4 - testscenarios>=0.4 - [pbr] warnerrors = True autodoc_index_modules = True |