pep440-utility


Namepep440-utility JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/azataiot/pep440
SummaryA utility for transitioning between version numbers based on PEP 440.
upload_time2023-09-04 19:48:08
maintainerAzat
docs_urlNone
authorAzat
requires_python>=3.11,<4.0
licenseMIT
keywords packaging pep440 versioning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# PEP440 Versioning Helper

The `pep440` Python package provides utilities to help manage versioning of projects based on the [PEP 440](https://peps.python.org/pep-0440/) 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](https://python-poetry.org/):

```bash
poetry add pep440
```

Alternatively, you can install it from PyPI using `pip`:

```bash
pip install pep440
```

## Usage

Here's a simple usage example:

```python
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:
```bash
git clone https://github.com/yourusername/pep440.git
```

2. Navigate to the project directory and install dependencies:
```bash
cd pep440
poetry install
```

3. Run tests (after you've added them):
```bash
poetry run pytest
```

## Contribution

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

## License

[MIT](https://choosealicense.com/licenses/mit/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/azataiot/pep440",
    "name": "pep440-utility",
    "maintainer": "Azat",
    "docs_url": null,
    "requires_python": ">=3.11,<4.0",
    "maintainer_email": "8280770+azataiot@users.noreply.github.com",
    "keywords": "packaging,pep440,versioning",
    "author": "Azat",
    "author_email": "8280770+azataiot@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/37/d0/95a38fb983e24b2267860c536e687b551f5ac0fe2f64d2610a71fbc2e5e3/pep440_utility-0.1.0.tar.gz",
    "platform": null,
    "description": "\n# PEP440 Versioning Helper\n\nThe `pep440` Python package provides utilities to help manage versioning of projects based on the [PEP 440](https://peps.python.org/pep-0440/) versioning scheme.\n\n## Features\n\n- Parses and validates versions based on PEP 440.\n- Determines the next version based on the current version and desired release type.\n\n## Installation\n\nTo install `pep440`, simply use [Poetry](https://python-poetry.org/):\n\n```bash\npoetry add pep440\n```\n\nAlternatively, you can install it from PyPI using `pip`:\n\n```bash\npip install pep440\n```\n\n## Usage\n\nHere's a simple usage example:\n\n```python\nfrom pep440 import get_next_pep440_version\n\ncurrent_version = \"0.1.0.dev1\"\nrelease_type = \"a\"\nnext_version = get_next_pep440_version(current_version, release_type)\nprint(next_version)  # Expected: 0.1.0a1\n```\n\n## Development\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/pep440.git\n```\n\n2. Navigate to the project directory and install dependencies:\n```bash\ncd pep440\npoetry install\n```\n\n3. Run tests (after you've added them):\n```bash\npoetry run pytest\n```\n\n## Contribution\n\nContributions are welcome! Please submit pull requests or open issues to discuss potential changes or additions.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A utility for transitioning between version numbers based on PEP 440.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/azataiot/pep440",
        "Repository": "https://github.com/azataiot/pep440"
    },
    "split_keywords": [
        "packaging",
        "pep440",
        "versioning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f5181342c50f186d5e501b8d0891b6fc3a37a81a05d4ba647fec21bf05ab215",
                "md5": "815d9118717a9c2d2a2591f2443c9d64",
                "sha256": "2169e4c51debfa29d6ff4e3b3dd317ed663ad3e1feba34417d35e8bb45c9a303"
            },
            "downloads": -1,
            "filename": "pep440_utility-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "815d9118717a9c2d2a2591f2443c9d64",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 4417,
            "upload_time": "2023-09-04T19:48:06",
            "upload_time_iso_8601": "2023-09-04T19:48:06.392179Z",
            "url": "https://files.pythonhosted.org/packages/8f/51/81342c50f186d5e501b8d0891b6fc3a37a81a05d4ba647fec21bf05ab215/pep440_utility-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37d095a38fb983e24b2267860c536e687b551f5ac0fe2f64d2610a71fbc2e5e3",
                "md5": "07201bb511b7b573501cbee590ca8beb",
                "sha256": "9cb1d0dfda847056600b137340ef77a1c0de2a966ec4bb1c1a91f03a4a5ba42e"
            },
            "downloads": -1,
            "filename": "pep440_utility-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "07201bb511b7b573501cbee590ca8beb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 3790,
            "upload_time": "2023-09-04T19:48:08",
            "upload_time_iso_8601": "2023-09-04T19:48:08.267987Z",
            "url": "https://files.pythonhosted.org/packages/37/d0/95a38fb983e24b2267860c536e687b551f5ac0fe2f64d2610a71fbc2e5e3/pep440_utility-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-04 19:48:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "azataiot",
    "github_project": "pep440",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pep440-utility"
}
        
Elapsed time: 2.03866s