diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-04 18:46:41 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-05 19:52:21 +0100 |
commit | 014dc845e8004b323f2c9484cdaaa5c3814642b6 (patch) | |
tree | b7160409b2e18d5ecc53967511fb0dfb9ef9a888 | |
parent | 361d55d9d7d8f072802d6b4dc4ebbc9f483e958e (diff) | |
download | weechat-014dc845e8004b323f2c9484cdaaa5c3814642b6.zip |
doc: move script doc/python_stub.py to tools/generate_python_stub.py
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rw-r--r-- | src/plugins/python/weechat.pyi | 2 | ||||
-rwxr-xr-x | tools/generate_python_stub.py (renamed from doc/python_stub.py) | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea80639c2..2db9f58c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: run: ./tools/check_scripts.sh - name: Check Python stub file - run: ./doc/python_stub.py | diff src/plugins/python/weechat.pyi - + run: ./tools/generate_python_stub.py | diff src/plugins/python/weechat.pyi - - name: Check Curl symbols run: curl --silent --show-error --fail --retry 10 https://raw.githubusercontent.com/curl/curl/master/docs/libcurl/symbols-in-versions | ./tools/check_curl_symbols.py diff --git a/src/plugins/python/weechat.pyi b/src/plugins/python/weechat.pyi index cee9dc069..c7da88ca9 100644 --- a/src/plugins/python/weechat.pyi +++ b/src/plugins/python/weechat.pyi @@ -1,5 +1,5 @@ # -# WeeChat Python stub file, auto-generated by python_stub.py. +# WeeChat Python stub file, auto-generated by generate_python_stub.py. # DO NOT EDIT BY HAND! # diff --git a/doc/python_stub.py b/tools/generate_python_stub.py index 5aa5025b1..5d529ac28 100755 --- a/doc/python_stub.py +++ b/tools/generate_python_stub.py @@ -28,12 +28,12 @@ from textwrap import indent import re -DOC_DIR = Path(__file__).resolve().parent / "en" +DOC_DIR = Path(__file__).resolve().parent.parent / "doc" / "en" SRC_DIR = Path(__file__).resolve().parent.parent / "src" STUB_HEADER = """\ # -# WeeChat Python stub file, auto-generated by python_stub.py. +# WeeChat Python stub file, auto-generated by generate_python_stub.py. # DO NOT EDIT BY HAND! # |