Skip to content

Commit 39f78d6

Browse files
committed
Use inline dependency metadata for update-rtd-redirects.py
1 parent 873fdf7 commit 39f78d6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .github/workflows/update-rtd-redirects.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.11"
25-
- run: pip install httpx pyyaml rich
26-
- run: python tools/update-rtd-redirects.py
25+
- run: pipx run tools/update-rtd-redirects.py
2726
env:
2827
RTD_API_TOKEN: ${{ secrets.RTD_API_TOKEN }}

Diff for: tools/update-rtd-redirects.py

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Relevant API reference: https://docs.readthedocs.io/en/stable/api/v3.html#redirects
44
"""
55

6+
# /// script
7+
# requires-python = ">=3.11"
8+
# dependencies = ["httpx", "rich", "pyyaml"]
9+
# ///
10+
611
import operator
712
import os
813
import sys

0 commit comments

Comments
 (0)