Stop testing python2.7

Train was the last release supporting python2. Let's rip the bandaid
off.

Change-Id: I842cf731fbad0dae72cf902366655eb7b4f8ca1b
This commit is contained in:
xuanyandong 2019-10-28 17:10:18 +08:00 committed by Sean McGinnis
parent 84d84645d1
commit cc543ed5af
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
4 changed files with 17 additions and 12 deletions

View File

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

View File

@ -3,10 +3,10 @@ name = os-refresh-config
author = OpenStack author = OpenStack
author-email = openstack-discuss@lists.openstack.org author-email = openstack-discuss@lists.openstack.org
summary = Refresh system configuration summary = Refresh system configuration
description-file = description-file =
README.rst README.rst
home-page = http://github.com/openstack/os-refresh-config home-page = http://github.com/openstack/os-refresh-config
classifier = classifier =
Development Status :: 4 - Beta Development Status :: 4 - Beta
Environment :: Console Environment :: Console
Environment :: OpenStack Environment :: OpenStack
@ -15,14 +15,12 @@ classifier =
License :: OSI Approved :: Apache Software License License :: OSI Approved :: Apache Software License
Operating System :: OS Independent Operating System :: OS Independent
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
[files] [files]
packages = packages =
os_refresh_config os_refresh_config
[entry_points] [entry_points]
@ -30,7 +28,7 @@ console_scripts =
os-refresh-config = os_refresh_config.os_refresh_config:main os-refresh-config = os_refresh_config.os_refresh_config:main
[egg_info] [egg_info]
tag_build = tag_build =
tag_date = 0 tag_date = 0
tag_svn_revision = 0 tag_svn_revision = 0

12
tox.ini
View File

@ -1,9 +1,14 @@
[tox] [tox]
minversion = 2.0 minversion = 3.1.0
skipsdist = True skipsdist = True
envlist = py27,py37,pep8 envlist = py37,pep8
skip_missing_interpreters = true
# this allows tox to infer the base python from the environment name
# and override any basepython configured in this file
ignore_basepython_conflict=true
[testenv] [testenv]
basepython = python3
usedevelop = True usedevelop = True
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}
@ -17,11 +22,9 @@ commands =
sitepackages = True sitepackages = True
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = flake8 commands = flake8
[testenv:cover] [testenv:cover]
basepython = python3
setenv = setenv =
PYTHON=coverage run --source os_refresh_config --parallel-mode PYTHON=coverage run --source os_refresh_config --parallel-mode
commands = commands =
@ -31,7 +34,6 @@ commands =
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[flake8] [flake8]

View File

@ -2,6 +2,5 @@
templates: templates:
- check-requirements - check-requirements
- openstack-cover-jobs - openstack-cover-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs - openstack-python3-ussuri-jobs
- tripleo-multinode-container-minimal - tripleo-multinode-container-minimal