A utility for transitioning between version numbers based on PEP 440.
Project description
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
- Clone the repository:
git clone https://github.com/yourusername/pep440.git
- Navigate to the project directory and install dependencies:
cd pep440
poetry install
- 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
Project details
Release history Release notifications | RSS feed
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 pep440_utility-0.1.0.tar.gz.
File metadata
- Download URL: pep440_utility-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cb1d0dfda847056600b137340ef77a1c0de2a966ec4bb1c1a91f03a4a5ba42e
|
|
| MD5 |
07201bb511b7b573501cbee590ca8beb
|
|
| BLAKE2b-256 |
37d095a38fb983e24b2267860c536e687b551f5ac0fe2f64d2610a71fbc2e5e3
|
File details
Details for the file pep440_utility-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pep440_utility-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2169e4c51debfa29d6ff4e3b3dd317ed663ad3e1feba34417d35e8bb45c9a303
|
|
| MD5 |
815d9118717a9c2d2a2591f2443c9d64
|
|
| BLAKE2b-256 |
8f5181342c50f186d5e501b8d0891b6fc3a37a81a05d4ba647fec21bf05ab215
|