Poetry build plugin for pychub
Project description
pychub-poetry-plugin
This pychub plugin is part of the pychub-build-plugins project. If you are
here, you should already be familiar with pychub. If not, please read the
pychub documentation. You can find it on
github, or on
pypi. The information located in those
locations will describe the operation of pychub. This document will describe
how to use pychub in a pyproject.toml file when building with poetry.
Prerequisites
You should already have a pyproject.toml file that builds a wheel of your
project with the poetry build backend. Once you have completed that, you can
continue by adding the pychub-poetry-plugin to your pyproject.toml file.
Using the Plugin
Usage of the plugin is straightforward, and only requires the addition of the
plugin to your pyproject.toml file, and the standard pychub configuration.
Adding the Plugin To Your pyproject.toml File
Amend or add the plugin to the [tool.poetry.requires-plugins section to let
poetry know about the plugin and its version:
[tool.poetry.requires-plugins]
pychub-poetry-plugin = "^0.1.0"
Configuring the Plugin
Add the pychub configuration to your pyproject.toml file according to the
pychub documentation. Here is an example:
[tool.pychub.package]
name = "test-proj"
version = "0.0.1"
wheel = "dist/test_pkg-0.0.1-py3-none-any.whl"
includes = [
"includes/README.md::docs/",
"includes/test.cfg::conf/",
"includes/info.txt::etc/other.txt",
"includes/test.txt"
]
[tool.pychub.package.scripts]
pre = ["scripts/pre_script.sh"]
post = ["scripts/post_script.sh"]
[tool.pychub.package.metadata]
maintainer = "you@example.com"
test = "poetry"
Plugin Execution
Once you have configured the plugin, you can run poetry build and the plugin
will execute. Your dist directory will contain the wheel and the pychub
file.
Project details
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 pychub_poetry_plugin-1.0.2.tar.gz.
File metadata
- Download URL: pychub_poetry_plugin-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00bb946c2649b7f868195a97c03efb8f03aade938e6b0569be5466e9e28d2d5a
|
|
| MD5 |
575c97c6bb88760600bef259f4095cb2
|
|
| BLAKE2b-256 |
b0c6f38764cb5eb2d0f94d6c89f2bb07ddef17374c7ae8466478875b4ab9af33
|
Provenance
The following attestation bundles were made for pychub_poetry_plugin-1.0.2.tar.gz:
Publisher:
workflow.yml on Steve973/pychub-build-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pychub_poetry_plugin-1.0.2.tar.gz -
Subject digest:
00bb946c2649b7f868195a97c03efb8f03aade938e6b0569be5466e9e28d2d5a - Sigstore transparency entry: 486050695
- Sigstore integration time:
-
Permalink:
Steve973/pychub-build-plugins@c69fdccb24d953e0a643e7cab3fd255979cf02f1 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/Steve973
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@c69fdccb24d953e0a643e7cab3fd255979cf02f1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pychub_poetry_plugin-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pychub_poetry_plugin-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f14957f800520fc575126348b224ad37ff2ddcc021291243fb9d2c09b996039
|
|
| MD5 |
2c068f26bc5e4653a09f10e2172bc7ed
|
|
| BLAKE2b-256 |
188f08d1fcc7ab40ef59126d1731171ca090c9478f327d55cddaf6c3e6379302
|
Provenance
The following attestation bundles were made for pychub_poetry_plugin-1.0.2-py3-none-any.whl:
Publisher:
workflow.yml on Steve973/pychub-build-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pychub_poetry_plugin-1.0.2-py3-none-any.whl -
Subject digest:
5f14957f800520fc575126348b224ad37ff2ddcc021291243fb9d2c09b996039 - Sigstore transparency entry: 486050731
- Sigstore integration time:
-
Permalink:
Steve973/pychub-build-plugins@c69fdccb24d953e0a643e7cab3fd255979cf02f1 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/Steve973
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@c69fdccb24d953e0a643e7cab3fd255979cf02f1 -
Trigger Event:
push
-
Statement type: