Name | uv-dynamic-versioning JSON |
Version |
0.11.1
JSON |
| download |
home_page | None |
Summary | Dynamic versioning based on VCS tags for uv/hatch project |
upload_time | 2025-09-13 08:03:05 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <4.0,>=3.9 |
license | MIT License
Copyright (c) 2024 Manabu Niseki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
hatch
uv
|
VCS |
 |
bugtrack_url |
|
requirements |
uv
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# uv-dynamic-versioning
[](https://badge.fury.io/py/uv-dynamic-versioning)
[poetry-dynamic-versioning](https://github.com/mtkennerly/poetry-dynamic-versioning) influenced dynamic versioning tool for [uv](https://github.com/astral-sh/uv)/[hatch](https://github.com/pypa/hatch), powered by [dunamai](https://github.com/mtkennerly/dunamai/).
> [!NOTE]
> This plugin doesn't work with [the uv build backend](https://docs.astral.sh/uv/concepts/build-backend/) right now. (ref. [astral-sh/uv#14561](https://github.com/astral-sh/uv/issues/14561))
## Installation
Update or add `build-system` to use `uv-dynamic-versioning`.
```toml
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
```
## Plugins
This project offers two plugins:
- Version source plugin: is for setting a version based on VCS.
- Metadata hook plugin: is for setting dependencies and optional-dependencies dynamically based on VCS version. This plugin is useful for monorepo.
See [Version Source](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/version_source.md) and [Metadata Hook](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/metadata_hook.md) for more details.
## Tips
See [Tips](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/tips.md).
## Examples
See [Examples](https://github.com/ninoseki/uv-dynamic-versioning/tree/main/examples/).
## Projects Using `uv-dynamic-versioning`
- [microsoft/essex-toolkit](https://github.com/microsoft/essex-toolkit): uses the version source plugin.
- [modelcontextprotocol/python-sdk](https://github.com/modelcontextprotocol/python-sdk): uses the version source plugin.
- [pydantic/pydantic-ai](https://github.com/pydantic/pydantic-ai): uses the version source and the metadata hook plugins.
And more.
## Alternatives
- [hatch-vcs](https://github.com/ofek/hatch-vcs): Hatch plugin for versioning with your preferred VCS.
- [versioningit](https://github.com/jwodder/versioningit): Versioning It with your Version In Git.
Raw data
{
"_id": null,
"home_page": null,
"name": "uv-dynamic-versioning",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "hatch, uv",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d2/05/5a51a6556b1bd34f6ac578b78cfb8fa2f11bc044d822fc48f0892f7f9c08/uv_dynamic_versioning-0.11.1.tar.gz",
"platform": null,
"description": "# uv-dynamic-versioning\n\n[](https://badge.fury.io/py/uv-dynamic-versioning)\n\n[poetry-dynamic-versioning](https://github.com/mtkennerly/poetry-dynamic-versioning) influenced dynamic versioning tool for [uv](https://github.com/astral-sh/uv)/[hatch](https://github.com/pypa/hatch), powered by [dunamai](https://github.com/mtkennerly/dunamai/).\n\n> [!NOTE]\n> This plugin doesn't work with [the uv build backend](https://docs.astral.sh/uv/concepts/build-backend/) right now. (ref. [astral-sh/uv#14561](https://github.com/astral-sh/uv/issues/14561))\n\n## Installation\n\nUpdate or add `build-system` to use `uv-dynamic-versioning`.\n\n```toml\n[build-system]\nrequires = [\"hatchling\", \"uv-dynamic-versioning\"]\nbuild-backend = \"hatchling.build\"\n```\n\n## Plugins\n\nThis project offers two plugins:\n\n- Version source plugin: is for setting a version based on VCS.\n- Metadata hook plugin: is for setting dependencies and optional-dependencies dynamically based on VCS version. This plugin is useful for monorepo.\n\nSee [Version Source](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/version_source.md) and [Metadata Hook](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/metadata_hook.md) for more details.\n\n## Tips\n\nSee [Tips](https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/tips.md).\n\n## Examples\n\nSee [Examples](https://github.com/ninoseki/uv-dynamic-versioning/tree/main/examples/).\n\n## Projects Using `uv-dynamic-versioning`\n\n- [microsoft/essex-toolkit](https://github.com/microsoft/essex-toolkit): uses the version source plugin.\n- [modelcontextprotocol/python-sdk](https://github.com/modelcontextprotocol/python-sdk): uses the version source plugin.\n- [pydantic/pydantic-ai](https://github.com/pydantic/pydantic-ai): uses the version source and the metadata hook plugins.\n\nAnd more.\n\n## Alternatives\n\n- [hatch-vcs](https://github.com/ofek/hatch-vcs): Hatch plugin for versioning with your preferred VCS.\n- [versioningit](https://github.com/jwodder/versioningit): Versioning It with your Version In Git.\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2024 Manabu Niseki\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "Dynamic versioning based on VCS tags for uv/hatch project",
"version": "0.11.1",
"project_urls": {
"Homepage": "https://github.com/ninoseki/uv-dynamic-versioning/",
"Repository": "https://github.com/ninoseki/uv-dynamic-versioning/"
},
"split_keywords": [
"hatch",
" uv"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ad8ffd51c71eedd1dadcf771203afded85a46d8e5741a8723e4ba603978e09df",
"md5": "67842e550a3f666e876f79a351ba8823",
"sha256": "5c82aeeb4dcc9adf9378c1ce3b5798a016cf70ce3f251a26054fad8bccf7d970"
},
"downloads": -1,
"filename": "uv_dynamic_versioning-0.11.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "67842e550a3f666e876f79a351ba8823",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 10973,
"upload_time": "2025-09-13T08:03:03",
"upload_time_iso_8601": "2025-09-13T08:03:03.621709Z",
"url": "https://files.pythonhosted.org/packages/ad/8f/fd51c71eedd1dadcf771203afded85a46d8e5741a8723e4ba603978e09df/uv_dynamic_versioning-0.11.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d2055a51a6556b1bd34f6ac578b78cfb8fa2f11bc044d822fc48f0892f7f9c08",
"md5": "79a84cb8633cc1e406611170517f2157",
"sha256": "4b71f9c3cb0f48727ba8d12b7164f204a3bef4af8d7aa99faf455dd4b35e4a24"
},
"downloads": -1,
"filename": "uv_dynamic_versioning-0.11.1.tar.gz",
"has_sig": false,
"md5_digest": "79a84cb8633cc1e406611170517f2157",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 40010,
"upload_time": "2025-09-13T08:03:05",
"upload_time_iso_8601": "2025-09-13T08:03:05.031190Z",
"url": "https://files.pythonhosted.org/packages/d2/05/5a51a6556b1bd34f6ac578b78cfb8fa2f11bc044d822fc48f0892f7f9c08/uv_dynamic_versioning-0.11.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-13 08:03:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ninoseki",
"github_project": "uv-dynamic-versioning",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "uv",
"specs": [
[
"==",
"0.8.17"
]
]
}
],
"lcname": "uv-dynamic-versioning"
}