From 691bff5c54b4b356a715d8637486605488ab1014 Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Mon, 2 Dec 2024 15:34:02 +0100 Subject: [PATCH] Versioning with tags --- pyproject.toml | 5 ++++- src/pyopmspe11/__init__.py | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e6506e5..faa5b8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [{ name = "David Landa-Marbán", email = "dmar@norceresearch.no" }, { name = "Tor Harald Sandve", email = "tosa@norceresearch.no" }] maintainers = [{ name = "David Landa-Marbán", email = "dmar@norceresearch.no" }, { name = "Tor Harald Sandve", email = "tosa@norceresearch.no" }] -version = "2024.04" +dynamic = ["version"] readme = {file = "README.md", content-type = "text/markdown"} license = {text = "GPL-3.0"} keywords = ["csp11", "ccs", "cfd", "co2", "flow", "opm", "python", "spe11"] @@ -38,6 +38,9 @@ dependencies = [ ] requires-python = ">=3.8" +[tool.setuptools.dynamic] +version = {attr = "pyopmspe11.__version__"} + [project.scripts] pyopmspe11 = "pyopmspe11.core.pyopmspe11:main" diff --git a/src/pyopmspe11/__init__.py b/src/pyopmspe11/__init__.py index e69de29..7f47e0c 100644 --- a/src/pyopmspe11/__init__.py +++ b/src/pyopmspe11/__init__.py @@ -0,0 +1,5 @@ +""" +Code version. +""" + +__version__ = "2024.10-pre"