Skip to content

Commit ccb45b8

Browse files
Vvevetron
V
authored andcommitted
Hard code poetry versions
1 parent 9bc3e3e commit ccb45b8

File tree

13 files changed

+24
-24
lines changed

13 files changed

+24
-24
lines changed

.github/workflows/build-gtfs-aggregator-scraper-image.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- uses: actions/checkout@v2
2525
- uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.9'
28-
- run: curl -sSL https://install.python-poetry.org | python -
27+
python-version: '3.11'
28+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
2929
- run: cd jobs/gtfs-aggregator-scraper && poetry install && poetry run mypy .
3030

3131
build_push:

.github/workflows/build-gtfs-rt-archiver-v3-image.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- uses: actions/checkout@v2
2929
- uses: actions/setup-python@v4
3030
with:
31-
python-version: '3.9'
32-
- run: curl -sSL https://install.python-poetry.org | python -
31+
python-version: '3.11'
32+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
3333
- run: cd services/gtfs-rt-archiver-v3 && poetry install && poetry run mypy .
3434

3535
build_push:
@@ -45,8 +45,8 @@ jobs:
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646
- uses: actions/setup-python@v4
4747
with:
48-
python-version: '3.10'
49-
- run: curl -sSL https://install.python-poetry.org | python -
48+
python-version: '3.11'
49+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
5050
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
5151
- name: Get image tag from pyproject.toml and commit SHA
5252
run: |

.github/workflows/build-gtfs-rt-parser-v2-image.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- uses: actions/checkout@v2
2525
- uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.9'
28-
- run: curl -sSL https://install.python-poetry.org | python -
27+
python-version: '3.11'
28+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
2929
- run: cd jobs/gtfs-rt-parser-v2 && poetry install && poetry run mypy .
3030

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

4646
build_push:

.github/workflows/build-gtfs-schedule-validator-image.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- uses: actions/checkout@v2
2525
- uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.9'
28-
- run: curl -sSL https://install.python-poetry.org | python -
27+
python-version: '3.11'
28+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
2929
- run: cd jobs/gtfs-schedule-validator && poetry install && poetry run mypy .
3030

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

4444
build_push:

.github/workflows/build-jupyter-singleuser-image.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
- uses: actions/setup-python@v4
3131
with:
32-
python-version: '3.10'
33-
- run: curl -sSL https://install.python-poetry.org | python -
32+
python-version: '3.11'
33+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
3434
# from https://forcepush.tech/python-package-ci-cd-with-git-hub-actions
3535
- name: Get image tag from pyproject.toml
3636
run: |

.github/workflows/deploy-kubernetes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
cluster_name: ${{ env.GKE_NAME }}
3939
location: ${{ env.GKE_REGION }}
40-
- run: curl -sSL https://install.python-poetry.org | python -
40+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
4141
- name: Set up hologit
4242
env:
4343
BIO_RELEASE: 1.6.821

.github/workflows/preview-kubernetes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
cluster_name: ${{ env.GKE_NAME }}
3939
location: ${{ env.GKE_REGION }}
40-
- run: curl -sSL https://install.python-poetry.org | python -
40+
- run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
4141
- name: Set up hologit
4242
env:
4343
BIO_RELEASE: 1.6.821

images/jupyter-singleuser/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN mkdir $POETRY_HOME \
2626

2727
USER $NB_UID
2828

29-
RUN curl -sSL https://install.python-poetry.org | python3 -
29+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
3030
ENV PATH="$POETRY_HOME/bin:$PATH"
3131
RUN npm install -g --unsafe-perm=true --allow-root netlify-cli
3232
# RUN npm install -g --unsafe-perm=true --allow-root vega-cli # Can't get these to work

jobs/gtfs-aggregator-scraper/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.9
22

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

5-
RUN curl -sSL https://install.python-poetry.org | python -
5+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
66
ENV PATH="/root/.local/bin:${PATH}"
77
RUN poetry self add [email protected]
88

jobs/gtfs-rt-parser-v2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV GTFS_RT_VALIDATOR_VERSION=v1.0.0
88
RUN apt-get update -y \
99
&& apt-get install -y python3 python3-pip python3-venv libunwind-dev liblz4-dev
1010

11-
RUN curl -sSL https://install.python-poetry.org | python3 -
11+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
1212
ENV PATH="/root/.local/bin:${PATH}"
1313
RUN poetry self add [email protected]
1414
# from https://github.com/MobilityData/gtfs-realtime-validator/packages/1268973

jobs/gtfs-schedule-validator/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LABEL org.opencontainers.image.source=https://github.com/cal-itp/data-infra
55
RUN apt-get update -y \
66
&& apt-get install -y python3 python3-pip python3-venv libunwind-dev liblz4-dev
77

8-
RUN curl -sSL https://install.python-poetry.org | python3 -
8+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
99
ENV PATH="/root/.local/bin:${PATH}"
1010
RUN poetry self add [email protected]
1111

services/gtfs-rt-archiver-v3/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/cal-itp/data-infra
44

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

7-
RUN curl -sSL https://install.python-poetry.org | python3 -
7+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
88
ENV PATH="/root/.local/bin:${PATH}"
99
RUN poetry self add [email protected]
1010

warehouse/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update \
1212

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

15-
RUN curl -sSL https://install.python-poetry.org | python3 -
15+
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python -
1616
ENV PATH="/root/.local/bin:${PATH}"
1717
RUN poetry self add [email protected]
1818

0 commit comments

Comments
 (0)