pep440check
A utility to check if version strings in pyproject.toml's project.version are PEP 440 compliant and suggest normalized forms if they are not. Optionally, it can rewrite the file with the normalized version.
Basic usage
pep440check [-h] [-w] [-V] [path]
path: path to pyproject.toml (defaults to current directory's pyproject.toml if omitted)-w, --write: write normalized version back to file-h, --help: show help message and exit-V, --version: show program's version number and exit
Exit codes
0: Version is already PEP 440 compliant (displays "OK")1: Version needs normalization or error occurred
Output examples
When version is already normalized:
$ pep440check
Target: /path/to/pyproject.toml
OK: 0.0.1a1
When version needs normalization:
$ pep440check
Target: /path/to/pyproject.toml
Original version: 1.0.0-rc1
Suggested normalized version: 1.0.0rc1
Writing normalized version:
$ pep440check -w
Target: /path/to/pyproject.toml
Normalized version: 1.0.0-rc1 -> 1.0.0rc1
Installation and Usage
uv add pep440check --dev
uv run pep440check [args]
or
uvx pep440check [args]
or
uv tool install pep440check
pep440check [args]
Development
git clone https://github.com/heiwa4126/pep440check.git
cd pep440check
uv sync
Run tests:
uv run poe test
Run linter and formatter:
uv run poe check
Type checking:
uv run poe mypy
Build package:
uv run poe build
Metadata
Release files for pep440check 0.0.5
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 |
|---|---|---|---|---|
| pep440check-0.0.5.tar.gz | 4.4 kB | With provenance | Details for pep440check-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pep440check-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for pep440check-0.0.5-py3-none-any.whl |
Total release size: 10.1 kB
Release files / pep440check-0.0.5.tar.gz
| Download URL | pep440check-0.0.5.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc74f0c7b780242fb3c2523b6ac1ba2e97b44396f81ed88d2b3a6eb2541a5559
|
|
BLAKE2b-256 checksum How to use checksums |
fddbea088e5186d67bdf1de5206a550edcaed9c1bee1546a9e05e10ff368ee98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / pep440check-0.0.5-py3-none-any.whl
| Download URL | pep440check-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a4b79528bd9797279c3e6f94a51cdd591ae2d9da734cab5beabb73649416403
|
|
BLAKE2b-256 checksum How to use checksums |
405d8476c30f31a9af2d6ed226a27923c51c2aa238b82bb1f6dfbea94f5e67f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for pep440check 0.0.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pep440check-0.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA 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.