Skip to content

Commit

Permalink
Fetch project version number dynamically
Browse files Browse the repository at this point in the history
This ensures the build tool gets the correct version number from
`pyargus.VERSION`, rather than keeping the number in two places.
  • Loading branch information
lunkwill42 authored and johannaengland committed Sep 16, 2024
1 parent ef55762 commit aea650a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "argus-api-client"
version = "0.5.0"
dynamic = ["version"]
description = "A Python API client library for the Argus alert aggregator server"
readme = "README.md"
authors = [{name="Sikt - Kunnskapssektorens Tjenesteleverandør", email="kontakt@sikt.no"}]
Expand All @@ -20,6 +20,9 @@ dependencies = [
"iso8601",
]

[tool.setuptools.dynamic]
version = {attr = "pyargus.VERSION"}

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]

0 comments on commit aea650a

Please sign in to comment.