No project description provided
Project description
Poetry StickyWheel Plugin
A poetry plugin to pin version dependencies when building packages with local folder dependencies.
🛠 Installing
poetry self add poetry-stickywheel-plugin
📚 Help
This plugin will rewrite folder dependencies in your poetry projects dependencies with version dependencies.
The version will be extracted from the dependencies pyproject.toml and applied as a semver match.
Assuming a pyproject.toml
such as:
[tool.poetry]
name = "a"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
[tool.poetry.dependencies]
b = {path = "../b", develop = true}
and the dependency pyproject.toml
[tool.poetry]
name = "b"
version = "1.2.3"
description = ""
authors = []
readme = "README.md"
the dependency will be rewritten as if it had been defined as:
b = "^1.2.3"
Configuration
You can define a section in your pyproject.toml
file named tool.stickywheel
, to configure various options.
Dependency constraint strategy
The default strategy is semver
(described in the "Help" section above), but there are other choices:
strategy | version | result |
---|---|---|
semver |
1.2.3 |
^1.2.3 |
minimum |
1.2.3 |
>=1.2.3 |
exact |
1.2.3 |
1.2.3 |
To override the default, add strategy
to the configuration. For example:
[tool.stickywheel]
strategy = "exact"
⚖️ Licence
This project is licensed under the MIT licence.
All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.
📝 Meta
This project uses Semantic Versioning.
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_stickywheel_plugin-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0c3b084965ff2e487c47265e85de6699a43c5616b11bc7d0437f035946f0ce |
|
MD5 | 97063b30ce28111a743d2b7492191358 |
|
BLAKE2b-256 | e44b8a7a24af1b446622007889f2390d087e8d9a0388c8de31b491b1ea793005 |
Hashes for poetry_stickywheel_plugin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79699fe95259b0bc17d323772fe067718814e6c5677bb5608c9e6a61dc5cfd1 |
|
MD5 | ba01956781be058910d7b702220ab946 |
|
BLAKE2b-256 | bb17bda3e48c73fee9f783435b0de9029107816bbf1fabe79f8e94b9ee6a9697 |