Adds stubs for uWSGI (#10432)

This adds stubs for the uWSGI Python API.

Similarly to GDB the Python API is only accessible within a uWSGI process, some parts of the API also only exist if certain configuration options are enabled. This makes running stubtest a bit of pain.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
David Salvisberg
2023-07-24 13:32:52 +02:00
committed by GitHub
parent 7d33060e6a
commit 21cb2cb546
7 changed files with 550 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
version = "2.0.*"
upstream_repository = "https://github.com/unbit/uwsgi"
extra_description = """\
Type hints for uWSGI's \
[Python API](https://uwsgi-docs.readthedocs.io/en/latest/PythonModule.html). \
Note that this API is available only when running Python code inside a uWSGI process \
and some parts of the API are only present when corresponding configuration options \
have been enabled.
"""
[tool.stubtest]
# Run stubtest on MacOS as well, to check that the
# uWSGI-specific parts of stubtest_third_party.py
# also work there
platforms = ["linux", "darwin"]