use version from __init__.py in pyproject dynamically

This commit is contained in:
Daniel 2023-12-14 14:17:03 +01:00
parent 8190588529
commit 5aac7dac0c

View file

@ -1,9 +1,9 @@
[project]
name = "pytest-abra"
description = "A pytest plugin to test instances of abra recipes"
dynamic = ["version"]
authors = [{name = "Local-IT e.V."}]
readme = "README.md"
version = "0.2.0"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
@ -42,6 +42,9 @@ abratest = "pytest_abra.cli:run"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "pytest_abra/__init__.py"
[tool.hatch.build]
include = [
"pytest_abra/*.py",