Skip to content

Commit 72cea4c

Browse files
committed
fixed pip upgrade
1 parent 389aa3d commit 72cea4c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

cultcargo/builder/build_cargo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def build_cargo(manifest: str, do_list=False, build=False, push=False, all=False
8282
"{task.description}",
8383
console=console, disable=boring) as progress:
8484
print = progress.console.print
85-
85+
8686
progress_task = progress.add_task("loading manifest")
8787

8888
print(Rule(f"Loading manifest {manifest}"))
@@ -317,7 +317,7 @@ def resolve_config_reference(value):
317317
else:
318318
print(f" Image exists, but package is a release candidate: ok to push.")
319319
else:
320-
print(f" Image exists, but package unreleased, ok push.")
320+
print(f" Image exists, but package unreleased, ok to push.")
321321
run(f"docker push {full_image}", cwd=path)
322322
if image_version == tag_latest.get(image):
323323
run(f"docker push {registry}/{image}:{BUNDLE_VERSION}")

cultcargo/builder/cargo-manifest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
GITHUB_REPOSITORY: caracal-pipeline/cult-cargo
66
# registry to use. Use module::filename.yml::variable format to pull from a config file inside a python module
77
REGISTRY: cultcargo.genesis::cult-cargo-base.yml::vars.cult-cargo.images.registry
8-
# image bundle ersion. Use module::filename.yml::variable format to pull from a config file inside a python module
8+
# image bundle version. Use module::filename.yml::variable format to pull from a config file inside a python module
99
BUNDLE_VERSION: cultcargo.genesis::cult-cargo-base.yml::vars.cult-cargo.images.version
1010
# prefix to be removed from image version when comparing to python package version
1111
BUNDLE_VERSION_PREFIX: cc

cultcargo/images/python-astro/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ RUN apt-get update && apt-get install apt-utils && \
1010

1111
RUN update-alternatives --install /usr/bin/python python /usr/bin/python{VERSION} 1
1212

13-
# upgrade pip
13+
# needed to upgrade pip properly -- sometimes it gets stuck and is unable to upgrade itself
14+
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python{VERSION}
15+
1416
RUN python{VERSION} -mpip install --no-cache-dir -U pip setuptools wheel
1517

1618
# add useful astro stuff
@@ -19,7 +21,7 @@ RUN python{VERSION} -mpip install --no-cache-dir \
1921
owlcat dask-ms scipy omegaconf bdsf msutils
2022

2123
# add stimela -- useful for scabha.schema_utils
22-
RUN python{VERSION} -mpip install --no-cache-dir git+https://github.com/caracal-pipeline/stimela@2.0rc12
24+
RUN python{VERSION} -mpip install --no-cache-dir "stimela>=2.0rc17"
2325

2426
CMD /usr/bin/python{VERSION}
2527

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ packages = [{include = "cultcargo"}]
1010
[tool.poetry.dependencies]
1111
python = "^3.8"
1212
stimela = "^2.0rc17"
13+
requests = "^2.0"
1314

1415
[tool.poetry.scripts]
1516
build-cargo = "cultcargo.builder.build_cargo:driver"

0 commit comments

Comments
 (0)