Poetry plugin that updates dependencies and bumps their versions in pyproject.toml file
Project description
Poetry Plugin: upgrade
This package is a plugin that updates dependencies and bumps their versions in pyproject.toml file. The version constraints are respected, unless the --latest flag is passed, in which case dependencies are updated to the latest available compatible versions.
This plugin provides similar features as the existing update command with additional features.
Installation
The easiest way to install the upgrade plugin is via the self add command of Poetry.
poetry self add poetry-plugin-upgrade
If you used pipx to install Poetry you can add the plugin via the pipx inject command.
pipx inject poetry poetry-plugin-upgrade
Otherwise, if you used pip to install Poetry you can add the plugin packages via the pip install command.
pip install poetry-plugin-upgrade
Usage
The plugin provides an upgrade command to update dependencies
poetry upgrade --help
Update dependencies
poetry upgrade
Update dependencies to the latest available compatible versions
poetry upgrade --latest
Update the foo and bar packages
poetry upgrade foo bar
Update packages only in the main group
poetry upgrade --only main
Update packages but ignore the dev group
poetry upgrade --without dev
Example Usage
To Add poetry-plugin-upgrade to poetry using the latest version and to bump all your dev dependencies without modifying transitive dependencies you can run
poetry self add poetry-plugin-upgrade
poetry upgrade --only=dev --latest --pinned --no-interaction --no-install
Contributing
Contributions are welcome! See the Contributing Guide.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poetry_plugin_upgrade-0.3.0.tar.gz.
File metadata
- Download URL: poetry_plugin_upgrade-0.3.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.11 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7688c18d6c9a4b09f6d0a1f1ce0eb9ad861492dd0659d3f46bde3659abf470a5
|
|
| MD5 |
8c08ab33c99a5b96991f49b429222e03
|
|
| BLAKE2b-256 |
a764cd79d73ec6c8f93aa9c0da1917c55596a5140ce25870cd2e631d6739ff5c
|
File details
Details for the file poetry_plugin_upgrade-0.3.0-py3-none-any.whl.
File metadata
- Download URL: poetry_plugin_upgrade-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.11 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb2ff662e60ee0b7c534709ac292c68c1e7b88bb3d299f1bf96d60fd34ab3a9b
|
|
| MD5 |
f602465e32611f1fe5d56f431b856c9d
|
|
| BLAKE2b-256 |
f327e09e1e251d0feffb370eff9a51da435a7dd5bb5e293f0e896c1e8a388659
|