Skip to main content

plugin that provides a custom version scheme using UTC timestamps for development versions.

Project description

hatch-timestamp-version

PyPI version Python versions CI Coverage License: MIT Code Style: Black Lint: Ruff Typing: mypy

A hatch plugin that provides a custom version scheme using UTC timestamps for development versions.

🚀 Why this project exists

I have CI continuously deploy to 'Test PyPI' and I want packages to have the datetime as dev versions.

Eg: reelname-1.0.1.dev20250503202530-py3-none-any.whl

📐 Requirements

  • Python >= 3.9

📦 Installation

pip install hatch-timestamp-version

🧪 Usage

In your pyproject.toml:

[build-system]
requires = ["hatchling", "hatch-timestamp-version>=0.0.4"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "reelname/_version.py"
source = "timestamp-dev"
scheme = "timestamp-dev"
validate-bump = true

🛠️ Features

  • Uses datetime for the dev versions, when used with hatch-vcs
$ hatch version
# => reelname-1.0.3.dev20250524011230

🧾 Changelog

See CHANGELOG.md

🙏 Credits

📄 License

MIT © Visesh Prasad

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

hatch_timestamp_version-0.0.5.tar.gz (71.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_timestamp_version-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file hatch_timestamp_version-0.0.5.tar.gz.

File metadata

File hashes

Hashes for hatch_timestamp_version-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f0e4670c0a9ebbbdc7fdaf41318e870b47604e8af10b9d029d0c1cb1ba3dca83
MD5 ffcbcb52668037220cab2cfd360aeae6
BLAKE2b-256 e5c6d7ab8cc5c8cc2757079b809b522eb94bccfca2273ba7d939668920cf5638

See more details on using hashes here.

File details

Details for the file hatch_timestamp_version-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_timestamp_version-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 972d193f225203e82cc55e111b526f6a13ba36854aae750efd722b152a4fdf9b
MD5 37a887ff59a4e1297511d68d5f78cba3
BLAKE2b-256 970b0bb11b60b6ec6b10d30730aa9bf4d7c68a6a8b0e301145fe3b8a80c8fc29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page