Skip to content

Commit

Permalink
Export version as earthkit.time.__version__ (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
oiffrig committed Nov 22, 2024
1 parent 32fb643 commit 9a9001a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased changes

* Export version as `earthkit.time.__version__`

## 0.1.6 - 2024-11-04

* Update project metadata
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down Expand Up @@ -58,6 +58,9 @@ testpaths = [
]
consider_namespace_packages = true

[tool.setuptools.dynamic]
version = {attr = "earthkit.time.__version__"}

[tool.setuptools.packages.find]
where = ["src"]

Expand Down
3 changes: 3 additions & 0 deletions src/earthkit/time/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
YearlySequence,
)

__version__ = "0.1.6"

__all__ = [
"__version__",
"date_range",
"model_climate_dates",
"DailySequence",
Expand Down

0 comments on commit 9a9001a

Please sign in to comment.