mirror of
https://github.com/vinta/awesome-python.git
synced 2026-10-02 08:23:10 +08:00
Sourced from website/data/pypi_downloads.tsv the same way github_stars.json feeds the stars column. The new sortable column sits between GitHub Stars and Last Commit on the homepage and category pages, formatted with thousands separators like stars, with an em dash when no PyPI data exists. Rows are matched by normalized README display name; Built-in entries never show counts since same-named PyPI packages are stdlib backports (e.g. the asyncio package). Below 960px the column hides and the count moves into the expand row, mirroring the existing Last Commit treatment. main.js gains the downloads sort branch and URL param. The deploy workflow fetches the TSV via the new make fetch_pypi_downloads target with a daily actions/cache fallback, mirroring the stars fetch, but non-fatal: the column degrades to dashes when the fetch fails, unlike stars which the build requires. Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
569 B
Makefile
33 lines
569 B
Makefile
-include .env
|
|
export
|
|
|
|
install:
|
|
uv sync --locked
|
|
|
|
fetch_github_stars:
|
|
uv run python website/fetch_github_stars.py
|
|
|
|
fetch_pypi_downloads:
|
|
uv run python website/fetch_pypi_downloads_via_clickpy.py
|
|
|
|
test:
|
|
uv run pytest website/tests/ -v
|
|
|
|
lint:
|
|
uv run ruff check .
|
|
|
|
format:
|
|
uv run ruff format .
|
|
|
|
typecheck:
|
|
uv run ty check website
|
|
|
|
build:
|
|
uv run python website/build.py
|
|
|
|
preview: build
|
|
uv run watchfiles \
|
|
'uv run python website/build.py' \
|
|
README.md website/templates website/static website/data & \
|
|
python -m http.server -b 127.0.0.1 -d website/output/ 8000
|