File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM registry.ci.openshift.org/origin/4.16:cli as cli
22
3- FROM registry.ci.openshift.org/origin/ centos:stream8
3+ FROM centos:stream9
44LABEL maintainer="brawilli@redhat.com"
55
66COPY --from=cli /usr/bin/oc /usr/bin/
77
88ADD . /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
1212ENV PYTHONPATH=/openshift-client-python/packages:$PYTHONPATH PYTHONUNBUFFERED=1
1313
Load Diff This file was deleted.
Original file line number Diff line number Diff 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 "
3735dependencies = [
38- " pyyaml " ,
36+ " build " ,
3937 " six" ,
38+ " pyyaml" ,
4039]
4140dynamic = [
4241 " version" ,
Original file line number Diff line number Diff line change @@ -5,13 +5,4 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]:-$0}")
55export PYTHONPATH=" ${SCRIPT_ROOT} /packages"
66cd ${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"
178python3 -m unittest discover
You can’t perform that action at this time.
0 commit comments