Poet Plugin
A Poetry plugin to enable exclusivity between groups.
Poet stands for Poetry Exclusivity Toggle (or some other excuse, I did not want a verbose package name and
poet seemed short and sweet since this plugin changes the internal poetry package during runtime).
Installation
Simply add this plugin as a dependency with pip install poet-plugin.
Usage
When running poetry install, the various options (--only, --without) are parsed to ensure the dependency resolver
only considers what needs to be considered.
This allows a non-mutually exclusive group definition, so that e.g. the dev group can refer to
some local path, whereas a prod group refers to git URI.
Examples
Considering the following pyproject.toml, depicting a mono-repository:
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
poetry = "^1.2.0"
[tool.poetry.group.prod.dependencies]
foo = {git = "https://github.com/bar/foo", subdirectory = "src/libs/foo"}
[tool.poetry.group.dev.dependencies]
foo = {path = "../../libs/foo", develop = true}
- Install the prod version:
poetry install --without dev, ORpoetry install --only prod
- Install the dev version:
poetry install --without prod, ORpoetry install --only dev
Metadata
Release files for poet-plugin 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poet-plugin-0.1.2.tar.gz | 3.1 kB | Without provenance | Details for poet-plugin-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poet_plugin-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for poet_plugin-0.1.2-py3-none-any.whl |
Total release size: 6.6 kB
Release files / poet-plugin-0.1.2.tar.gz
| Download URL | poet-plugin-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86bf2796ffc27836e305b11861eb9289c93d148ff072d2a17b14f6713d0f7efa
|
|
BLAKE2b-256 checksum How to use checksums |
8e7b464f7cae4784ba9544a5faeaec2c727708ef2d74d50375423a99394ed22a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.15.0-48-generic
|
Release files / poet_plugin-0.1.2-py3-none-any.whl
| Download URL | poet_plugin-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
560f5d6d8d69f198a3acb06449f4ec18c079fe22441cb268d4ab0e6edbd3df08
|
|
BLAKE2b-256 checksum How to use checksums |
e83b388ea5c3876c6c02ca15b71642b8e7b3ee63eecf2a9cef64159ee61f1f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.15.0-48-generic
|
Security for poet-plugin 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.