Merge "Drop python 2.7 support and testing"

This commit is contained in:
Zuul 2019-11-25 17:32:36 +00:00 committed by Gerrit Code Review
commit 9c61088571
5 changed files with 8 additions and 13 deletions

View File

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

View File

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

View File

@ -5,6 +5,4 @@
ansible-lint>=3.0.0 # MIT
coverage>=4.5.1 # Apache-2.0
flake8>=3.5.0 # MIT
# Required for Python 2
mock>=2.0.0 # BSD
stestr>=1.0.0 # Apache-2.0

10
tox.ini
View File

@ -1,9 +1,10 @@
[tox]
minversion = 2.0
envlist = py3,py27,pep8,alint,cover
envlist = py3,pep8,alint,cover
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
passenv =
@ -25,12 +26,10 @@ commands =
stestr run {posargs}
[testenv:pep8]
basepython = python2.7
commands =
flake8 {posargs}
[testenv:docs]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
@ -38,14 +37,12 @@ deps =
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:pdf-docs]
basepython = python3
deps = {[testenv:docs]deps}
whitelist_externals = make
commands = sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:venv]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@ -53,7 +50,6 @@ deps =
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source tenks,ansible --parallel-mode
@ -66,7 +62,6 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:alint]
basepython = python2.7
# ansible-lint doesn't support custom modules, so add ours to the Ansible path.
setenv = ANSIBLE_LIBRARY = {toxinidir}/ansible/action_plugins/
# Exclude roles downloaded from Galaxy (in the form 'author.role') from
@ -76,7 +71,6 @@ commands = bash -c "ansible-lint \
-not -path '{toxinidir}/ansible/roles/*.*/*' -print)"
[testenv:releasenotes]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt

View File

@ -2,7 +2,6 @@
- project:
templates:
- openstack-cover-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3