Use dynamic versioning
All checks were successful
/ test (push) Successful in 31s
/ build (push) Successful in 32s

This commit is contained in:
phil 2025-03-16 19:02:10 +01:00
parent d54bb178dd
commit a3a2efe471
5 changed files with 85 additions and 68 deletions

View file

@ -1,7 +1,7 @@
[project]
name = "gisaf-backend"
version = "0.0.0"
description = "Gisaf backend"
dynamic = ["version"]
authors = [{ name = "phil", email = "phil.dev@philome.mooo.com" }]
dependencies = [
"aiopath>=0.7.1",
@ -40,20 +40,9 @@ readme = "README.md"
[project.scripts]
gisaf = "gisaf.cli:cli"
[project.optional-dependencies]
contextily = ["contextily>=1.4.0"]
mqtt = ["aiomqtt>=1.2.1"]
all = ["gisaf-backend[contextily]", "gisaf-backend[mqtt]"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/gisaf"]
[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"dunamai>=1.23.0",
"ipdb>=0.13.13",
"pandas-stubs>=2.1.4.231218",
"pretty-errors>=1.2.25",
@ -64,3 +53,27 @@ dev-dependencies = [
"types-passlib>=1.7.7.20240311",
"pytest>=8.3.4",
]
[project.optional-dependencies]
contextily = ["contextily>=1.4.0"]
mqtt = ["aiomqtt>=1.2.1"]
all = ["gisaf-backend[contextily]", "gisaf-backend[mqtt]"]
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.targets.wheel]
packages = ["src/gisaf"]
[tool.uv-dynamic-versioning]
style = "semver"
[tool.uv]
package = true
[tool.black]
line-length = 98