Skip to main content

Collection of convenience functions to patch `pyproject.toml` in place

Project description

pyproject-patcher

This Python package is an attempt to make it a little easier to patch pyproject.toml in place.

It is mainly useful for maintainers of system packages.
If you’re not a maintainer of system packages, or if you don’t know what that means, then pyproject-patcher is probably not for you.

Features

  • Hard code a version number into project.version

  • Disable all invocations of the dynamic version generator setuptools-git-versioning

  • Remove dependency to setuptools-git-versioning from build-system.requires

  • Configure setuptools-git-versioning to use a version template without a .dirty suffix

Installation

Installing from PyPI

To install pyproject-patcher from PyPI, open a shell and run:

pip install pyproject-patcher

If that doesn’t work, try:

python3 -m pip install pyproject-patcher

Installing from the AUR

Direct your favorite AUR helper to the python-pyproject-patcher package.

Usage

See USAGE.md for details.

Contributing to pyproject-patcher

See CONTRIBUTING.md.

License

Copyright (c) 2024–2025 Claudia Pellegrino

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. For a copy of the License, see LICENSE.

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

pyproject_patcher-0.3.0.tar.gz (70.4 kB view details)

Uploaded Source

Built Distribution

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

pyproject_patcher-0.3.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pyproject_patcher-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for pyproject_patcher-0.3.0.tar.gz
Algorithm Hash digest
SHA256 818182efa15b9703faff0dc9c8adf515bb96bf95b2b2f6a9b3b1994e575150c6
MD5 78bfd86c53fce4a1252aa3cfceddb3da
BLAKE2b-256 9e258943abe66b45ba347bd7002b05d2168293db279278c0d2b13ead972325aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyproject_patcher-0.3.0.tar.gz:

Publisher: pr-post-merge.yml on claui/pyproject-patcher

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

File details

Details for the file pyproject_patcher-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyproject_patcher-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 767f17ab6bafeb9034d8d4ea6d8292b1f1b5cb5738015c4a888aad2ac933c1c5
MD5 b2b7ffdfa8b6307a871bc92e1bf1b555
BLAKE2b-256 24cf120f3b49eb99fdfdd9c01db7df5dd0e4a0e19bc02fe966593e3963e6b990

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyproject_patcher-0.3.0-py3-none-any.whl:

Publisher: pr-post-merge.yml on claui/pyproject-patcher

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