Spaces:
Sleeping
Sleeping
fixing pyporject for streamlit cloud deployment
Browse files- pyproject.toml +10 -20
pyproject.toml
CHANGED
|
@@ -4,6 +4,10 @@ version = "0.1.0-dev.1"
|
|
| 4 |
description = "Fair, transparent court scheduling optimization using graph-based modeling and multi-objective optimization"
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.11"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
dependencies = [
|
| 8 |
"pandas>=2.2",
|
| 9 |
"polars>=1.30",
|
|
@@ -41,8 +45,11 @@ court-scheduler = "cli.main:app"
|
|
| 41 |
requires = ["hatchling"]
|
| 42 |
build-backend = "hatchling.build"
|
| 43 |
|
| 44 |
-
[tool.hatch.build
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
[tool.black]
|
| 48 |
line-length = 100
|
|
@@ -61,21 +68,4 @@ testpaths = ["tests"]
|
|
| 61 |
addopts = "-v --tb=short"
|
| 62 |
markers = [
|
| 63 |
"unit: Unit tests",
|
| 64 |
-
"integration:
|
| 65 |
-
"fairness: Fairness validation tests",
|
| 66 |
-
"performance: Performance benchmark tests",
|
| 67 |
-
"rl: Reinforcement learning tests",
|
| 68 |
-
"simulation: Simulation engine tests",
|
| 69 |
-
"edge_case: Edge case and boundary condition tests",
|
| 70 |
-
"failure: Failure scenario tests",
|
| 71 |
-
"slow: Slow-running tests (>5 seconds)"
|
| 72 |
-
]
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
# Configure Poetry to skip installing the current project package during dependency installation.
|
| 76 |
-
# This environment uses Poetry to resolve/install dependencies, but this project is built with Hatchling
|
| 77 |
-
# and doesn't provide a top-level package matching the project name. Disabling package mode prevents
|
| 78 |
-
# errors like: "No file/folder found for package code4change-analysis".
|
| 79 |
-
[tool.poetry]
|
| 80 |
-
package-mode = false
|
| 81 |
-
|
|
|
|
| 4 |
description = "Fair, transparent court scheduling optimization using graph-based modeling and multi-objective optimization"
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.11"
|
| 7 |
+
|
| 8 |
+
# IMPORTANT: scheduler will be installed as a proper package
|
| 9 |
+
packages = ["scheduler"]
|
| 10 |
+
|
| 11 |
dependencies = [
|
| 12 |
"pandas>=2.2",
|
| 13 |
"polars>=1.30",
|
|
|
|
| 45 |
requires = ["hatchling"]
|
| 46 |
build-backend = "hatchling.build"
|
| 47 |
|
| 48 |
+
[tool.hatch.build]
|
| 49 |
+
# THIS MAKES 'scheduler' A PROPER PYTHON PACKAGE
|
| 50 |
+
packages = [
|
| 51 |
+
"scheduler",
|
| 52 |
+
]
|
| 53 |
|
| 54 |
[tool.black]
|
| 55 |
line-length = 100
|
|
|
|
| 68 |
addopts = "-v --tb=short"
|
| 69 |
markers = [
|
| 70 |
"unit: Unit tests",
|
| 71 |
+
"integration: Integrat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|