Poetry plugin to sort the dependencies alphabetically
Project description
Poetry Plugin: Dependencies sorting
This package is a plugin that sort dependencies alphabetically in pyproject.toml
after running poetry init
, poetry add
, or poetry remove
.
Since Introduce dependency sorting #3996 pull request still open
this plugin is a workaround for !312 issue.
Note: the plugin is in the beta version!
Installation
Just use poetry self add
command to add this plugin.
poetry self add poetry-plugin-sort
If you used pipx to install Poetry, add the plugin via pipx inject
command.
pipx inject poetry poetry-plugin-sort
And if you installed Poetry using pip, you can install the plugin the same way.
pip install poetry poetry-plugin-sort
Usage
The plugin sorts dependencies each time when you change dependencies via the poetry init
, poetry add
, or
poetry remove
commands.
To sort dependencies without making changes to the depenencies list, the plugin provides a sort
command.
poetry sort
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
Hashes for poetry_plugin_sort-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f85b66a80fc4130496fa63037b580071c2db014c4655aeb586c464fbb233cf77 |
|
MD5 | 6114603b1c3dcf5628da1d8840171658 |
|
BLAKE2b-256 | 68b95c978d3d5de8532d3499088dd7caebc6acb240ec23aee49ecfc42115d7ed |