Skip to content

Commit fc3db93

Browse files
author
Menlo Innovations - CAVA Project
committed
Harrison MAPPER - LFAR/KJON - adding uv-dynamic-versioning, __version__ to __init__.py
1 parent 916f3d0 commit fc3db93

4 files changed

Lines changed: 253 additions & 8 deletions

File tree

imap_l3_processing/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from importlib import metadata
2+
3+
try:
4+
__version__ = metadata.version(__name__)
5+
except metadata.PackageNotFoundError:
6+
__version__ = "unknown"

pyproject.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
[build-system]
2+
requires = ["hatchling", "uv-dynamic-versioning"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "imap_l3_processing"
3-
version = "2025.12.02"
7+
dynamic = ["version"]
48
description = "This is a package for creating IMAP Level 3 data"
59
requires-python = ">= 3.10"
610
dependencies = [
@@ -22,6 +26,8 @@ dependencies = [
2226
"uncertainties==3.2.2",
2327
"xarray==2025.3.1",
2428
"imap-processing>=1.0.2",
29+
"hatchling",
30+
"uv-dynamic-versioning"
2531
]
2632

2733
[dependency-groups]
@@ -35,8 +41,8 @@ imap-processing = { git = "https://github.com/IMAP-Science-Operations-Center/ima
3541
[tool.setuptools]
3642
py-modules = ["imap_l3_processing"]
3743

38-
[tool.hatch]
44+
[tool.uv-dynamic-versioning]
45+
fallback-version = "unknown"
3946

40-
[build-system]
41-
requires = ["hatchling"]
42-
build-backend = "hatchling.build"
47+
[tool.hatch.version]
48+
source = "uv-dynamic-versioning"

tests/periodically_run_tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"test_calculate_pickup_ions_with_minimize": "2026-01-28T10:45:30.228069",
55
"test_ultra_all_sp_maps": "2026-01-26T13:05:08.238429",
66
"test_ultra_combined_maps": null,
7-
"test_ultra_combined_nsp_maps": "2026-01-20T14:20:23.754122",
7+
"test_ultra_combined_nsp_maps": "2026-01-30T09:39:41.617647",
88
"test_ultra_combined_sp_maps": "2026-01-29T13:42:59.404468"
99
}

0 commit comments

Comments
 (0)