-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(deps): update dependency poetry to v2 (main) #3889
base: main
Are you sure you want to change the base?
Conversation
2d83888
to
9797379
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs test updates
https://github.com/containerbase/base/actions/runs/12710660920/job/35432717311#step:7:428
@rarkins poetry v2 should work in general but we should add more detection to renovate to not automatically update to a v2 lockfile
9797379
to
dc58d8c
Compare
d93fc22
to
3c489c3
Compare
3c489c3
to
02ea1d7
Compare
02ea1d7
to
0b6c207
Compare
0b6c207
to
42167c6
Compare
Hi, I stumbled on this PR + comment while trying to fix a blocker on some of my repos. Basically, we are in the opposite scenario where we are trying to enforce everyone (developers, CI/CD, and renovate) to fully migrate to poetry v2 and use a v2 lock file. Right now, renovate is changing our lock file back to v1 which causes stuff to break. Just to avoid spending time on unnecessary workarounds - once this PR is merged, will renovate be able to detect from somewhere (maybe the comment at the top of poetry.lock |
This PR contains the following updates:
1.8.5
->2.1.2
Release Notes
python-poetry/poetry (poetry)
v2.1.2
Compare Source
Changed
Fixed
poetry lock
was not deterministic (#10276).poetry env activate
returned the wrong command fortcsh
(#10243).poetry env activate
returned the wrong command forpwsh
on Linux (#10256).Docs
poetry-core (
2.1.2
)#846).
extra
markers were not simplified (#842,#845,
#847).
python_version
markers was not recognized as empty (#849).python_version
markers were not simplified (#848,#851).
v2.1.1
Compare Source
Fixed
poetry env use python
does not choose the Python from the PATH (#10187).poetry-core (
2.1.1
)python_version
marker resulted in an invalid marker (#838).v2.1.0
Compare Source
Added
build
command build-system agnostic (#10059,#10092).
--config-settings
option topoetry build
(#10059).config-settings
when building dependencies (#10129).findpython
to find the Python interpreters (#10097).--no-truncate
option topoetry show
(#9580).#10065,
#10126,
#10127,
#10132).
Changed
poetry new
defaults to "src" layout by default (#10135).#10114,
#10138,
#10146).
--priority
(#10134).Fixed
#10067,
#10128).
poetry init
was not able to find a package on PyPI while adding dependencies interactively (#10055).@latest
descriptor was incorrectly passed to the core requirement parser (#10069).True
(in contrast totrue
) were interpreted asfalse
(#10080).poetry env activate
reported a misleading error message (#10087).poetry add --optional
would not correctly update the lock file (#10076).pip
was not installed/updated before other dependencies resulting in a race condition (#10102).keyring
simultaneously (#10062).zipapp
(#10074).Docs
env
commands (#10027).name
andversion
fields are always required if theproject
section is specified (#10033).project.gui-scripts
#10121.#10133).
poetry-core (
2.1.0
)__pycache__
directory and*.pyc
files were included in sdists and wheels (#835).v2.0.1
Compare Source
Added
poetry search
in legacy sources (#9949).poetry source show
output when PyPI is implicitly enabled (#9974).Changed
Fixed
poetry sync
did not remove packages that were not requested (#9946).poetry check
failed even though there were just warnings and add a--strict
option to fail on warnings (#9983).poetry update
,poetry add
andpoetry remove
with--only
uninstalled packages from other groups (#10014).poetry update
,poetry add
andpoetry remove
uninstalled all extra packages (#10016).poetry self update
did not recognize Poetry's own environment (#9995).poetry install
started withWarning:
instead ofError:
(#9945).Command.set_poetry
, which is used by plugins, was removed (#9981).poetry build --clean
showed a malformed short option instead of the description (#9994).Docs
project
section (#9996).project.readme
andproject.urls
(#9948).poetry install --sync
withpoetry sync
in the section about synchronizing dependencies (#9944).poetry shell
withpoetry env activate
in the basic usage section (#9963).project.name
is always required when theproject
section is used (#9989).poetry-plugin-export
in the section aboutpoetry export
(#9954).poetry-core (
2.0.1
)Home-page
withProject-URL: Homepage
(#807).tool.poetry.packages
without a specifiedformat
were not initialized with the default value resulting in aKeyError
(#805).project.urls
entries were not processed correctly resulting in aKeyError
(#807).project.dependencies
viatool.poetry.dependencies
were ignored ifproject.optional-dependencies
were defined (#811).v2.0.0
Compare Source
Added
project
section in thepyproject.toml
file according to PEP 621 (#9135,#9917).
installer.re-resolve
option (default:true
) to allow installation without re-resolving (#9427).--local-version
option topoetry build
(#9064).--clean
option topoetry build
(#9067).poetry publish
(#9101).poetry new
interactively and configure more fields (#9101).installer.only-binary
to enforce the use of binary distribution formats (#9150).--all-groups
option topoetry install
(#9744).poetry env activate
command as replacement ofpoetry shell
(#9763).--markers
option topoetry add
to add a dependency with markers (#9814).--migrate
option topoetry config
to migrate outdated configs (#9830).--project
option to search thepyproject.toml
file in another directory without switching the directory (#9831).poetry sync
command as replacement ofpoetry install --sync
(#9801).Changed
poetry lock
to--no-update
and introduce a--regenerate
option for the old default behavior (#9327).poetry-plugin-export
so thatpoetry export
is not included per default (#5980).poetry shell
intopoetry-plugin-shell
(#9763).poetry add --optional
to require an extra the optional dependency is added to (#9135).--directory
/-C
(#9831).experimental.system-git-client
toexperimental.system-git
(#9787, #9795).virtualenvs.prefer-active-python
by the inverse settingvirtualenvs.use-poetry-python
and prefer the active Python by default (#9786).tool.poetry
section in favor of the respective fields in theproject
section in thepyproject.toml
file (#9135).poetry install --sync
in favor ofpoetry sync
(#9801).platformdirs 2.0
macOS config directory (#8916).#9227).
Requires-Dist
with modern metadata (#9078).setup.py
to determine dependencies (#9099).>=
instead of^
for the Python requirement when initializing a new project (#9558).build-system
to the current major version ofpoetry-core
when initializing a new project (#9812).installer.modern-installation = false
(#9392).virtualenvs.options.no-setuptools
config option and never includesetuptools
per default (#9331).Error
suffix (#9705).--dev
(#9732).poetry show <package>
(#9750).crashtest
(#9108).keyring>=23.3.1
(#9167).build>=1.2.1
(#9283).dulwich>=0.22.6
(#9748).Fixed
poetry env remove
failed ifvirtualenvs.in-project
was set totrue
(#9118).poetry add
resulted in a brokenpyproject.toml
(#9277).envs.toml
(#9286).poetry build --directory
(#9433).poetry install
without an existing lock file (#9345).poetry-check
pre-commit hook did not trigger if onlypoetry.lock
has changed (#9504).virtualenvs.prefer-active-python
was not respected (#9278).direct_url.json
with vcs URLs not compliant with PEP 610 was written (#9007).installer.max-workers
was ignored for the implicit PyPI source (#9815).poetry.toml
) were ignored for the implicit PyPI source (#9816).dulwich
versions resulted in different hashes for a git dependency from a tag (#9849).IndexError
(#9505).allow-prereleases = false
still allowed pre-releases if no other solution was found (#9798).poetry check
falsely reported that an invalid source "pypi" is referenced in dependencies (#9475).poetry install --sync
tried to uninstall system site packages if the virtual environment was created withvirtualenvs.options.system-site-packages = true
(#9863).Docs
pre-commit-update
as an alternative topre-commit autoupdate
(#9716).exclude
andinclude
(#9734).~=
(#9783).poetry-core (
2.0.0
)platform_release
marker (#722).in
/not in
in generic constraints (#722).SOURCE_DATE_EPOCH
when building packages (#766,#781).
METADATA
files with version 2.3 instead of 2.2 (#707).x
in version constraints (#770).#769).
tool.poetry.dev-dependencies
in favor oftool.poetry.group.dev.dependencies
(#754).platlib
directory of the wrong Python was used (#726).+
was not allowed in git URL paths (#765).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.