Utilities for maintaining the version in python projects.
Project description
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
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:
[tool.pyproject-version]
files = ["my_project/__init__.py"]
Version Bump
pyproject-version bump [OPTIONS] {major|minor|patch|prerelease|build}
Options:
-
-r,--project-rootDIRECTORYThe root of the Python project.
-
-t,--tokenTEXTThe token to use for pre-release and build versions.
-
--dry-runPrint the new version without updating.
License
MIT License, see LICENSE for more information.
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 pyproject_version-0.1.0.dev1.tar.gz.
File metadata
- Download URL: pyproject_version-0.1.0.dev1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/6.5.0-28-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae6dca20b400f7706b569a5eb00ce7732f4e106129219c5f20c2cd87372c7770
|
|
| MD5 |
eed145f586060996ba0d25770594706f
|
|
| BLAKE2b-256 |
4124160d88d3a6d15ba5da513eecbbba7c8176d4a5e883e3299869df088bbbc4
|
File details
Details for the file pyproject_version-0.1.0.dev1-py3-none-any.whl.
File metadata
- Download URL: pyproject_version-0.1.0.dev1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/6.5.0-28-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68a9136077d89b49ce482b82fec16edd5de81b13b714e527d5fd4df3a3cad61c
|
|
| MD5 |
5615dedae2546eeef7a05644b40a7188
|
|
| BLAKE2b-256 |
c231cc3afa91e69ed4d1d1fe098a23d1b92b44ce31bb195dcacbc23a6df6cd0d
|