Skip to content

Commit da70c5d

Browse files
Merge pull request #166 from bradmwilliams/deprecate-python2
Deprecating Python2 support
2 parents bbb925b + 953e707 commit da70c5d

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

images/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM registry.ci.openshift.org/origin/4.16:cli as cli
22

3-
FROM registry.ci.openshift.org/origin/centos:stream8
3+
FROM centos:stream9
44
LABEL maintainer="brawilli@redhat.com"
55

66
COPY --from=cli /usr/bin/oc /usr/bin/
77

88
ADD . /openshift-client-python
99

10-
RUN yum install -y python2 python3 git diffutils && python2 -m pip install --upgrade pip && python2 -m pip install -r /openshift-client-python/requirements.txt && python3 -m pip install --upgrade pip && python3 -m pip install -r /openshift-client-python/requirements.txt
10+
RUN yum install -y python3 python3-pip git diffutils && python3 -m pip install --upgrade pip && python3 -m pip install -r /openshift-client-python/requirements.txt
1111

1212
ENV PYTHONPATH=/openshift-client-python/packages:$PYTHONPATH PYTHONUNBUFFERED=1
1313

images/monitoring.Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,15 @@ classifiers = [
2727
"License :: OSI Approved :: Apache Software License",
2828
"Operating System :: OS Independent",
2929
"Programming Language :: Python",
30-
"Programming Language :: Python :: 2",
31-
"Programming Language :: Python :: 2.7",
3230
"Programming Language :: Python :: 3",
3331
"Programming Language :: Python :: 3.12",
3432
"Topic :: Utilities",
3533
]
36-
requires-python = ">= 2.7"
34+
requires-python = ">= 3.0"
3735
dependencies = [
38-
"pyyaml",
36+
"build",
3937
"six",
38+
"pyyaml",
4039
]
4140
dynamic = [
4241
"version",

run_unittests.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,4 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]:-$0}")
55
export PYTHONPATH="${SCRIPT_ROOT}/packages"
66
cd ${SCRIPT_ROOT}/packages
77

8-
if command -v python2 > /dev/null
9-
then
10-
echo "python2: running unit tests"
11-
python2 -m unittest discover
12-
else
13-
echo "python2 not detected. Skipping"
14-
fi
15-
16-
echo "python3: running unit tests"
178
python3 -m unittest discover

0 commit comments

Comments
 (0)