Skip to content

Commit 2c676b6

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Stop testing python 2 in tox and zuul."
2 parents e43377b + 9246276 commit 2c676b6

2 files changed

Lines changed: 7 additions & 35 deletions

File tree

.zuul.yaml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@
55
Run unit tests for OpenStackClient with master branch of important libs.
66
77
Takes advantage of the base tox job's install-siblings feature.
8-
required-projects:
9-
- openstack/cliff
10-
- openstack/keystoneauth
11-
- openstack/openstacksdk
12-
- openstack/os-client-config
13-
- openstack/osc-lib
14-
- openstack/python-openstackclient
15-
vars:
16-
tox_envlist: py27
17-
# Set work dir to openstackclient so that if it's triggered by one of the
18-
# other repos the tests will run in the same place
19-
zuul_work_dir: src/opendev.org/openstack/python-openstackclient
20-
21-
- job:
22-
name: osc-tox-py27-tips
23-
parent: openstack-tox-py27
24-
description: |
25-
Run unit tests for OpenStackClient with master branch of important libs.
26-
27-
Takes advantage of the base tox job's install-siblings feature.
28-
# The job only tests the latest and shouldn't be run on the stable branches
29-
branches: ^(?!stable)
308
required-projects:
319
- openstack/cliff
3210
- openstack/keystoneauth
@@ -154,7 +132,6 @@
154132
- openstack/python-openstackclient
155133
vars:
156134
devstack_localrc:
157-
USE_PYTHON3: true
158135
LIBS_FROM_GIT: python-openstackclient,openstacksdk,osc-lib,os-client-config
159136
# This is insufficient, but leaving it here as a reminder of what may
160137
# someday be all we need to make this work
@@ -179,11 +156,9 @@
179156
name: osc-tox-unit-tips
180157
check:
181158
jobs:
182-
- osc-tox-py27-tips
183159
- osc-tox-py36-tips
184160
gate:
185161
jobs:
186-
- osc-tox-py27-tips
187162
- osc-tox-py36-tips
188163

189164
- project:
@@ -192,12 +167,10 @@
192167
- osc-tox-unit-tips
193168
- openstack-cover-jobs
194169
- openstack-lower-constraints-jobs
195-
- openstack-python-jobs
196-
- openstack-python3-train-jobs
170+
- openstack-python3-ussuri-jobs
197171
- publish-openstack-docs-pti
198172
- check-requirements
199173
- release-notes-jobs-python3
200-
- lib-forward-testing
201174
- lib-forward-testing-python3
202175
check:
203176
jobs:

tox.ini

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
[tox]
22
minversion = 2.3
3-
envlist = py27,py37,pep8
3+
envlist = py37,pep8
44
skipdist = True
5+
# Automatic envs (pyXX) will only use the python version appropriate to that
6+
# env and ignore basepython inherited from [testenv] if we set
7+
# ignore_basepython_conflict.
8+
ignore_basepython_conflict = True
59

610
[testenv]
711
usedevelop = True
12+
basepython = python3
813
install_command = pip install {opts} {packages}
914
setenv = VIRTUAL_ENV={envdir}
1015
OS_STDOUT_CAPTURE=1
@@ -24,7 +29,6 @@ commands =
2429
{toxinidir}/tools/fast8.sh
2530

2631
[testenv:pep8]
27-
basepython = python3
2832
commands =
2933
flake8
3034
bandit -r openstackclient -x tests -s B105,B106,B107,B401,B404,B603,B606,B607,B110,B605,B101
@@ -86,15 +90,13 @@ commands =
8690
stestr run {posargs}
8791

8892
[testenv:venv]
89-
basepython = python3
9093
deps =
9194
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
9295
-r{toxinidir}/requirements.txt
9396
-r{toxinidir}/doc/requirements.txt
9497
commands = {posargs}
9598

9699
[testenv:cover]
97-
basepython = python3
98100
setenv =
99101
VIRTUAL_ENV={envdir}
100102
PYTHON=coverage run --source openstackclient --parallel-mode
@@ -110,7 +112,6 @@ commands =
110112
oslo_debug_helper -t openstackclient/tests {posargs}
111113

112114
[testenv:docs]
113-
basepython = python3
114115
deps =
115116
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
116117
-r{toxinidir}/requirements.txt
@@ -122,7 +123,6 @@ commands =
122123
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
123124

124125
[testenv:releasenotes]
125-
basepython = python3
126126
deps =
127127
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
128128
-r{toxinidir}/doc/requirements.txt
@@ -140,7 +140,6 @@ import-order-style = pep8
140140
application_import_names = openstackclient
141141

142142
[testenv:lower-constraints]
143-
basepython = python3
144143
deps =
145144
-c{toxinidir}/lower-constraints.txt
146145
-r{toxinidir}/test-requirements.txt

0 commit comments

Comments
 (0)