From 6dd0e536b9869c6b75e4eaba7f30b5faebdf87f2 Mon Sep 17 00:00:00 2001 From: Wes Hayutin Date: Mon, 18 May 2020 10:19:22 -0600 Subject: [PATCH] Stop testing python2.7 Train was the last release supporting python2. Let's rip the bandaid off. Also includes remove tripleo jobs from os-collect-config master Partial-Bug: #1879361 Co-Authored-By: xuanyandong Co-Authored-By: Alex Schultz Change-Id: I46c79ce87f474a986f1983fa9164e6e4cbeaf8de --- .../notes/drop-python2.7-support-f133b716812d39f0.yaml | 6 ++++++ setup.cfg | 2 -- tox.ini | 6 ++---- zuul.d/layout.yaml | 3 --- 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 releasenotes/notes/drop-python2.7-support-f133b716812d39f0.yaml diff --git a/releasenotes/notes/drop-python2.7-support-f133b716812d39f0.yaml b/releasenotes/notes/drop-python2.7-support-f133b716812d39f0.yaml new file mode 100644 index 0000000..dd233ab --- /dev/null +++ b/releasenotes/notes/drop-python2.7-support-f133b716812d39f0.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. Last release os-collect-config support + py2.7 is OpenStack Train. The minimum version of Python now + supported by os-collect-config is Python 3.6. diff --git a/setup.cfg b/setup.cfg index 9f1720a..2c11115 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,8 +15,6 @@ classifier = License :: OSI Approved :: Apache Software License Operating System :: OS Independent 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 diff --git a/tox.ini b/tox.ini index 2b77046..c6d3034 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] minversion = 2.0 skipsdist = True -envlist = py27,py37,pep8 +envlist = py37,pep8 [testenv] +basepython = python3 usedevelop = True install_command = pip install {opts} {packages} deps = @@ -17,11 +18,9 @@ commands = sitepackages = True [testenv:pep8] -basepython = python3 commands = flake8 [testenv:cover] -basepython = python3 setenv = PYTHON=coverage run --source os_collect_config --parallel-mode commands = @@ -31,7 +30,6 @@ commands = coverage xml -o cover/coverage.xml [testenv:venv] -basepython = python3 commands = {posargs} [flake8] diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml index d7b7fe0..603ae00 100644 --- a/zuul.d/layout.yaml +++ b/zuul.d/layout.yaml @@ -2,7 +2,4 @@ templates: - check-requirements - openstack-cover-jobs - - openstack-python-jobs - openstack-python3-ussuri-jobs - - tripleo-multinode-container-minimal -