Skip to content

Commit

Permalink
Merge pull request #1468 from Priyankasaggu11929/drop-python-2-support
Browse files Browse the repository at this point in the history
drop python 2 support
  • Loading branch information
k8s-ci-robot committed May 17, 2021
2 parents a126ab0 + 6f09733 commit 821618f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Expand Up @@ -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
Expand Down
22 changes: 6 additions & 16 deletions .travis.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/multiple_clusters.py
Expand Up @@ -18,9 +18,10 @@
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():
Expand Down
3 changes: 2 additions & 1 deletion examples/pick_kube_config_context.py
Expand Up @@ -18,9 +18,10 @@
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():
Expand Down
3 changes: 2 additions & 1 deletion examples/pod_config_list.py
Expand Up @@ -19,9 +19,10 @@
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():
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-pycodestyle.sh
Expand Up @@ -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)"
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Expand Up @@ -72,8 +72,6 @@
"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",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
@@ -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_*
Expand Down

0 comments on commit 821618f

Please sign in to comment.