Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
3 changes: 3 additions & 0 deletions .github/workflows/data-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
HATCH_VERBOSE: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # hatch-vcs needs the tag history to derive the version
filter: blob:none # full history is only needed for tags; skip the heavy data blobs
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
HATCH_VERBOSE: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # hatch-vcs needs the tag history to derive the version
filter: blob:none # full history is only needed for tags; skip the heavy data blobs
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]

[project]
authors = [{ name = "Bas des Tombe", email = "bas.des.tombe@pwn.nl" }]
Expand All @@ -16,13 +16,13 @@ classifiers = [
"Topic :: Utilities",
]
description = "Data part of the NHFLO modeling environment owned by HHNK, Artesia, and PWN."
dynamic = ["version"]
keywords = ["NHFLO"]
license = { file = "LICENSE.txt" }
maintainers = [{ name = "Bas des Tombe", email = "bas.des.tombe@pwn.nl" }]
name = "nhflodata"
readme = "README.md"
requires-python = ">=3.14"
version = "1.2.0"

dependencies = ["pyyaml>=6.0.1"]

Expand All @@ -39,6 +39,9 @@ test = [
"yamllint",
]

[tool.hatch.version]
source = "vcs"

[tool.hatch.envs.default]
installer = "uv"
python = "3.14"
Expand Down
4 changes: 4 additions & 0 deletions src/nhflodata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Utilities for working with NHFLO data."""

# ruff: noqa: F401
from importlib.metadata import version

from nhflodata.get_paths import create_new_dataset, get_abs_data_path

__version__ = version("nhflodata")
Loading