Skip to content

Commit

Permalink
chore: update to poetry 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jdobes authored and psegedy committed Jan 6, 2025
1 parent 163ee2a commit 6c86319
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
python-version: [3.12]
poetry-version: [1.5]
poetry-version: [2.0]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -27,7 +27,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
run: pip install poetry~=1.5
run: pip install poetry~=2.0 poetry-plugin-export
- name: Set up Safety
run: pip install safety
- name: Export requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
/bin/bash scripts/check_init_py.sh
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry importlib-resources==1.5.0
python -m pip install --upgrade pip poetry~=2.0 poetry-plugin-export importlib-resources==1.5.0
poetry export --with dev -f requirements.txt --output requirements.txt
pip install -r requirements.txt
- name: Validate Grafana dashboard
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ADD poetry.lock /engine/
ENV LC_ALL=C.utf8
ENV LANG=C.utf8
RUN pip3.12 install --upgrade pip && \
pip3.12 install --upgrade poetry~=1.5
pip3.12 install --upgrade poetry~=2.0 poetry-plugin-export
RUN poetry export --only main -f requirements.txt --output requirements.txt && \
pip3.12 install -r requirements.txt
RUN adduser --gid 0 -d /engine --no-create-home insights
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ADD poetry.lock /engine/
ENV LC_ALL=C.utf8
ENV LANG=C.utf8
RUN pip3.12 install --upgrade pip && \
pip3.12 install --upgrade poetry~=1.5
pip3.12 install --upgrade poetry~=2.0 poetry-plugin-export
RUN poetry export --with dev -f requirements.txt --output requirements.txt && \
pip3.12 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion platform_mock/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ADD poetry.lock /platform_mock/
ENV LC_ALL=C.utf8
ENV LANG=C.utf8
RUN pip3.12 install --upgrade pip && \
pip3.12 install --upgrade poetry~=1.5
pip3.12 install --upgrade poetry~=2.0 poetry-plugin-export
RUN poetry export --with dev -f requirements.txt --output requirements.txt && \
pip3.12 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion scripts/poetry-lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal
RUN microdnf install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \
python312 python3.12-pip python3.12-devel libpq-devel gcc git && \
microdnf clean all
RUN pip3 install --upgrade pip && pip3 install --upgrade poetry~=1.5
RUN pip3 install --upgrade pip && pip3 install --upgrade poetry~=2.0
EOF

current_dir=$(pwd)
Expand Down

0 comments on commit 6c86319

Please sign in to comment.