Merge pull request #1468 from Priyankasaggu11929/drop-python-2-support

drop python 2 support
This commit is contained in:
Kubernetes Prow Robot 2021-05-17 10:27:30 -07:00 committed by GitHub
commit 821618feb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 25 deletions

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2

View File

@ -24,16 +24,12 @@ jobs:
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
- stage: test
python: 2.7
env: TOXENV=update-pycodestyle
python: 3.9
env: TOXENV=update-pycodestyle
- python: 3.9
env: TOXENV=coverage,codecov
- python: 3.7
env: TOXENV=docs
- python: 2.7
env: TOXENV=coverage,codecov
- python: 2.7
env: TOXENV=py27
- python: 2.7
env: TOXENV=py27-functional
- python: 3.5
env: TOXENV=py35
- python: 3.5
@ -68,18 +64,12 @@ jobs:
distributions: sdist bdist_wheel
- stage: test
python: 2.7
python: 3.9
env: TOXENV=update-pycodestyle
arch: ppc64le
arch: ppc64le
- python: 3.7
env: TOXENV=docs
arch: ppc64le
- python: 2.7
env: TOXENV=coverage,codecov
arch: ppc64le
- python: 2.7
env: TOXENV=py27
arch: ppc64le
- python: 3.5
env: TOXENV=py35
arch: ppc64le

View File

@ -18,9 +18,10 @@ Allows you to pick a context and then lists all pods in the chosen context.
Please install the pick library before running this example.
"""
from pick import pick # install pick using `pip install pick`
from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`
def main():

View File

@ -18,9 +18,10 @@ Allows you to pick a context and then lists all pods in the chosen context.
Please install the pick library before running this example.
"""
from pick import pick # install pick using `pip install pick`
from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`
def main():

View File

@ -19,9 +19,10 @@ context includes a cluster, a user, and a namespace.
Please install the pick library before running this example.
"""
from pick import pick # install pick using `pip install pick`
from kubernetes import client, config
from kubernetes.client import configuration
from pick import pick # install pick using `pip install pick`
def main():

View File

@ -67,7 +67,7 @@ done
echo "--- applying isort"
for SOURCE in $SOURCES; do
isort -y $SOURCE
isort $SOURCE
done
echo "--- check pycodestyle (all need to be fixed manually)"

View File

@ -72,8 +72,6 @@ setup(
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",

View File

@ -1,7 +1,7 @@
[tox]
envlist =
py27, py3{5,6,7,8,9}
py27-functional, py3{5,6,7,8,9}-functional
py3{5,6,7,8,9}
py3{5,6,7,8,9}-functional
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*