From 90d26b2ac42c5dc44a95e38cf472f711657dcb6a Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Fri, 13 Dec 2019 01:02:25 +0000 Subject: [PATCH] [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 --- .zuul.yaml | 4 ++-- bindep.txt | 10 ++++++++++ tox.ini | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 bindep.txt diff --git a/.zuul.yaml b/.zuul.yaml index f3848fbe..99198961 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -3,7 +3,7 @@ - openstack-specs-jobs check: jobs: - - openstack-tox-py27 + - openstack-tox-py37 gate: jobs: - - openstack-tox-py27 + - openstack-tox-py37 diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 00000000..f5b0db95 --- /dev/null +++ b/bindep.txt @@ -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] + diff --git a/tox.ini b/tox.ini index 3ca625ef..bac71fc0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,11 @@ [tox] -minversion = 1.6 -envlist = docs,py27 +minversion = 3.1.1 +envlist = docs,pep8 skipsdist = True +ignore_basepython_conflict = True [testenv] +basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} install_command = pip install -U {opts} {packages} @@ -11,11 +13,9 @@ deps = -r{toxinidir}/requirements.txt commands = stestr run --slowest {posargs} [testenv:venv] -basepython = python3 commands = {posargs} [testenv:docs] -basepython = python3 whitelist_externals = rm commands =