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-versioningfrombuild-system.requires -
Configure
setuptools-git-versioningto use a version template without a.dirtysuffix
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
818182efa15b9703faff0dc9c8adf515bb96bf95b2b2f6a9b3b1994e575150c6
|
|
| MD5 |
78bfd86c53fce4a1252aa3cfceddb3da
|
|
| BLAKE2b-256 |
9e258943abe66b45ba347bd7002b05d2168293db279278c0d2b13ead972325aa
|
Provenance
The following attestation bundles were made for pyproject_patcher-0.3.0.tar.gz:
Publisher:
pr-post-merge.yml on claui/pyproject-patcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyproject_patcher-0.3.0.tar.gz -
Subject digest:
818182efa15b9703faff0dc9c8adf515bb96bf95b2b2f6a9b3b1994e575150c6 - Sigstore transparency entry: 849967511
- Sigstore integration time:
-
Permalink:
claui/pyproject-patcher@afa13006dce938c3c1feaae957981c33bcaa835b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/claui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pr-post-merge.yml@afa13006dce938c3c1feaae957981c33bcaa835b -
Trigger Event:
pull_request_target
-
Statement type:
File details
Details for the file pyproject_patcher-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pyproject_patcher-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.5 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 |
767f17ab6bafeb9034d8d4ea6d8292b1f1b5cb5738015c4a888aad2ac933c1c5
|
|
| MD5 |
b2b7ffdfa8b6307a871bc92e1bf1b555
|
|
| BLAKE2b-256 |
24cf120f3b49eb99fdfdd9c01db7df5dd0e4a0e19bc02fe966593e3963e6b990
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyproject_patcher-0.3.0-py3-none-any.whl -
Subject digest:
767f17ab6bafeb9034d8d4ea6d8292b1f1b5cb5738015c4a888aad2ac933c1c5 - Sigstore transparency entry: 849967513
- Sigstore integration time:
-
Permalink:
claui/pyproject-patcher@afa13006dce938c3c1feaae957981c33bcaa835b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/claui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pr-post-merge.yml@afa13006dce938c3c1feaae957981c33bcaa835b -
Trigger Event:
pull_request_target
-
Statement type: