JoeTach commited on
Commit
3dd67c5
·
1 Parent(s): 04f9f25

Streamlit Cloud fix: lean requirements.txt + inline 'all' extra

Browse files

Streamlit Community Cloud's Poetry-based installer rejected
cdpr[all] because the all extra self-referenced as
'cdpr[viz,viz-extras,learn,rl,...]' --- Poetry detects a cycle and
fails. Two fixes:

1) requirements.txt: lean dep list (streamlit + httpx + viz + data
+ scipy + the local cdpr package via '.') that Streamlit Cloud
picks up automatically and uses instead of pyproject extras.
2) Inline the 'all' extra: drop the self-reference, list the
underlying packages directly. Pip handles either form fine; this
keeps Poetry happy too.

Also point project URLs at Tachia/cdpr_simulator (the actual repo).

Files changed (2) hide show
  1. pyproject.toml +35 -4
  2. requirements.txt +25 -0
pyproject.toml CHANGED
@@ -72,14 +72,45 @@ dev = [
72
  ]
73
  adapters-mujoco = ["mujoco>=3.1"]
74
  adapters-pybullet = ["pybullet>=3.2"]
 
 
 
75
  all = [
76
- "cdpr[viz,viz-extras,learn,rl,data,api,gui,storage,dev]",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  ]
78
 
79
  [project.urls]
80
- Homepage = "https://github.com/mfeuter/cdpr"
81
- Repository = "https://github.com/mfeuter/cdpr"
82
- Issues = "https://github.com/mfeuter/cdpr/issues"
83
 
84
  [tool.hatch.build.targets.wheel]
85
  packages = ["src/cdpr"]
 
72
  ]
73
  adapters-mujoco = ["mujoco>=3.1"]
74
  adapters-pybullet = ["pybullet>=3.2"]
75
+ # Inlined rather than self-referenced as `cdpr[viz,viz-extras,...]`:
76
+ # Poetry-based installers (Streamlit Community Cloud) treat the
77
+ # self-reference as a circular dependency and refuse to install.
78
  all = [
79
+ # viz
80
+ "matplotlib>=3.8",
81
+ "pillow>=10.0",
82
+ # viz-extras
83
+ "plotly>=5.18",
84
+ "pyvista>=0.43",
85
+ # learn
86
+ "torch>=2.2",
87
+ "gymnasium>=0.29",
88
+ # rl
89
+ "stable-baselines3>=2.3",
90
+ # data
91
+ "pandas>=2.1",
92
+ "openpyxl>=3.1",
93
+ # api
94
+ "fastapi>=0.110",
95
+ "uvicorn>=0.29",
96
+ "pydantic>=2.6",
97
+ # gui
98
+ "streamlit>=1.32",
99
+ # storage
100
+ "supabase>=2.4",
101
+ # dev
102
+ "pytest>=8.0",
103
+ "pytest-cov>=5.0",
104
+ "hypothesis>=6.100",
105
+ "ruff>=0.4",
106
+ "mypy>=1.10",
107
+ "httpx>=0.27",
108
  ]
109
 
110
  [project.urls]
111
+ Homepage = "https://github.com/Tachia/cdpr_simulator"
112
+ Repository = "https://github.com/Tachia/cdpr_simulator"
113
+ Issues = "https://github.com/Tachia/cdpr_simulator/issues"
114
 
115
  [tool.hatch.build.targets.wheel]
116
  packages = ["src/cdpr"]
requirements.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lean install for hosts that prefer pip + requirements.txt over pyproject
2
+ # extras (notably Streamlit Community Cloud, whose Poetry-based installer
3
+ # chokes on pyproject extras that reference each other).
4
+ #
5
+ # Local development still uses the canonical:
6
+ # pip install -e ".[dev,viz,data,api,gui]"
7
+ #
8
+ # What's in here = what the deployed Streamlit research console needs.
9
+
10
+ streamlit>=1.32
11
+
12
+ # Backend wire (the GUI calls the FastAPI service over HTTP).
13
+ httpx>=0.27
14
+
15
+ # Visualisation + ingestion + scientific core deps.
16
+ matplotlib>=3.8
17
+ pillow>=10.0
18
+ pandas>=2.1
19
+ openpyxl>=3.1
20
+ numpy>=1.24
21
+ scipy>=1.11
22
+
23
+ # Install the cdpr package itself --- hatchling builds from pyproject.toml.
24
+ # (no extras listed: this file already names everything the GUI needs)
25
+ .