RoyAalekh commited on
Commit
6972b33
·
1 Parent(s): 2b6680d

fixing pyporject for streamlit cloud deployment

Browse files
Files changed (1) hide show
  1. pyproject.toml +54 -37
pyproject.toml CHANGED
@@ -1,58 +1,75 @@
1
  ########################################
2
- # REQUIRED FOR STREAMLIT CLOUD / POETRY
3
  ########################################
4
- [tool.poetry]
5
  name = "code4change-analysis"
6
  version = "0.1.0"
7
  description = "Court scheduling simulation + analytics"
8
- authors = ["Aalekh Roy"]
9
- package-mode = false
10
-
11
 
12
  ########################################
13
  # PROJECT DEPENDENCIES
14
  ########################################
15
- [tool.poetry.dependencies]
16
- python = ">=3.11"
17
- pandas = ">=2.2"
18
- polars = ">=1.30"
19
- plotly = ">=6.0"
20
- openpyxl = ">=3.1"
21
- XlsxWriter = ">=3.2"
22
- pyarrow = ">=17.0"
23
- numpy = ">=2.0"
24
- networkx = ">=3.0"
25
- ortools = ">=9.8"
26
- pydantic = ">=2.0"
27
- typer = ">=0.12"
28
- simpy = ">=4.1"
29
- scipy = ">=1.14"
30
- scikit-learn = ">=1.5"
31
- streamlit = ">=1.28"
32
- altair = ">=5.0"
33
- duckdb = ">=1.4.2"
34
 
35
  ########################################
36
- # OPTIONAL DEV TOOLS
37
  ########################################
38
- [tool.poetry.group.dev.dependencies]
39
- pre-commit = ">=3.5"
40
- ruff = ">=0.6"
41
- black = ">=24.0"
42
- pytest = ">=8.0"
43
- hypothesis = ">=6.0"
44
- mypy = ">=1.11"
 
 
45
 
46
  ########################################
47
- # CLI ENTRY POINTS
48
  ########################################
49
- [tool.poetry.scripts]
50
  court-scheduler = "cli.main:app"
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  ########################################
54
- # BUILD SYSTEM FOR POETRY
55
  ########################################
56
  [build-system]
57
- requires = ["poetry-core"]
58
- build-backend = "poetry.core.masonry.api"
 
1
  ########################################
2
+ # CORE PROJECT METADATA
3
  ########################################
4
+ [project]
5
  name = "code4change-analysis"
6
  version = "0.1.0"
7
  description = "Court scheduling simulation + analytics"
8
+ requires-python = ">=3.11"
9
+ authors = [{ name = "Aalekh Roy" }]
 
10
 
11
  ########################################
12
  # PROJECT DEPENDENCIES
13
  ########################################
14
+ dependencies = [
15
+ "pandas>=2.2",
16
+ "polars>=1.30",
17
+ "plotly>=6.0",
18
+ "openpyxl>=3.1",
19
+ "XlsxWriter>=3.2",
20
+ "pyarrow>=17.0",
21
+ "numpy>=2.0",
22
+ "networkx>=3.0",
23
+ "ortools>=9.8",
24
+ "pydantic>=2.0",
25
+ "typer>=0.12",
26
+ "simpy>=4.1",
27
+ "scipy>=1.14",
28
+ "scikit-learn>=1.5",
29
+ "streamlit>=1.28",
30
+ "altair>=5.0",
31
+ "duckdb>=1.4.2",
32
+ ]
33
 
34
  ########################################
35
+ # DEV DEPENDENCIES
36
  ########################################
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest>=8.0",
40
+ "ruff>=0.6",
41
+ "black>=24.0",
42
+ "mypy>=1.11",
43
+ "hypothesis>=6.0",
44
+ "pre-commit>=3.5",
45
+ ]
46
 
47
  ########################################
48
+ # CLI SCRIPTS
49
  ########################################
50
+ [project.scripts]
51
  court-scheduler = "cli.main:app"
52
 
53
+ ########################################
54
+ # SETUPTOOLS PACKAGE DISCOVERY (FIX)
55
+ ########################################
56
+ [tool.setuptools.packages.find]
57
+ include = [
58
+ "cli",
59
+ "eda",
60
+ "scheduler",
61
+ ]
62
+ exclude = [
63
+ "Data",
64
+ "configs",
65
+ "outputs",
66
+ "reports",
67
+ "literature",
68
+ ]
69
 
70
  ########################################
71
+ # BUILD SYSTEM
72
  ########################################
73
  [build-system]
74
+ requires = ["setuptools", "wheel"]
75
+ build-backend = "setuptools.build_meta"