[packages/python3-trio-typing] - new

qboosh qboosh at pld-linux.org
Tue Jan 27 16:25:20 CET 2026


commit bffdbc05ab3e9a6f1bf7e2d337ecba17d2dc29ac
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 27 16:25:21 2026 +0100

    - new

 python3-trio-typing.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)
---
diff --git a/python3-trio-typing.spec b/python3-trio-typing.spec
new file mode 100644
index 0000000..3afccc2
--- /dev/null
+++ b/python3-trio-typing.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_with	tests	# unit tests (requires mypy test code)
+
+Summary:	Static type checking support for Trio and related projects
+Summary(pl.UTF-8):	Obsługa statycznej kontroli typów dla Trio i powiązanych projektów
+Name:		python3-trio-typing
+Version:	0.10.0
+Release:	1
+License:	Apache v2.0 or MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/trio-typing/
+Source0:	https://files.pythonhosted.org/packages/source/t/trio-typing/trio-typing-%{version}.tar.gz
+# Source0-md5:	3eee8f78cb0cfa6bbf66d53b7e8f9b9b
+URL:		https://pypi.org/project/trio-typing/
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-async_generator
+BuildRequires:	python3-importlib_metadata
+BuildRequires:	python3-mypy >= 1.0
+BuildRequires:	python3-packaging
+BuildRequires:	python3-pytest
+BuildRequires:	python3-trio >= 0.16.0
+BuildRequires:	python3-mypy-extensions >= 0.4.2
+BuildRequires:	python3-typing_extensions >= 3.7.4
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides:
+- PEP 561 typing stubs packages for the Trio project packages:
+  - trio <https://github.com/python-trio/trio> (trio-stubs)
+  - outcome <https://github.com/python-trio/outcome> (outcome-stubs)
+  - async_generator <https://github.com/python-trio/async_generator>
+    (async_generator-stubs)
+- A package trio_typing containing types that Trio programs often
+  want to refer to ("AsyncGenerator[Y, S]" and "TaskStatus[T]")
+  ("Nursery" is exported publicly by mainline Trio as of version
+  0.12.0.)
+- A mypy plugin that smooths over some limitations in the basic type
+  hints.
+
+%description -l pl.UTF-8
+Ten pakiet dostarcza:
+- pakiety zaślepek typów PEP 561 dla pakietów projektu Trio:
+  - trio <https://github.com/python-trio/trio> (trio-stubs)
+  - outcome <https://github.com/python-trio/outcome> (outcome-stubs)
+  - async_generator <https://github.com/python-trio/async_generator>
+    (async_generator-stubs)
+- pakiet trio_typing, zawierający typy, do których aplikacje Trio
+  często chciałyby się odwoływać ("AsyncGenerator[Y, S]" oraz
+  "TaskStatus[T]"; "Nursery" jest publicznie dostępne w samym Trio od
+  wersji 0.12.0)
+- wtyczkę mypy, nadrabiającą część ograniczeń w podstawowych
+  podpowiedziach typów
+
+%prep
+%setup -q -n trio-typing-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest -p trio_typing._tests.datadriven --pyargs trio_typing
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE LICENSE.MIT README.rst
+%{py3_sitescriptdir}/async_generator-stubs
+%{py3_sitescriptdir}/outcome-stubs
+%{py3_sitescriptdir}/trio-stubs
+%{py3_sitescriptdir}/trio_typing
+%{py3_sitescriptdir}/trio_typing-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-trio-typing.git/commitdiff/bffdbc05ab3e9a6f1bf7e2d337ecba17d2dc29ac



More information about the pld-cvs-commit mailing list