From eae9ad7901c3f31c870084f20a4d2c6a6c80a5dc Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Thu, 1 May 2025 21:21:09 +0100 Subject: [PATCH 1/2] Add requirements.txt --- .github/workflows/update.yml | 1 + generate.py | 9 --------- generate_metadata.py | 12 ------------ requirements.txt | 8 ++++++++ 4 files changed, 9 insertions(+), 21 deletions(-) create mode 100644 requirements.txt 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..2cbaa308f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +gitpython +potodo +jinja2 +docutils +sphinx +python-docs-theme +dacite +sphinx-lint \ No newline at end of file From 7b93d5c53ccdf4319b9e289a9374a5f9d96ad811 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 20:22:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2cbaa308f..10a498db1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ docutils sphinx python-docs-theme dacite -sphinx-lint \ No newline at end of file +sphinx-lint