diff --git a/CHANGELOG.md b/CHANGELOG.md index d9f37e4..c211791 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased changes + +* Export version as `earthkit.time.__version__` + ## 0.1.6 - 2024-11-04 * Update project metadata diff --git a/pyproject.toml b/pyproject.toml index 6daf64f..e8dab13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ requires = ["setuptools>=65", "wheel"] build-backend = "setuptools.build_meta" [project] +dynamic = ["version"] name = "earthkit-time" -version = "0.1.6" requires-python = ">= 3.8" description = "Date and time manipulation routines for the use of weather data" license = {file = "LICENSE"} @@ -58,6 +58,9 @@ testpaths = [ ] consider_namespace_packages = true +[tool.setuptools.dynamic] +version = {attr = "earthkit.time.__version__"} + [tool.setuptools.packages.find] where = ["src"] diff --git a/src/earthkit/time/__init__.py b/src/earthkit/time/__init__.py index 891ccd2..11a5803 100644 --- a/src/earthkit/time/__init__.py +++ b/src/earthkit/time/__init__.py @@ -7,7 +7,10 @@ YearlySequence, ) +__version__ = "0.1.6" + __all__ = [ + "__version__", "date_range", "model_climate_dates", "DailySequence",