Drop python 2.7 support and testing
Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Co-Authored-By: Andreas Jaeger <aj@suse.com> Change-Id: I32d5dc317b821dee4a625506f227a8f5bfaaecfc
This commit is contained in:
parent
70cef7f849
commit
dc37b3569b
@ -2,7 +2,6 @@
|
|||||||
templates:
|
templates:
|
||||||
- check-requirements
|
- check-requirements
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
- openstack-python-jobs
|
|
||||||
- openstack-python3-ussuri-jobs
|
- openstack-python3-ussuri-jobs
|
||||||
- publish-openstack-docs-pti
|
- publish-openstack-docs-pti
|
||||||
- openstack-lower-constraints-jobs
|
- openstack-lower-constraints-jobs
|
||||||
|
6
releasenotes/notes/drop-py2-7-c7fce3322cc66380.yaml
Normal file
6
releasenotes/notes/drop-py2-7-c7fce3322cc66380.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Python 2.7 support has been dropped. Last release of openstack-doc-tools
|
||||||
|
to support python 2.7 is 2.0.0. The minimum version of Python now
|
||||||
|
supported by openstack-doc-tools is Python 3.6.
|
@ -6,7 +6,6 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
|||||||
iso8601>=0.1.11 # MIT
|
iso8601>=0.1.11 # MIT
|
||||||
lxml!=3.7.0,>=3.4.1 # BSD
|
lxml!=3.7.0,>=3.4.1 # BSD
|
||||||
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
||||||
sphinx>=1.8.0,<2.0.0;python_version=='2.7' # BSD
|
sphinx>=1.8.0,!=2.1.0 # BSD
|
||||||
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
|
|
||||||
demjson>=2.2.2 # GLGPLv3+
|
demjson>=2.2.2 # GLGPLv3+
|
||||||
PyYAML>=3.12 # MIT
|
PyYAML>=3.12 # MIT
|
||||||
|
@ -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
|
||||||
|
15
tox.ini
15
tox.ini
@ -1,9 +1,14 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 3.1.0
|
||||||
envlist = py27,py37,pep8
|
envlist = py37,pep8
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
# Automatic envs (pyXX) will only use the python version appropriate to that
|
||||||
|
# env and ignore basepython inherited from [testenv] if we set
|
||||||
|
# ignore_basepython_conflict.
|
||||||
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install {opts} {packages}
|
install_command = pip install {opts} {packages}
|
||||||
# Install also sitemap scraping tool, not installed by default
|
# Install also sitemap scraping tool, not installed by default
|
||||||
@ -15,7 +20,6 @@ deps = scrapy>=1.0.0
|
|||||||
commands = stestr run --slowest {posargs}
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
flake8
|
flake8
|
||||||
# Run doc8 to check .rst and .txt files.
|
# Run doc8 to check .rst and .txt files.
|
||||||
@ -27,7 +31,6 @@ commands =
|
|||||||
bashate bin/doc-tools-check-languages bin/doc-tools-build-rst
|
bashate bin/doc-tools-check-languages bin/doc-tools-build-rst
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
@ -35,11 +38,9 @@ commands =
|
|||||||
# commands = functional test command goes here
|
# commands = functional test command goes here
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
|
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
|
||||||
|
|
||||||
@ -50,7 +51,6 @@ commands =
|
|||||||
# separately, outside of the requirements files, and develop mode disabled
|
# separately, outside of the requirements files, and develop mode disabled
|
||||||
# explicitly to avoid unnecessarily installing the checked-out repo too (this
|
# explicitly to avoid unnecessarily installing the checked-out repo too (this
|
||||||
# further relies on "tox.skipsdist = True" above).
|
# further relies on "tox.skipsdist = True" above).
|
||||||
basepython = python3
|
|
||||||
deps = bindep
|
deps = bindep
|
||||||
commands = bindep test
|
commands = bindep test
|
||||||
usedevelop = False
|
usedevelop = False
|
||||||
@ -64,7 +64,6 @@ max-complexity=29
|
|||||||
ignore = H101
|
ignore = H101
|
||||||
|
|
||||||
[testenv:lower-constraints]
|
[testenv:lower-constraints]
|
||||||
basepython = python3
|
|
||||||
# Install also sitemap scraping tool, not installed by default
|
# Install also sitemap scraping tool, not installed by default
|
||||||
# therefore not in requirements file
|
# therefore not in requirements file
|
||||||
deps =
|
deps =
|
||||||
|
Loading…
Reference in New Issue
Block a user