Skip to content

Commit

Permalink
Add data.py dependencies as inline script metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
clonejo authored and evgeni committed Dec 24, 2024
1 parent a451c39 commit c908bba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ How to contribute
-----------------

* Fork this project
* Edit javascripts/data.js
* Edit javascripts/data.yml
* Run `data/data.py`, for example `cd data && uv run ./data.py`
* Open index.html in your browser, check if everything's fine
* Submit a pull request
10 changes: 10 additions & 0 deletions data/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/usr/bin/env python3

# /// script
# requires-python = "<3.12" # distutils was removed in 3.12
# dependencies = [
# "PyYAML",
# "python-debian",
# "requests",
# "zstandard",
# ]
# ///

import bz2
import gzip
import json
Expand Down

0 comments on commit c908bba

Please sign in to comment.