Dependencies¶
Core Dependencies¶
Python >= 3.10
Poetry >= 2.3.0 - poetry export
Supported Poetry Versions by PTB¶
PTB Version |
Default in PTB |
Range Allowed |
Migration Information |
|---|---|---|---|
>=1.0.0, <5.0.0 |
2.1.2 |
>=2.1.0,<3.0 |
None |
>=5.0.0 |
2.3.0 |
>=2.3.0,<3.0 |
Migration Information¶
From Poetry 2.1.x to 2.3.0¶
It is highly encouraged that a developer update their pyproject.toml and
system-wide Poetry installation to most effectively use Poetry 2.3.0:
In your terminal, update your system-wide Poetry version:
poetry self update 2.3.0In your project’s
pyproject.toml, update therequires-poetryvalue:requires-poetry = ">=2.3.0"In your terminal, execute
poetry checkand resolve any listed issuesIn your terminal, run
poetry lockto update the lock- (optional but recommended) In your project’s
pyproject.toml, update it to fit: -
Note
Note that uvx migrate-to-uv seems to do a good job with automating many of the PEP-related changes. Though, a developer should take care to verify the changes, as some are unneeded as it completes the migration to
uvwhich the PTB does NOT yet support.
- (optional but recommended) In your project’s