Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Require Poetry 1.2.0 (fixes CI errors)
Browse files Browse the repository at this point in the history
Started to get errors in CI during the installation of dependencies,
apparently due to incompatibilities between Poetry and urllib3 >=2.0.
No idea why urllib3 >=2.0 only started to get installed now, perhaps
something changed in GHA's side.

Poetry 1.2.0 already requires urllib3 <2.0 thus solving the problem.

See python-poetry/poetry#7936
  • Loading branch information
IagoAbal committed May 24, 2023
1 parent ef5612f commit 4716802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- id: setup-package-managers
name: Setup package managers
run: |
python -m pip install --upgrade poetry==1.1.15 pipx==0.15.6.0
python -m pip install --upgrade poetry==1.2.0 pipx==0.15.6.0
echo "$(pwd)/.pipx_bin" >> $GITHUB_PATH
poetry config virtualenvs.in-project true
echo "::set-output name=installed-semgrep-version::$(sed --quiet --regexp-extended 's/^FROM returntocorp[/]semgrep:(.+)$/\1/p' Dockerfile)"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jsonschema = "^4.4.0"
PyYAML = "^6.0"

[build-system]
requires = ["poetry>=1.0.10"]
requires = ["poetry>=1.2"]
build-backend = "poetry.masonry.api"

0 comments on commit 4716802

Please sign in to comment.