Skip to content

Commit

Permalink
Fix Packaging pipeline (#1526)
Browse files Browse the repository at this point in the history
Upgrades on setuptools and pip ended up breaking our packaging pipeline.
Changes on the packaging docker files and requirements.txt were required
to fix the build.
  • Loading branch information
DiegoTavares authored Oct 2, 2024
1 parent 93b7652 commit a3e9ccb
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 23 deletions.
6 changes: 3 additions & 3 deletions cueadmin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ COPY cueadmin/tests/ ./cueadmin/tests
COPY cueadmin/cueadmin ./cueadmin/cueadmin

COPY VERSION.in VERSIO[N] ./
RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION

RUN cd pycue && python3 setup.py install
RUN cd cueadmin && python3 setup.py test
RUN cd pycue && python3 -m pip install .
RUN cd pycue && python3 -m unittest tests/*.py

RUN cp LICENSE requirements.txt VERSION cueadmin/

Expand Down
2 changes: 0 additions & 2 deletions cueadmin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
2 changes: 1 addition & 1 deletion cuegui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ COPY cuegui/tests ./cuegui/tests
COPY cuegui/cuegui ./cuegui/cuegui

COPY VERSION.in VERSIO[N] ./
RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION

RUN cd pycue && python3.6 setup.py install

Expand Down
2 changes: 0 additions & 2 deletions cuegui/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
2 changes: 1 addition & 1 deletion cuesubmit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ COPY cuesubmit/plugins ./cuesubmit/plugins
COPY cuesubmit/cuesubmit ./cuesubmit/cuesubmit

COPY VERSION.in VERSIO[N] ./
RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION

RUN cd pycue && python3.6 setup.py install
RUN cd pyoutline && python3.6 setup.py install
Expand Down
2 changes: 0 additions & 2 deletions cuesubmit/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
5 changes: 3 additions & 2 deletions pycue/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ RUN python3 -m grpc_tools.protoc \
RUN 2to3 -wn -f import pycue/opencue/compiled_proto/*_pb2*.py

COPY VERSION.in VERSIO[N] ./
RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION

RUN cd pycue && python3 setup.py test
RUN cd pycue && python3 -m pip install .
RUN cd pycue && python3 -m unittest tests/*.py

RUN cp LICENSE requirements.txt VERSION pycue/

Expand Down
2 changes: 0 additions & 2 deletions pycue/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
6 changes: 3 additions & 3 deletions pyoutline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ COPY pyoutline/wrappers ./pyoutline/wrappers
COPY pyoutline/outline ./pyoutline/outline

COPY VERSION.in VERSIO[N] ./
RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION

RUN cd pycue && python3 setup.py install
RUN cd pyoutline && python3 setup.py test
RUN cd pycue && python3 -m pip install .
RUN cd pycue && python3 -m unittest tests/*.py

RUN cp LICENSE requirements.txt VERSION pyoutline/

Expand Down
2 changes: 0 additions & 2 deletions pyoutline/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grpcio-tools==1.48.2;python_version<"3.7"
grpcio==1.53.2;python_version>="3.7"
grpcio-tools==1.53.0;python_version>="3.7"
mock==2.0.0
packaging==20.9
packaging==24.1
psutil==5.9.8
pyfakefs==3.6;python_version<"3.7"
pyfakefs==5.2.3;python_version>="3.7"
Expand Down
2 changes: 0 additions & 2 deletions rqd/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down

0 comments on commit a3e9ccb

Please sign in to comment.