Skip to content

Commit

Permalink
feat: Upgrade Poetry to 2.x series
Browse files Browse the repository at this point in the history
Poetry 2.x provides support for PEP-0621 pyproject schema, but keep
backwards compatible to 1.x series.
This upgrade is necessary to abide with future and old Poetry projects.

Reference: https://python-poetry.org/blog/announcing-poetry-2.0.0
Reference: https://peps.python.org/pep-0621/

Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro authored and sschuberth committed Jan 17, 2025
1 parent e510c6f commit 170a3b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ ARG CONAN_VERSION
ARG PYTHON_INSPECTOR_VERSION
ARG PYTHON_PIPENV_VERSION
ARG PYTHON_POETRY_VERSION
ARG PYTHON_POETRY_PLUGIN_EXPORT_VERSION
ARG PYTHON_SETUPTOOLS_VERSION
ARG PIPTOOL_VERSION
ARG SCANCODE_VERSION
Expand All @@ -170,6 +171,7 @@ RUN pip install --no-cache-dir -U \
conan=="$CONAN_VERSION" \
pipenv=="$PYTHON_PIPENV_VERSION" \
poetry=="$PYTHON_POETRY_VERSION" \
poetry-plugin-export=="$PYTHON_POETRY_PLUGIN_EXPORT_VERSION" \
python-inspector=="$PYTHON_INSPECTOR_VERSION" \
setuptools=="$PYTHON_SETUPTOOLS_VERSION"

Expand Down
3 changes: 2 additions & 1 deletion docker/versions.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ ARG PNPM_VERSION=9.9.0
ARG PYENV_GIT_TAG=v2.4.13
ARG PYTHON_INSPECTOR_VERSION=0.10.0
ARG PYTHON_PIPENV_VERSION=2023.12.1
ARG PYTHON_POETRY_VERSION=1.8.3
ARG PYTHON_POETRY_VERSION=2.0.1
ARG PYTHON_POETRY_PLUGIN_EXPORT_VERSION=1.9.0
ARG PYTHON_SETUPTOOLS_VERSION=74.1.3
ARG PYTHON_VERSION=3.11.10
ARG RUBY_VERSION=3.1.2
Expand Down

0 comments on commit 170a3b8

Please sign in to comment.