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

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

Demo

🚀 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

🛠️ Features

  • Uses datetime for the dev versions, when used with hatch-vcs

📦 Installation

pip install hatch-timestamp-version

🧪 Usage

In your pyproject.toml:

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "vcs"
path = "yourpkg/_version.py"
version_scheme = "timestamp-dev"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

📐 Requirements

  • Python >= 3.9

🧾 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.1.tar.gz (43.2 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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hatch_timestamp_version-0.0.1.tar.gz
Algorithm Hash digest
SHA256 236eabb3ba59aa60eafc5f4eace6dcc57c9e532f5dc343d3c3abbf34e5c4ac0d
MD5 9ad4838b6a0be968ca4654dac3d709ca
BLAKE2b-256 9704f25b2b23ccbe6bd3980bea786b5222b6f1c71b069a5f4f1b20978aa1d249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hatch_timestamp_version-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37939b43abd67b97bedad3593e1c74fb030fd72ee20c7442d4f3cbf795210453
MD5 4eb134f6e2ea6f2e608f7a474f5d278f
BLAKE2b-256 0c1c8696c0f6b707f2a6f8afc7fb993c0699cd290d95a05341f7d11d8a4bff05

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