%global srcname trio %global common_description %{expand: The Trio project's goal is to produce a production-quality, permissively licensed, async/await-native I/O library for Python. Like all async libraries, its main purpose is to help you write programs that do multiple things at the same time with parallelized I/O. A web spider that wants to fetch lots of pages in parallel, a web server that needs to juggle lots of downloads and websocket connections at the same time, a process supervisor monitoring multiple subprocesses... that sort of thing. Compared to other libraries, Trio attempts to distinguish itself with an obsessive focus on usability and correctness. Concurrency is complicated; we try to make it easy to get things right.} %bcond_without tests Name: python-%{srcname} Version: 0.20.0 Release: 3%{?dist} Summary: A friendly Python library for async concurrency and I/O License: MIT or ASL 2.0 URL: https://github.com/python-trio/trio Source0: %pypi_source # Python 3.11: traceback_exception_init() has new keyword arguments Patch: https://github.com/python-trio/trio/pull/2270.patch BuildArch: noarch %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} %endif %description -n python3-%{srcname} %{common_description} %prep %autosetup -p 1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %if %{with tests} %check %pytest trio/_core/tests %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %changelog * Thu Mar 24 2022 Miro Hrončok - 0.20.0-3 - Add fix for Python 3.11 - Fixes: rhbz#2049632 * Thu Mar 03 2022 Carl George - 0.20.0-1 - Latest upstream rhbz#2056578 * Fri Jan 21 2022 Fedora Release Engineering - 0.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jul 24 2021 Carl George - 0.19.0-1 - Latest upstream rhbz#1972135 * Fri Jun 04 2021 Python Maint - 0.18.0^20210519gitd883dbe-4 - Rebuilt for Python 3.10 * Fri Jun 04 2021 Python Maint - 0.18.0^20210519gitd883dbe-3 - Bootstrap for Python 3.10 * Mon May 17 2021 Tomas Hrnciar - 0.18.0-2 - Backport upstream fixes to bring compatibility with Python 3.10 * Tue Feb 09 2021 Joel Capitao - 0.18.0-1 - Latest upstream rhbz#1879061 * Wed Jan 27 2021 Fedora Release Engineering - 0.16.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Sep 06 2020 Carl George - 0.16.0-1 - Latest upstream * Wed Jul 29 2020 Fedora Release Engineering - 0.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 04 2020 Carl George - 0.15.1-1 - Latest upstream rhbz#1828266 * Tue May 26 2020 Miro Hrončok - 0.13.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 02 2020 Carl George - 0.13.0-1 - Latest upstream rhbz#1742425 * Thu Oct 03 2019 Miro Hrončok - 0.11.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.11.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Feb 28 2019 Carl George - 0.11.0-1 - Latest upstream * Sat Feb 02 2019 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Sep 20 2018 Carl George - 0.7.0-1 - Initial package