Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7.3 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Remove install_command from tox.ini, the default is fine
- Switch to hacking 3.0, ignore W503 and W504 (as in cinder repo)
- Use TOX_CONSTRAINTS instead of obsolete UPPER_CONSTRAINTS
Change-Id: Ia623c8af7f03c25bce7e4600693a7e834ab70000
Andreas Jaeger
6 years ago
| 20 | 20 |
packages =
|
| 21 | 21 |
cinder_tempest_plugin
|
| 22 | 22 |
|
| 23 | |
[build_sphinx]
|
| 24 | |
all-files = 1
|
| 25 | |
warning-is-error = 1
|
| 26 | |
source-dir = doc/source
|
| 27 | |
build-dir = doc/build
|
| 28 | |
|
| 29 | |
[upload_sphinx]
|
| 30 | |
upload-dir = doc/build/html
|
| 31 | |
|
| 32 | |
[compile_catalog]
|
| 33 | |
directory = cinder_tempest_plugin/locale
|
| 34 | |
domain = cinder_tempest_plugin
|
| 35 | |
|
| 36 | |
[update_catalog]
|
| 37 | |
domain = cinder_tempest_plugin
|
| 38 | |
output_dir = cinder_tempest_plugin/locale
|
| 39 | |
input_file = cinder_tempest_plugin/locale/cinder_tempest_plugin.pot
|
| 40 | |
|
| 41 | |
[extract_messages]
|
| 42 | |
keywords = _ gettext ngettext l_ lazy_gettext
|
| 43 | |
mapping_file = babel.cfg
|
| 44 | |
output_file = cinder_tempest_plugin/locale/cinder_tempest_plugin.pot
|
| 45 | |
|
| 46 | 23 |
[entry_points]
|
| 47 | 24 |
tempest.test_plugins =
|
| 48 | 25 |
cinder_tests = cinder_tempest_plugin.plugin:CinderTempestPlugin
|
| 12 | 12 |
# See the License for the specific language governing permissions and
|
| 13 | 13 |
# limitations under the License.
|
| 14 | 14 |
|
| 15 | |
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
| 16 | 15 |
import setuptools
|
| 17 | |
|
| 18 | |
# In python < 2.7.4, a lazy loading of package `pbr` will break
|
| 19 | |
# setuptools if some other modules registered functions in `atexit`.
|
| 20 | |
# solution from: http://bugs.python.org/issue15881#msg170215
|
| 21 | |
try:
|
| 22 | |
import multiprocessing # noqa
|
| 23 | |
except ImportError:
|
| 24 | |
pass
|
| 25 | 16 |
|
| 26 | 17 |
setuptools.setup(
|
| 27 | 18 |
setup_requires=['pbr>=2.0.0'],
|
| 1 | 1 |
# of appearance. Changing the order has an impact on the overall integration
|
| 2 | 2 |
# process, which may cause wedges in the gate later.
|
| 3 | 3 |
|
| 4 | |
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
|
4 |
hacking>=3.0,<3.1 # Apache-2.0
|
| 5 | 5 |
|
| 6 | 6 |
coverage!=4.4,>=4.0 # Apache-2.0
|
| 7 | 7 |
python-subunit>=1.0.0 # Apache-2.0/BSD
|
| 8 | 8 |
[testenv]
|
| 9 | 9 |
basepython = python3
|
| 10 | 10 |
usedevelop = True
|
| 11 | |
install_command = pip install {opts} {packages}
|
| 12 | 11 |
setenv =
|
| 13 | 12 |
VIRTUAL_ENV={envdir}
|
| 14 | 13 |
PYTHONWARNINGS=default::DeprecationWarning
|
| 15 | |
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
14 |
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
| 16 | 15 |
-r{toxinidir}/test-requirements.txt
|
| 17 | 16 |
commands = python setup.py test --slowest --testr-args='{posargs}'
|
| 18 | 17 |
|
|
| 24 | 23 |
|
| 25 | 24 |
[flake8]
|
| 26 | 25 |
# E123, E125 skipped as they are invalid PEP-8.
|
| 27 | |
|
|
26 |
# W503 line break before binary operator
|
|
27 |
# W504 line break after binary operator
|
| 28 | 28 |
show-source = True
|
| 29 | |
ignore = E123,E125
|
|
29 |
ignore = E123,E125,W503,W504
|
| 30 | 30 |
builtins = _
|
| 31 | 31 |
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|