From 26716a4250bc49e5e8e37df64329e12012246bae Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 3 Sep 2023 21:41:19 +0200 Subject: [PATCH] Add `.py` extension to `boxes2rst` script --- .github/workflows/pages.yml | 4 ++-- .github/workflows/typing.yml | 2 +- documentation/src/{boxes2rst => boxes2rst.py} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename documentation/src/{boxes2rst => boxes2rst.py} (97%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 65b72f06a..51c94d113 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" cache: "pip" # caching pip dependencies - name: Install dependencies run: | @@ -29,7 +29,7 @@ jobs: - name: Build documentation run: | cd ./documentation/src/ - ./boxes2rst generators.inc + ./boxes2rst.py generators.inc make html #linkcheck cp index.html ../build/ cd ../build/ && ls && ls html/ diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 232085a74..f9e00d348 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -34,5 +34,5 @@ jobs: mypy --ignore-missing-imports ./scripts/boxes2inkscape mypy --ignore-missing-imports ./scripts/boxes2pot mypy --ignore-missing-imports ./scripts/boxesserver - mypy --ignore-missing-imports ./documentation/src/boxes2rst + mypy --ignore-missing-imports ./documentation/src/boxes2rst.py mypy --ignore-missing-imports ./setup.py diff --git a/documentation/src/boxes2rst b/documentation/src/boxes2rst.py similarity index 97% rename from documentation/src/boxes2rst rename to documentation/src/boxes2rst.py index e88bb5c26..342639869 100755 --- a/documentation/src/boxes2rst +++ b/documentation/src/boxes2rst.py @@ -48,7 +48,7 @@ def write(self, targetFile: str) -> None: def main() -> None: if len(sys.argv) != 2: - print("Usage: boxes2rst TARGETFILE") + print("Usage: boxes2rst.py TARGETFILE") return b = Boxes2rst() b.write(sys.argv[1])