Skip to content

Commit 12638bd

Browse files
committed
uv for quadfeather
1 parent 60ef60a commit 12638bd

File tree

5 files changed

+170
-4
lines changed

5 files changed

+170
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ test_pages
3030
cities.html
3131
assets
3232
atlas.sh
33+
tmp.csv

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ See the [arxiv example above](https://observablehq.com/@bmschmidt/arxiv) to see
5454
First, install the companion tiling library, which is written in python,
5555
and generate a million points of test data in tiles of 50000 apiece.
5656

57+
Because python finally has a decent package management system that's learned from npm, you should use it!
58+
5759
```sh
58-
python3 -V # requires Python 3.9.x or 3.10.x
59-
python3 -m pip install git+https://github.com/bmschmidt/quadfeather
60-
quadfeather-test-data 1_000_000
61-
quadfeather --files tmp.csv --tile_size 50_000 --destination tiles
60+
uv init
61+
uv add git+https://github.com/bmschmidt/quadfeather
62+
uv run quadfeather-test-data 1_000_000
63+
uv run quadfeather --files tmp.csv --tile_size 50_000 --destination tiles
6264
```
6365

6466
Then setup this library to run. It will start a local dev server.

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[project]
2+
name = "deepscatter"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"quadfeather",
9+
]
10+
11+
[tool.uv.sources]
12+
quadfeather = { git = "https://github.com/bmschmidt/quadfeather" }

0 commit comments

Comments
 (0)