Skip to main content

PEP440 Versioning Helper

The pep440 Python package provides utilities to help manage versioning of projects based on the PEP 440 versioning scheme.

Features

  • Parses and validates versions based on PEP 440.
  • Determines the next version based on the current version and desired release type.

Installation

To install pep440, simply use Poetry:

poetry add pep440

Alternatively, you can install it from PyPI using pip:

pip install pep440

Usage

Here's a simple usage example:

from pep440 import get_next_pep440_version

current_version = "0.1.0.dev1"
release_type = "a"
next_version = get_next_pep440_version(current_version, release_type)
print(next_version)  # Expected: 0.1.0a1

Development

  1. Clone the repository:
git clone https://github.com/yourusername/pep440.git
  1. Navigate to the project directory and install dependencies:
cd pep440
poetry install
  1. Run tests (after you've added them):
poetry run pytest

Contribution

Contributions are welcome! Please submit pull requests or open issues to discuss potential changes or additions.

License

MIT

Metadata

Release files for pep440-utility 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pep440-utility 0.1.0
File Size Uploaded Provenance Actions
pep440_utility-0.1.0.tar.gz 3.8 kB Without provenance Details for pep440_utility-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pep440-utility 0.1.0
File Interpreter ABI Platform Actions
pep440_utility-0.1.0-py3-none-any.whl Python 3 none any Details for pep440_utility-0.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / pep440_utility-0.1.0.tar.gz

Download URL pep440_utility-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9cb1d0dfda847056600b137340ef77a1c0de2a966ec4bb1c1a91f03a4a5ba42e
BLAKE2b-256 checksum
How to use checksums
37d095a38fb983e24b2267860c536e687b551f5ac0fe2f64d2610a71fbc2e5e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

Release files / pep440_utility-0.1.0-py3-none-any.whl

Download URL pep440_utility-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2169e4c51debfa29d6ff4e3b3dd317ed663ad3e1feba34417d35e8bb45c9a303
BLAKE2b-256 checksum
How to use checksums
8f5181342c50f186d5e501b8d0891b6fc3a37a81a05d4ba647fec21bf05ab215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

Security for pep440-utility 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page