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:
+6
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user