[ussuri][goal] Drop python 2.7 support

OpenStack is dropping the py2.7 support in ussuri cycle.

specs repo either has py27 job or requirement or tox env.

Add bindep.txt file so that wheels can be build.

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

Change-Id: I51c3bcf161b363e4b188175b75097d19a0d10a74
This commit is contained in:
Ghanshyam Mann 2019-12-13 01:02:25 +00:00 committed by Andreas Jaeger
parent ccb013520d
commit 90d26b2ac4
3 changed files with 16 additions and 6 deletions

View File

@ -3,7 +3,7 @@
- openstack-specs-jobs - openstack-specs-jobs
check: check:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-py37
gate: gate:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-py37

10
bindep.txt Normal file
View File

@ -0,0 +1,10 @@
# This is a cross-platform list tracking distribution packages needed for install and tests; # see http://docs.openstack.org/infra/bindep/ for additional information.
gcc [platform:rpm test]
libffi-dev [platform:dpkg]
libffi-devel [platform:redhat]
libffi48-devel [platform:suse]
virtual/libffi [platform:gentoo]
libpcre3-dev [platform:dpkg test]
pcre-devel [platform:rpm test]

View File

@ -1,9 +1,11 @@
[tox] [tox]
minversion = 1.6 minversion = 3.1.1
envlist = docs,py27 envlist = docs,pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3
usedevelop = True usedevelop = True
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages} install_command = pip install -U {opts} {packages}
@ -11,11 +13,9 @@ deps = -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:docs] [testenv:docs]
basepython = python3
whitelist_externals = whitelist_externals =
rm rm
commands = commands =