[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

Cleanup some old cuft from setup.cfg.
Fix sphinx-build invocation to publish correctly.

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I61b0dcd730be1889815e47a0c0c354d8f7759571
This commit is contained in:
Andreas Jaeger 2020-02-03 15:22:40 +01:00
parent a857df2e5e
commit a1ed711037
5 changed files with 10 additions and 29 deletions

View File

@ -1,10 +1,8 @@
- project:
templates:
- check-requirements
- lib-forward-testing
- lib-forward-testing-python3
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti

View File

@ -4,6 +4,5 @@
# For generating sphinx documentation
doc8>=0.6.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Python 2.7 support has been dropped. The minimum version of Python now
supported by automaton is Python 3.6.

View File

@ -6,38 +6,17 @@ author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/automaton/latest/
description-file =
README.rst
python-requires = >=3.6
classifier =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: POSIX
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Software Development :: Libraries
[global]
setup-hooks =
pbr.hooks.setup_hook
[files]
packages =
automaton
[nosetests]
cover-erase = true
verbosity = 2
[wheel]
universal = 1
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
warning-is-error = 1
[upload_sphinx]
upload-dir = doc/build/html

View File

@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = py27,py37,docs,pep8
minversion = 3.1.1
envlist = py37,docs,pep8
ignore_basepython_conflict = True
[testenv]
@ -26,7 +26,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
doc8 --ignore-path "doc/source/history.rst" doc/source
sphinx-build -W doc/source doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
deps = {[testenv:docs]deps}