semvec/pypi-packages huggingface dataset:
pyproject-version 0.1.0.dev1
Utilities for maintaining the version in python projects.
License: MIT
Requires Python: <3.13,>=3.11

# Pyproject Version

A tool to manage the version of your Python project.

(Note: This is a work in progress and currently only supports Poetry based projects.)

## Installation

```bash
pip install pyproject-version
```

## Usage

By default, this tool will only change the version in the `pyproject.toml` file located in the current directory. If you want to change the version in a different directory, use the `--project-root` option.

To sync the version in the `pyproject.toml` file with the version in the `__init__.py` file of the project, add the following to the `pyproject.toml` file:

```toml
[tool.pyproject-version]
files = ["my_project/__init__.py"]
```

### Version Bump

```bash
pyproject-version bump [OPTIONS] {major|minor|patch|prerelease|build}
```

**Options:**

+ `-r`, `--project-root` `DIRECTORY`

    The root of the Python project.
+ `-t`, `--token` `TEXT`

    The token to use for pre-release and build versions.
+ `--dry-run`

    Print the new version without updating.



## License

MIT License, see [LICENSE](LICENSE) for more information.