From 60699c1b06ae39ba2e98548fdc2c16b3da37d642 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 4 Feb 2020 14:23:29 +0100 Subject: [PATCH] [ussuri][goal] Drop python 2.7 support and testing OpenStack is dropping the py2.7 support in ussuri cycle. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Remove install_command from tox.ini as cleanup. Switch to Ussuri jobs Change-Id: I1a3b3e542f2a6cb03f98d80ec5685c315031eed7 Sem-Ver: api-break --- .zuul.yaml | 3 +-- .../notes/drop-python-2-7-73d3113c69d724d6.yaml | 5 +++++ setup.cfg | 14 +++++--------- setup.py | 8 -------- tox.ini | 13 ++++--------- 5 files changed, 15 insertions(+), 28 deletions(-) create mode 100644 releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 316c6a6..17a295e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,7 +1,6 @@ - project: templates: - - openstack-python-jobs - - openstack-python3-train-jobs + - openstack-python3-ussuri-jobs - openstack-cover-jobs - publish-openstack-docs-pti - openstack-lower-constraints-jobs diff --git a/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml b/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml new file mode 100644 index 0000000..0e8117e --- /dev/null +++ b/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. The minimum version of Python now + supported by reno is Python 3.6. diff --git a/setup.cfg b/setup.cfg index c963a91..1280899 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,6 +6,7 @@ description-file = author = OpenStack author-email = openstack-discuss@lists.openstack.org home-page = https://docs.openstack.org/reno/latest/ +python-requires = >=3.6 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -13,11 +14,11 @@ 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 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: Implementation :: CPython [files] packages = @@ -31,10 +32,8 @@ distutils.commands = [extras] sphinx = - sphinx>=1.6.1,!=1.6.6,!=1.6.7,<2.0.0;python_version=='2.7' # BSD - sphinx>=1.6.1,!=1.6.6,!=1.6.7,!=2.1.0;python_version>='3.4' # BSD - docutils>=0.11,<0.15;python_version=='2.7' # OSI-Approved Open Source, Public Domain - docutils>=0.11;python_version>='3.4' # OSI-Approved Open Source, Public Domain + sphinx>=1.6.1,!=1.6.6,!=1.6.7,!=2.1.0 # BSD + docutils>=0.11 # OSI-Approved Open Source, Public Domain [compile_catalog] directory = reno/locale @@ -44,6 +43,3 @@ domain = reno domain = reno output_dir = reno/locale input_file = reno/locale/reno.pot - -[wheel] -universal = 1 diff --git a/setup.py b/setup.py index 056c16c..1f988cd 100644 --- a/setup.py +++ b/setup.py @@ -16,14 +16,6 @@ # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools -# In python < 2.7.4, a lazy loading of package `pbr` will break -# setuptools if some other modules registered functions in `atexit`. -# solution from: http://bugs.python.org/issue15881#msg170215 -try: - import multiprocessing # noqa -except ImportError: - pass - setuptools.setup( setup_requires=['pbr'], pbr=True) diff --git a/tox.ini b/tox.ini index 4654634..6c0fecf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,11 @@ [tox] -minversion = 2.0 -envlist = py27,py37,pep8 +minversion = 3.1.0 +envlist = py37,pep8 +ignore_basepython_conflict = True [testenv] +basepython = python3 usedevelop = True -install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = @@ -14,7 +15,6 @@ commands = stestr run --slowest {posargs} [testenv:pep8] -basepython = python3 deps = {[testenv]deps} hacking >= 1.1.0,<1.2.0 commands = @@ -22,17 +22,14 @@ commands = reno -q lint [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt {[testenv]deps} [testenv:venv] -basepython = python3 commands = {posargs} [testenv:cover] -basepython = python3 setenv = {[testenv]setenv} PYTHON=coverage run --source reno --parallel-mode @@ -49,11 +46,9 @@ commands = deps = -c{toxinidir}/lower-constraints.txt {[testenv]deps} -basepython = python3 commands = sphinx-build -a -W -E -b html doc/source doc/build/html [testenv:debug] -basepython = python3 commands = oslo_debug_helper {posargs} [flake8]