Browse Source

Stop testing python2.7

Change-Id: I82e9b43ba70313ccf94badccc6d607c3b8920e4e
changes/75/691475/1
xuanyandong 1 year ago
parent
commit
815ec7764c
3 changed files with 4 additions and 11 deletions
  1. +2
    -0
      .zuul.yaml
  2. +0
    -2
      setup.cfg
  3. +2
    -9
      tox.ini

+ 2
- 0
.zuul.yaml View File

@ -76,10 +76,12 @@
- release-notes-jobs-python3
check:
jobs:
- openstack-tox-pep8
- qinling-tempest
gate:
queue: qinling
jobs:
- openstack-tox-pep8
- qinling-tempest
experimental:
jobs:


+ 0
- 2
setup.cfg View File

@ -13,8 +13,6 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7


+ 2
- 9
tox.ini View File

@ -1,9 +1,10 @@
[tox]
minversion = 2.0
envlist = py27,py37,pep8
envlist = py37,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
setenv =
@ -18,7 +19,6 @@ whitelist_externals =
find
[testenv:pep8]
basepython = python3
commands = flake8 {posargs}
[testenv:genconfig]
@ -29,12 +29,10 @@ commands =
#set PYTHONHASHSEED=0 to prevent oslo_policy.sphinxext from randomly failing.
[testenv:venv]
basepython = python3
setenv = PYTHONHASHSEED=0
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source qinling --parallel-mode
@ -42,7 +40,6 @@ commands =
{toxinidir}/tools/cover.sh {posargs}
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
whitelist_externals = rm
commands =
@ -50,13 +47,11 @@ commands =
sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]
@ -72,14 +67,12 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,example
enable-extensions=H106,H203,H204,H205,H904
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:api-ref]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf api-ref/build


Loading…
Cancel
Save