Skip to main content

Pdm build plugin for pychub

Project description

pychub-pdm-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 pdm.

Prerequisites

You should already have a pyproject.toml file that builds a wheel of your project with the pdm build backend. Once you have completed that, you can continue by adding the pychub-pdm-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 your [build-system] section so that the requires array includes the plugin name:

[build-system]
requires = ["pdm-backend", "pychub-pdm-plugin"]
build-backend = "pdm.backend"

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 = "pdm"

Plugin Execution

Once you have configured the plugin, you can run pdm 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

pychub_pdm_plugin-1.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pychub_pdm_plugin-1.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pychub_pdm_plugin-1.0.2.tar.gz.

File metadata

  • Download URL: pychub_pdm_plugin-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pychub_pdm_plugin-1.0.2.tar.gz
Algorithm Hash digest
SHA256 157f33ad974190daa954ff7fad0d0d26bfd4b9967566f2ed74a6da2a827a4625
MD5 c7e5785b1436c23a55a3968825e64f28
BLAKE2b-256 9c00ae1fab85a0cc102ca234196c7992fb10509cb33d419b4b3ee48e7c005391

See more details on using hashes here.

Provenance

The following attestation bundles were made for pychub_pdm_plugin-1.0.2.tar.gz:

Publisher: workflow.yml on Steve973/pychub-build-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pychub_pdm_plugin-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pychub_pdm_plugin-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4333df6704898972ef9c8b83cf8c022b026e8bcc03105a895daddbbbd6083a47
MD5 75489f1ee9e98377f60fe9b84bfd370f
BLAKE2b-256 08c55d9bbffd1bc04e07a0e34ee142c80ef343961e9a93eeba95b5ae12c2df90

See more details on using hashes here.

Provenance

The following attestation bundles were made for pychub_pdm_plugin-1.0.2-py3-none-any.whl:

Publisher: workflow.yml on Steve973/pychub-build-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page