Skip to content

Commit d8df4aa

Browse files
committed
core: optimise packages and usage (reducing ~100 packages in default mode)
1 parent 3477438 commit d8df4aa

File tree

4 files changed

+95
-24
lines changed

4 files changed

+95
-24
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Create virtual environment
3333
run: uv venv
3434
- name: Install dependencies
35-
run: uv sync --dev
35+
run: |
36+
uv sync --group dev --group notebook
3637
- name: Build documentation
37-
run: uv run mkdocs build --site-dir site
38+
run: uv run mkdocs build --site-dir site

.github/workflows/publish_pypi.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ jobs:
2323
enable-cache: false
2424
python-version: "3.10"
2525

26-
- name: Lock and Sync Dependencies
26+
- name: Prepare build lockfile
2727
run: |
2828
uv lock
29-
uv sync --all-groups
3029
3130
- name: Build Distribution
3231
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
uv sync --all-groups
29+
uv sync --group dev --group full
3030
3131
- name: Run tests
3232
run: uv run pytest -v

pyproject.toml

Lines changed: 90 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,61 @@ dependencies = [
3535
"folium>=0.19.4",
3636
"ipython>=8.18.1",
3737
"ipywidgets>=8.1.5",
38-
"jupyter-server-ydoc>=1.1.0",
39-
"jupyter>=1.1.1",
40-
"jupyter-contrib-nbextensions>=0.7.0",
41-
"jupyterlab-widgets>=3.0.13",
42-
"mapclassify>=2.8.1",
4338
"matplotlib>=3.9.4",
4439
"networkx>=3.2.1",
45-
"notebook==6.4.12",
46-
"psygnal>=0.12.0",
4740
"scikit-learn>=1.6.1",
48-
"skrub>=0.5.1",
49-
"tqdm>=4.67.1",
50-
"traitlets==5.9.0",
51-
"jupytergis-core>=0.2.1",
52-
"jupytergis-qgis>=0.2.1",
53-
"millify>=0.1.1",
5441
"beartype>=0.19.0",
55-
"pre-commit>=4.1.0",
5642
"osmnx>=2.0.1",
5743
"geopandas>=1.0.1",
5844
"dependency-injector>=4.45.0",
5945
"pyarrow>=19.0.1",
60-
"auctus-search",
6146
"loguru>=0.7.3",
6247
"thefuzz>=0.22.1",
63-
"ell-ai[all]>=0.0.17",
6448
"dill<0.3.8",
65-
"jupytergis==0.4.4",
66-
"jupyter-resource-usage>=1.1.1",
67-
"nbstripout>=0.8.1",
6849
"geopy>=2.4.1",
6950
"alive-progress>=3.2.0",
7051
"datasets>=3.5.0",
52+
"mapclassify>=2.8.1",
53+
]
54+
55+
[project.optional-dependencies]
56+
notebook = [
57+
"jupyter>=1.1.1",
58+
"notebook==6.4.12",
59+
"jupyter-server-ydoc>=1.1.0",
60+
"jupyter-contrib-nbextensions>=0.7.0",
61+
"jupyterlab-widgets>=3.0.13",
62+
"jupyter-resource-usage>=1.1.1",
63+
"nbstripout>=0.8.1",
64+
]
65+
interactive_table_vis = [
66+
"skrub>=0.5.1",
67+
]
68+
auctus_mixins = [
69+
"auctus-search",
70+
]
71+
pipeline_generators = [
72+
"ell-ai[all]>=0.0.17",
73+
]
74+
jupytergis_mixins = [
75+
"jupytergis==0.4.4",
76+
"jupytergis-core>=0.2.1",
77+
"jupytergis-qgis>=0.2.1",
78+
]
79+
full = [
80+
"skrub>=0.5.1",
81+
"auctus-search",
82+
"ell-ai[all]>=0.0.17",
83+
"jupyter>=1.1.1",
84+
"notebook==6.4.12",
85+
"jupyter-server-ydoc>=1.1.0",
86+
"jupyter-contrib-nbextensions>=0.7.0",
87+
"jupyterlab-widgets>=3.0.13",
88+
"jupyter-resource-usage>=1.1.1",
89+
"nbstripout>=0.8.1",
90+
"jupytergis==0.4.4",
91+
"jupytergis-core>=0.2.1",
92+
"jupytergis-qgis>=0.2.1",
7193
]
7294

7395
[project.urls]
@@ -124,4 +146,53 @@ dev = [
124146
"mkdocs-macros-plugin>=1.3.7",
125147
"mkdocs-abs-rel-plugin>=0.2.4",
126148
"mkdocs-document-dates>=3.1.5",
149+
# development workflow helpers
150+
"pre-commit>=4.1.0",
151+
]
152+
153+
notebook = [
154+
"jupyter>=1.1.1",
155+
"notebook==6.4.12",
156+
"jupyter-server-ydoc>=1.1.0",
157+
"jupyter-contrib-nbextensions>=0.7.0",
158+
"jupyterlab-widgets>=3.0.13",
159+
"jupyter-resource-usage>=1.1.1",
160+
"nbstripout>=0.8.1",
161+
]
162+
163+
interactive_table_vis = [
164+
"skrub>=0.5.1",
165+
]
166+
167+
auctus_mixins = [
168+
"auctus-search",
169+
]
170+
171+
pipeline_generators = [
172+
"ell-ai[all]>=0.0.17",
173+
]
174+
175+
jupytergis_mixins = [
176+
"jupytergis==0.4.4",
177+
"jupytergis-core>=0.2.1",
178+
"jupytergis-qgis>=0.2.1",
179+
]
180+
181+
full = [
182+
"skrub>=0.5.1",
183+
"auctus-search",
184+
"ell-ai[all]>=0.0.17",
185+
"jupyter>=1.1.1",
186+
"notebook==6.4.12",
187+
"jupyter-server-ydoc>=1.1.0",
188+
"jupyter-contrib-nbextensions>=0.7.0",
189+
"jupyterlab-widgets>=3.0.13",
190+
"jupyter-resource-usage>=1.1.1",
191+
"nbstripout>=0.8.1",
192+
"jupytergis==0.4.4",
193+
"jupytergis-core>=0.2.1",
194+
"jupytergis-qgis>=0.2.1",
127195
]
196+
197+
[tool.pytest.ini_options]
198+
testpaths = ["tests"]

0 commit comments

Comments
 (0)