diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 377fafec8..dbe47d6f2 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -19,6 +19,7 @@ jobs: - uses: astral-sh/setup-uv@v5 - uses: actions/checkout@v4 - run: sudo apt-get install -y gettext + - run: pip install -r requirements.txt - run: uv run generate.py # generates index.html and index.json - run: mkdir -p build && cp index.* style.css build - name: Deploy 🚀 diff --git a/generate.py b/generate.py index 1d7493d85..f773848b3 100644 --- a/generate.py +++ b/generate.py @@ -1,12 +1,3 @@ -# /// script -# requires-python = ">=3.11" -# dependencies = [ -# "gitpython", -# "potodo", -# "jinja2", -# "docutils", -# ] -# /// import json import concurrent.futures import itertools diff --git a/generate_metadata.py b/generate_metadata.py index 30b72668f..06df5b79c 100644 --- a/generate_metadata.py +++ b/generate_metadata.py @@ -1,15 +1,3 @@ -# /// script -# requires-python = ">=3.11" -# dependencies = [ -# "gitpython", -# "potodo", -# "jinja2", -# "sphinx", -# "python-docs-theme", -# "dacite", -# "sphinx-lint", -# ] -# /// import concurrent.futures import itertools import logging diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..10a498db1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +gitpython +potodo +jinja2 +docutils +sphinx +python-docs-theme +dacite +sphinx-lint