Skip to content

Commit

Permalink
Hard code poetry versions
Browse files Browse the repository at this point in the history
  • Loading branch information
V committed Jan 30, 2025
1 parent fc3f5dc commit 3336dd2
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-gtfs-aggregator-scraper-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-aggregator-scraper && poetry install && poetry run mypy .

build_push:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-rt-archiver-v3-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd services/gtfs-rt-archiver-v3 && poetry install && poetry run mypy .

build_push:
Expand All @@ -45,8 +45,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
- name: Get image tag from pyproject.toml and commit SHA
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-rt-parser-v2-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-rt-parser-v2 && poetry install && poetry run mypy .

test:
Expand All @@ -39,8 +39,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-rt-parser-v2 && poetry install && poetry run pytest

build_push:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-gtfs-schedule-validator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-schedule-validator && poetry install && poetry run mypy .

test:
Expand All @@ -37,8 +37,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- run: cd jobs/gtfs-schedule-validator && poetry install && poetry run pytest

build_push:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-jupyter-singleuser-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: curl -sSL https://install.python-poetry.org | python -
python-version: '3.11'
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
- name: Get image tag from pyproject.toml
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
Expand Down
2 changes: 1 addition & 1 deletion images/jupyter-singleuser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN mkdir $POETRY_HOME \

USER $NB_UID

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN npm install -g --unsafe-perm=true --allow-root netlify-cli
# RUN npm install -g --unsafe-perm=true --allow-root vega-cli # Can't get these to work
Expand Down
2 changes: 1 addition & 1 deletion jobs/gtfs-aggregator-scraper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.9

LABEL org.opencontainers.image.source https://github.com/cal-itp/data-infra

RUN curl -sSL https://install.python-poetry.org | python -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0

Expand Down
2 changes: 1 addition & 1 deletion jobs/gtfs-rt-parser-v2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV GTFS_RT_VALIDATOR_VERSION=v1.0.0
RUN apt-get update -y \
&& apt-get install -y python3 python3-pip python3-venv libunwind-dev liblz4-dev

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0
# from https://github.com/MobilityData/gtfs-realtime-validator/packages/1268973
Expand Down
2 changes: 1 addition & 1 deletion jobs/gtfs-schedule-validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL org.opencontainers.image.source=https://github.com/cal-itp/data-infra
RUN apt-get update -y \
&& apt-get install -y python3 python3-pip python3-venv libunwind-dev liblz4-dev

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0

Expand Down
2 changes: 1 addition & 1 deletion services/gtfs-rt-archiver-v3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/cal-itp/data-infra

RUN apt-get update && apt-get install -y libunwind-dev liblz4-dev

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0

Expand Down
2 changes: 1 addition & 1 deletion warehouse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update \

RUN npm install -g --unsafe-perm=true --allow-root netlify-cli

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry self add poetry-plugin-export@1.9.0

Expand Down

0 comments on commit 3336dd2

Please sign in to comment.