Move map assets out of CI

This commit is contained in:
Andras Schmelczer 2026-05-10 15:05:42 +01:00
parent a5f2e6eabb
commit 9248e26af2
851 changed files with 1925 additions and 10 deletions

View file

@ -3,6 +3,7 @@
# Usage:
# make -f Makefile.data prepare # Build all parquets (+ all deps)
# make -f Makefile.data tiles # Download UK map tiles
# make -f Makefile.data download-map-assets
#
# Or include from the main Makefile and use targets directly.
@ -55,9 +56,11 @@ MEDIAN_AGE := $(DATA_DIR)/median_age.parquet
ELECTION := $(DATA_DIR)/election_results.parquet
ENGLAND_BOUNDARY := $(DATA_DIR)/england_boundary.geojson
RM_OUTCODES := frontend/src/lib/rightmove-outcodes.json
MAP_ASSETS_DIR := frontend/public/assets
# Sentinel files for directory targets (Make doesn't track directories well)
INSPIRE_STAMP := $(INSPIRE_DIR)/.done
MAP_ASSETS_STAMP := $(MAP_ASSETS_DIR)/.done
PMTILES_VERSION := 1.22.3
@ -68,6 +71,7 @@ PMTILES_VERSION := 1.22.3
download-naptan download-pois download-grocery-retail-points download-ofsted download-broadband download-rental-prices \
download-postcodes download-noise download-inspire download-crime \
download-oa-boundaries download-uprn-lookup download-transit-network download-greenspace download-os-greenspace download-pbf download-places download-lsoa-population download-median-age download-england-boundary download-rightmove-outcodes \
download-map-assets \
transform-pois transform-epc-pp transform-crime transform-poi-proximity \
transform-school-proximity transform-postcode-boundaries \
generate-postcode-boundaries
@ -101,6 +105,7 @@ download-median-age: $(MEDIAN_AGE)
download-election-results: $(ELECTION)
download-england-boundary: $(ENGLAND_BOUNDARY)
download-rightmove-outcodes: $(RM_OUTCODES)
download-map-assets: $(MAP_ASSETS_STAMP)
transform-pois: $(POIS_FILTERED)
transform-epc-pp: $(EPC_PP)
transform-crime: $(CRIME)
@ -214,6 +219,10 @@ $(ENGLAND_BOUNDARY):
$(RM_OUTCODES): $(MERGE_STAMP)
uv run python -m pipeline.download.rightmove_outcodes --postcodes $(POSTCODES_PQ) --output $@
$(MAP_ASSETS_STAMP):
uv run python -m pipeline.download.map_assets --output $(MAP_ASSETS_DIR)
@touch $@
# ── Transforms ────────────────────────────────────────────────────────────────
$(POIS_FILTERED): $(POIS_RAW) $(NAPTAN) $(GROCERY_RETAIL_POINTS) $(ENGLAND_BOUNDARY)