Juan Salas commited on
Commit ·
3e5d20a
1
Parent(s): 68e67db
Fix uv run scripts: restore all missing script definitions and enable packaging
Browse files- Added all missing script definitions to pyproject.toml [project.scripts]
- Enabled packaging with [tool.uv] package = true
- Added package discovery for scripts* and app* packages
- Created scripts/__init__.py to make scripts a proper Python package
- All uv run commands now work: start, build, build-indexes, etc.
Resolves issue where 'uv run start' failed with 'No such file or directory'
- pyproject.toml +31 -0
- scripts/__init__.py +1 -0
pyproject.toml
CHANGED
|
@@ -46,4 +46,35 @@ dependencies = [
|
|
| 46 |
"yake>=0.6.0",
|
| 47 |
]
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
# No build system needed for Spaces - dependencies only
|
|
|
|
| 46 |
"yake>=0.6.0",
|
| 47 |
]
|
| 48 |
|
| 49 |
+
[project.scripts]
|
| 50 |
+
# Application scripts
|
| 51 |
+
start = "scripts.start:main"
|
| 52 |
+
|
| 53 |
+
# Build scripts
|
| 54 |
+
build = "scripts.build:main"
|
| 55 |
+
build-all = "scripts.build_all_comprehensive:main"
|
| 56 |
+
build-indexes = "scripts.build_indexes:main"
|
| 57 |
+
build-graphs = "scripts.build_knowledge_graphs:main"
|
| 58 |
+
build-sparse = "scripts.build_sparse_indexes:main"
|
| 59 |
+
|
| 60 |
+
# Model and data management
|
| 61 |
+
download-models = "scripts.download_models:main"
|
| 62 |
+
setup-datasets = "scripts.setup_datasets:main"
|
| 63 |
+
|
| 64 |
+
# Upload scripts
|
| 65 |
+
upload-framework = "scripts.upload_dd_framework:main"
|
| 66 |
+
upload-indexes = "scripts.upload_dd_indexes:main"
|
| 67 |
+
upload-vdrs = "scripts.upload_dd_vdrs:main"
|
| 68 |
+
|
| 69 |
+
# Testing scripts
|
| 70 |
+
run-e2e-tests = "scripts.run_e2e_tests:main"
|
| 71 |
+
verify-test-coverage = "scripts.verify_test_coverage:main"
|
| 72 |
+
test-legal-coreference = "scripts.test_legal_coreference:main"
|
| 73 |
+
|
| 74 |
+
[tool.setuptools.packages.find]
|
| 75 |
+
include = ["app*", "scripts*"]
|
| 76 |
+
|
| 77 |
+
[tool.uv]
|
| 78 |
+
package = true
|
| 79 |
+
|
| 80 |
# No build system needed for Spaces - dependencies only
|
scripts/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# Scripts package
|