Skip to main content

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-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.

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

pyproject_version-0.1.0.dev1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pyproject_version-0.1.0.dev1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for pyproject_version-0.1.0.dev1.tar.gz
Algorithm Hash digest
SHA256 ae6dca20b400f7706b569a5eb00ce7732f4e106129219c5f20c2cd87372c7770
MD5 eed145f586060996ba0d25770594706f
BLAKE2b-256 4124160d88d3a6d15ba5da513eecbbba7c8176d4a5e883e3299869df088bbbc4

See more details on using hashes here.

File details

Details for the file pyproject_version-0.1.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyproject_version-0.1.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 68a9136077d89b49ce482b82fec16edd5de81b13b714e527d5fd4df3a3cad61c
MD5 5615dedae2546eeef7a05644b40a7188
BLAKE2b-256 c231cc3afa91e69ed4d1d1fe098a23d1b92b44ce31bb195dcacbc23a6df6cd0d

See more details on using hashes here.

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