From 17ad460d57d4bd3df509b2e904bd5a0e613f238a Mon Sep 17 00:00:00 2001 From: Aki Koskinen Date: Thu, 21 Dec 2023 16:40:41 +0200 Subject: [PATCH] Move version number to its own file This way it's easier to use that same version number in multiple places. --- VERSION | 1 + docs/build.md | 1 + pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.0.1 diff --git a/docs/build.md b/docs/build.md index 1ba59c3..03c21a7 100644 --- a/docs/build.md +++ b/docs/build.md @@ -1,6 +1,7 @@ Building and releasing the GDPR API Tester ========================================== +Update version number in `VERSION` file. # GitHub package diff --git a/pyproject.toml b/pyproject.toml index 9b89e42..880d1ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "gdpr-api-tester" -version = "0.0.1" authors = [ { name="Mikko Keskinen", email="mikko.keskinen@hel.fi" }, ] @@ -16,7 +15,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Quality Assurance", ] -dynamic = ["dependencies"] +dynamic = ["dependencies", "version"] [project.urls] "Homepage" = "https://github.com/City-of-Helsinki/profile-gdpr-api-tester" @@ -31,6 +30,7 @@ build-backend = "setuptools.build_meta" [tool.setuptools.dynamic] dependencies = {file = ["requirements.txt"]} +version = {file = "VERSION"} [tool.setuptools.packages] find = {}