Remove python2 jobs from zuul for this repo

The python2.7 jobs will no longer be executed as part
of the zuul check and gate.

Story: 2010531
Task: 47517

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I253518a852ebc8b04e8c2c07e961362f6d62f5d0
This commit is contained in:
Leonardo Fagundes Luz Serrano 2023-02-24 17:44:34 -03:00
parent 05f527ce04
commit 82db09f19c
4 changed files with 6 additions and 39 deletions

View File

@ -5,7 +5,6 @@
check: check:
jobs: jobs:
- openstack-tox-linters - openstack-tox-linters
- k8sapp-oidc-tox-py27
- k8sapp-oidc-tox-py39 - k8sapp-oidc-tox-py39
- k8sapp-oidc-tox-flake8 - k8sapp-oidc-tox-flake8
- k8sapp-oidc-tox-pylint - k8sapp-oidc-tox-pylint
@ -13,7 +12,6 @@
gate: gate:
jobs: jobs:
- openstack-tox-linters - openstack-tox-linters
- k8sapp-oidc-tox-py27
- k8sapp-oidc-tox-py39 - k8sapp-oidc-tox-py39
- k8sapp-oidc-tox-flake8 - k8sapp-oidc-tox-flake8
- k8sapp-oidc-tox-pylint - k8sapp-oidc-tox-pylint
@ -22,23 +20,6 @@
jobs: jobs:
- stx-oidc-auth-armada-app-upload-git-mirror - stx-oidc-auth-armada-app-upload-git-mirror
- job:
name: k8sapp-oidc-tox-py27
parent: tox
description: |
Run py27 test for k8sapp_oidc
nodeset: ubuntu-xenial
required-projects:
- starlingx/config
- starlingx/fault
- starlingx/update
- starlingx/utilities
files:
- python-k8sapp-oidc/*
vars:
tox_envlist: py27
tox_extra_args: -c python-k8sapp-oidc/k8sapp_oidc/tox.ini
- job: - job:
name: k8sapp-oidc-tox-py39 name: k8sapp-oidc-tox-py39
parent: tox-py39 parent: tox-py39
@ -63,7 +44,7 @@
parent: tox parent: tox
description: | description: |
Run flake8 test for k8sapp_oidc Run flake8 test for k8sapp_oidc
nodeset: ubuntu-focal nodeset: debian-bullseye
files: files:
- python-k8sapp-oidc/* - python-k8sapp-oidc/*
vars: vars:
@ -75,7 +56,7 @@
parent: tox parent: tox
description: | description: |
Run pylint test for k8sapp_oidc Run pylint test for k8sapp_oidc
nodeset: ubuntu-bionic nodeset: debian-bullseye
required-projects: required-projects:
- starlingx/config - starlingx/config
- starlingx/fault - starlingx/fault
@ -92,7 +73,7 @@
parent: tox parent: tox
description: | description: |
Run bandit test for k8sapp_oidc Run bandit test for k8sapp_oidc
nodeset: ubuntu-focal nodeset: debian-bullseye
files: files:
- python-k8sapp-oidc/* - python-k8sapp-oidc/*
vars: vars:

View File

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

View File

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

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = flake8,py27,py36,py39,pylint,bandit envlist = flake8,py36,py39,pylint,bandit
minversion = 1.6 minversion = 1.6
skipsdist = True skipsdist = True
@ -21,7 +21,7 @@ allowlist_externals = bash
find find
install_command = pip install \ install_command = pip install \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \ -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages} {opts} {packages}
# Note the hash seed is set to 0 until can be tested with a # Note the hash seed is set to 0 until can be tested with a
@ -65,13 +65,6 @@ deps = -r{toxinidir}/test-requirements.txt
commands = commands =
flake8 {posargs} . flake8 {posargs} .
[testenv:py27]
basepython = python2.7
commands =
{[testenv]commands}
stestr run {posargs}
stestr slowest
[testenv:py36] [testenv:py36]
basepython = python3.6 basepython = python3.6
commands = commands =
@ -81,9 +74,6 @@ commands =
[testenv:py39] [testenv:py39]
basepython = python3.9 basepython = python3.9
install_command = pip install \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages}
commands = commands =
{[testenv]commands} {[testenv]commands}
stestr run {posargs} stestr run {posargs}
@ -112,7 +102,7 @@ commands =
pylint {posargs} k8sapp_oidc --rcfile=./pylint.rc pylint {posargs} k8sapp_oidc --rcfile=./pylint.rc
[testenv:cover] [testenv:cover]
basepython = python2.7 basepython = python3
deps = {[testenv]deps} deps = {[testenv]deps}
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
PYTHON=coverage run --parallel-mode PYTHON=coverage run --parallel-mode