use extras

step 1 to making pankoclient "modern"

Change-Id: Ide0f08e066edf7516a4ae68dbb09343fe063743a
This commit is contained in:
gord chung 2017-05-16 18:18:46 +00:00 committed by gordon chung
parent a517be6a90
commit 5b51e41fcf
3 changed files with 23 additions and 21 deletions

View File

@ -25,6 +25,22 @@ classifier =
packages =
pankoclient
[extras]
test =
coverage>=4.0 # Apache-2.0
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
mock>=2.0 # BSD
python-openstackclient>=3.3.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0
reno>=1.8.0 # Apache-2.0
requests-mock>=1.1 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
doc =
sphinx!=1.3b1,!=1.6.1,>=1.2.1 # BSD
oslosphinx>=4.7.0 # Apache-2.0
[entry_points]
openstack.cli.extension =
event = pankoclient.osc.plugin

View File

@ -1,16 +0,0 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
coverage>=4.0 # Apache-2.0
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
mock>=2.0 # BSD
python-openstackclient>=3.3.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
oslosphinx>=4.7.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
reno>=1.8.0 # Apache-2.0
requests-mock>=1.1 # Apache-2.0
sphinx!=1.3b1,<1.4,>=1.2.1 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD

12
tox.ini
View File

@ -8,13 +8,15 @@ usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
deps = .[test]
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
# Used by openstack-infra to build the doc
deps = .[doc]
commands = {posargs}
[testenv:cover]
@ -23,7 +25,10 @@ commands =
coverage report
[testenv:docs]
commands = python setup.py build_sphinx
deps = .[doc]
commands =
rm -rf doc/source/ref
python setup.py build_sphinx
[testenv:releasenotes]
commands =
@ -33,9 +38,6 @@ commands =
commands = oslo_debug_helper -t pankoclient/tests {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build