Expose dataset/conversion scripts as uv entry points

scripts/ is now a proper package (scripts/__init__.py, added to the wheel's
packages), with each script registered under [project.scripts] using its
bare dashed name (e.g. `uv run migrate-geant-steps`). Tests now import these
modules normally instead of loading them by file path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 16:51:47 +02:00
parent 320365606a
commit 5be91e0d17
7 changed files with 18 additions and 41 deletions
+6 -1
View File
@@ -37,13 +37,18 @@ analysis = [
[project.scripts]
giant = "giant.cli:app"
steps-to-parquet = "scripts.steps_to_parquet:main"
steps-to-parquet-parallel = "scripts.steps_to_parquet_parallel:main"
migrate-geant-steps = "scripts.migrate_geant_steps:main"
bump-dataset-version = "scripts.bump_dataset_version:main"
create-root-files = "scripts.create_root_files:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["giant"]
packages = ["giant", "scripts"]
[tool.uv]
conflicts = [