Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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-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 for more information.

Release files for pyproject-version 0.1.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyproject-version 0.1.0.dev1
File Size Uploaded
pyproject_version-0.1.0.dev1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyproject-version 0.1.0.dev1
File Interpreter ABI Platform
pyproject_version-0.1.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / pyproject_version-0.1.0.dev1.tar.gz

Download URL pyproject_version-0.1.0.dev1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae6dca20b400f7706b569a5eb00ce7732f4e106129219c5f20c2cd87372c7770
BLAKE2b-256 checksum
How to use checksums
4124160d88d3a6d15ba5da513eecbbba7c8176d4a5e883e3299869df088bbbc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.8 Linux/6.5.0-28-generic

Release files / pyproject_version-0.1.0.dev1-py3-none-any.whl

Download URL pyproject_version-0.1.0.dev1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68a9136077d89b49ce482b82fec16edd5de81b13b714e527d5fd4df3a3cad61c
BLAKE2b-256 checksum
How to use checksums
c231cc3afa91e69ed4d1d1fe098a23d1b92b44ce31bb195dcacbc23a6df6cd0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.8 Linux/6.5.0-28-generic

Release history Release notifications | RSS feed

This release

0.1.0.dev1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page