Skip to main content

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

  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

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

pep440_utility-0.1.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pep440_utility-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page