Merge "Drop python 2.7 support and testing"

This commit is contained in:
Zuul
2019-12-14 16:54:23 +00:00
committed by Gerrit Code Review
6 changed files with 11 additions and 19 deletions

View File

@@ -17,7 +17,6 @@
templates: templates:
- openstack-cover-jobs - openstack-cover-jobs
- openstack-lower-constraints-jobs - openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs - openstack-python3-ussuri-jobs
- check-requirements - check-requirements
- publish-openstack-docs-pti - publish-openstack-docs-pti

View File

@@ -2,6 +2,5 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
openstackdocstheme>=1.20.0 # Apache-2.0 openstackdocstheme>=1.20.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
reno>=2.5.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0

View File

@@ -30,6 +30,7 @@
cat << 'EOF' >>"/tmp/dg-local.conf" cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]] [[local|localrc]]
enable_plugin zun https://opendev.org/openstack/zun enable_plugin zun https://opendev.org/openstack/zun
USE_PYTHON3=True
EOF EOF
executable: /bin/bash executable: /bin/bash

View File

@@ -0,0 +1,6 @@
---
upgrade:
- |
Python 2.7 support has been dropped. Last release of python-zunclient
to support py2.7 is OpenStack Train. The minimum version of Python now
supported by python-zunclient is Python 3.6.

View File

@@ -13,8 +13,6 @@ classifier =
License :: OSI Approved :: Apache Software License License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux Operating System :: POSIX :: Linux
Programming Language :: Python Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7

19
tox.ini
View File

@@ -1,9 +1,11 @@
[tox] [tox]
minversion = 2.0 minversion = 3.1.1
envlist = py27,py37,pep8 envlist = py37,pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3
usedevelop = True usedevelop = True
install_command = pip install -U {opts} {packages} install_command = pip install -U {opts} {packages}
whitelist_externals = bash whitelist_externals = bash
@@ -22,22 +24,15 @@ commands =
[testenv:bandit] [testenv:bandit]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r zunclient -x tests -n5 -ll commands = bandit -r zunclient -x tests -n5 -ll
[testenv:pypy] [testenv:pypy]
basepython = python3
deps = setuptools<3.2 deps = setuptools<3.2
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
[testenv:debug] [testenv:debug]
basepython = python3
commands = oslo_debug_helper -t zunclient/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper -t zunclient/tests {posargs} commands = oslo_debug_helper -t zunclient/tests {posargs}
[testenv:debug-py34] [testenv:debug-py34]
@@ -45,7 +40,6 @@ basepython = python3.4
commands = oslo_debug_helper -t zunclient/tests {posargs} commands = oslo_debug_helper -t zunclient/tests {posargs}
[testenv:docs] [testenv:docs]
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
@@ -64,14 +58,12 @@ commands =
make -C doc/build/pdf make -C doc/build/pdf
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = commands =
flake8 flake8
# Run security linter # Run security linter
bandit -r zunclient -x tests -n5 -ll bandit -r zunclient -x tests -n5 -ll
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
@@ -80,11 +72,9 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
basepython = python3
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source zunclient --parallel-mode PYTHON=coverage run --source zunclient --parallel-mode
@@ -119,7 +109,6 @@ setenv =
passenv = OS_* passenv = OS_*
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3
deps = deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt