Add support for python 3.8

- Introduce support of python 3.8 [1].
- python 3.8 support only jsonschema 3.2.0 [2] (also supported by py37 & py36)
- remove py27 obsolete code

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria
[2] https://github.com/Julian/jsonschema/pull/627

Change-Id: Iab5d3e2e4f58bc175119029d98b381a33b09b523
This commit is contained in:
Hervé Beraud 2020-05-28 16:37:53 +02:00
parent d9695cd687
commit b31e53670c
4 changed files with 4 additions and 11 deletions

View File

@ -7,7 +7,7 @@ pbr>=1.6 # Apache-2.0
Mako>=0.4.0 # MIT
botocore>=1.5.1 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT
jsonschema>=3.2.0 # MIT
keystoneauth1>=2.1.0 # Apache-2.0
oslo.concurrency>=3.5.0 # Apache-2.0
oslo.serialization>=1.10.0 # Apache-2.0

View File

@ -3,12 +3,13 @@ name = sahara-tests
summary = Sahara tests
description-file = README.rst
license = Apache Software License
python-requires = >=3.6
classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators

View File

@ -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>=1.8'],
pbr=True)

View File

@ -1,5 +1,5 @@
[tox]
envlist = py37,py36,py35,pep8,releasenotes
envlist = py38,py37,py36,pep8,releasenotes
minversion = 2.0
skipsdist = True
# this allows tox to infer the base python from the environment name