use extras
step 1 to making pankoclient "modern" Change-Id: Ide0f08e066edf7516a4ae68dbb09343fe063743a
This commit is contained in:
parent
a517be6a90
commit
5b51e41fcf
16
setup.cfg
16
setup.cfg
|
@ -25,6 +25,22 @@ classifier =
|
||||||
packages =
|
packages =
|
||||||
pankoclient
|
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]
|
[entry_points]
|
||||||
openstack.cli.extension =
|
openstack.cli.extension =
|
||||||
event = pankoclient.osc.plugin
|
event = pankoclient.osc.plugin
|
||||||
|
|
|
@ -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
12
tox.ini
|
@ -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}
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = .[test]
|
||||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8 {posargs}
|
commands = flake8 {posargs}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
|
# Used by openstack-infra to build the doc
|
||||||
|
deps = .[doc]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
@ -23,7 +25,10 @@ commands =
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
deps = .[doc]
|
||||||
|
commands =
|
||||||
|
rm -rf doc/source/ref
|
||||||
|
python setup.py build_sphinx
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
commands =
|
commands =
|
||||||
|
@ -33,9 +38,6 @@ commands =
|
||||||
commands = oslo_debug_helper -t pankoclient/tests {posargs}
|
commands = oslo_debug_helper -t pankoclient/tests {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
|
||||||
|
|
||||||
show-source = True
|
show-source = True
|
||||||
ignore = E123,E125
|
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
|
Loading…
Reference in New Issue