File tree Expand file tree Collapse file tree 4 files changed +5
-28
lines changed Expand file tree Collapse file tree 4 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 1
1
FROM registry.ci.openshift.org/origin/4.16:cli as cli
2
2
3
- FROM registry.ci.openshift.org/origin/ centos:stream8
3
+ FROM centos:stream9
4
4
LABEL maintainer="brawilli@redhat.com"
5
5
6
6
COPY --from=cli /usr/bin/oc /usr/bin/
7
7
8
8
ADD . /openshift-client-python
9
9
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
11
11
12
12
ENV PYTHONPATH=/openshift-client-python/packages:$PYTHONPATH PYTHONUNBUFFERED=1
13
13
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,16 +27,15 @@ classifiers = [
27
27
" License :: OSI Approved :: Apache Software License" ,
28
28
" Operating System :: OS Independent" ,
29
29
" Programming Language :: Python" ,
30
- " Programming Language :: Python :: 2" ,
31
- " Programming Language :: Python :: 2.7" ,
32
30
" Programming Language :: Python :: 3" ,
33
31
" Programming Language :: Python :: 3.12" ,
34
32
" Topic :: Utilities" ,
35
33
]
36
- requires-python = " >= 2.7 "
34
+ requires-python = " >= 3.0 "
37
35
dependencies = [
38
- " pyyaml " ,
36
+ " build " ,
39
37
" six" ,
38
+ " pyyaml" ,
40
39
]
41
40
dynamic = [
42
41
" version" ,
Original file line number Diff line number Diff line change @@ -5,13 +5,4 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]:-$0}")
5
5
export PYTHONPATH=" ${SCRIPT_ROOT} /packages"
6
6
cd ${SCRIPT_ROOT} /packages
7
7
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"
17
8
python3 -m unittest discover
You can’t perform that action at this time.
0 commit comments