@@ -60,10 +60,11 @@ When available, we try to use the geolocations provided by the data publishers.
6060| TH | ❌ No | - |
6161
6262## Installation
63- Note that at least Python 3.7 is required.
63+ Dependency management is done using [ uv] ( https://docs.astral.sh/uv/ ) . Make sure
64+ to have it installed and then run the following command to install the dependencies:
6465
6566``` bash
66- pip install -r requirements.txt
67+ uv sync --locked --all-extras
6768```
6869
6970Make your you have a postgres database with postgis support
7475```
7576Then, run the migrations to bring you database up to date
7677``` sh
77- alembic upgrade head
78+ uv run alembic upgrade head
7879```
7980
8081
@@ -84,8 +85,8 @@ database for test data. After creating it, run the following steps
8485(assuming you called your database ` jedeschule_scraper_test ` ):
8586```
8687export DATABASE_URL=postgres://[email protected] :5432/jedeschule_scraper_test 87- alembic upgrade head
88- python test_models.py
88+ uv run alembic upgrade head
89+ uv run python test_models.py
8990```
9091
9192If you made changes to scrapers, you can also run a script to check the
@@ -108,7 +109,7 @@ bash ./scrape_all.sh
108109### Updating data for a single state
109110To get updates for a single state, run
110111``` bash
111- scrapy crawl < state_name>
112+ uv run scrapy crawl < state_name>
112113# use `scrapy list` to get a list of all available states
113114```
114115
0 commit comments