dee8adb
%global srcname curio
d0d535a
%global common_description %{expand:
d0d535a
Curio is a library of building blocks for performing concurrent I/O and common
d0d535a
system programming tasks such as launching subprocesses, working with files,
d0d535a
and farming work out to thread and process pools.  It uses Python coroutines
d0d535a
and the explicit async/await syntax introduced in Python 3.5.  Its programming
d0d535a
model is based on cooperative multitasking and existing programming
d0d535a
abstractions such as threads, sockets, files, subprocesses, locks, and queues.
d0d535a
You'll find it to be small, fast, and fun.  Curio has no third-party
d0d535a
dependencies and does not use the standard asyncio module.  Most users will
d0d535a
probably find it to be a bit too-low level--it's probably best to think of it
d0d535a
as a library for building libraries.  Although you might not use it directly,
d0d535a
many of its ideas have influenced other libraries with similar functionality.}
d0d535a
d0d535a
%bcond_without  tests
d0d535a
d0d535a
d0d535a
Name:           python-%{srcname}
650a1aa
Version:        1.5
d0d535a
Release:        5%{?dist}
dee8adb
Summary:        Building blocks for performing concurrent I/O
dee8adb
License:        BSD
dee8adb
URL:            https://github.com/dabeaz/curio
dee8adb
Source0:        %pypi_source
dee8adb
BuildArch:      noarch
dee8adb
dee8adb
d0d535a
%description %{common_description}
dee8adb
dee8adb
d0d535a
%package -n python3-%{srcname}
dee8adb
Summary:        %{summary}
d0d535a
BuildRequires:  python3-devel
dee8adb
%if %{with tests}
d0d535a
BuildRequires:  %{py3_dist pytest}
dee8adb
%endif
dee8adb
dee8adb
d0d535a
%description -n python3-%{srcname} %{common_description}
dee8adb
dee8adb
dee8adb
%prep
959937d
%autosetup -n %{srcname}-%{version} -p 1
d0d535a
d0d535a
d0d535a
%generate_buildrequires
d0d535a
%pyproject_buildrequires -r
dee8adb
dee8adb
dee8adb
%build
d0d535a
%pyproject_wheel
dee8adb
dee8adb
dee8adb
%install
d0d535a
%pyproject_install
d0d535a
%pyproject_save_files %{srcname}
dee8adb
dee8adb
dee8adb
%if %{with tests}
dee8adb
%check
d0d535a
%pytest --verbose -m 'not internet'
dee8adb
%endif
dee8adb
dee8adb
d0d535a
%files -n python3-%{srcname} -f %{pyproject_files}
dee8adb
%doc README.rst
dee8adb
dee8adb
dee8adb
%changelog
d0d535a
* Thu Jan 27 2022 Carl George <carl@george.computer> - 1.5-5
d0d535a
- Convert to pyproject macros
d0d535a
2479092
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-4
2479092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2479092
a8687ce
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
a8687ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a8687ce
4002979
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5-2
4002979
- Rebuilt for Python 3.10
4002979
650a1aa
* Fri Mar 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.5-1
650a1aa
- Update to 1.5 (rhbz#1821534)
650a1aa
66159e1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
66159e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
66159e1
f361791
* Mon Oct 05 2020 Yatin Karel <ykarel@redhat.com> - 1.4-1
f361791
- Update to 1.4
f361791
0d99bb2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
0d99bb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0d99bb2
aca9c16
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
aca9c16
- Rebuilt for Python 3.9
aca9c16
653ad2f
* Wed Mar 18 2020 Carl George <carl@george.computer> - 1.1-1
653ad2f
- Latest upstream
959937d
- Add patch0 to skip tests that require internet
653ad2f
8bcfd86
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
8bcfd86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8bcfd86
a14dac1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-5
a14dac1
- Rebuilt for Python 3.8.0rc1 (#1748018)
a14dac1
2a7e158
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-4
2a7e158
- Rebuilt for Python 3.8
2a7e158
7011fa3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
7011fa3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7011fa3
c2373cf
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
c2373cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c2373cf
dee8adb
* Wed Sep 12 2018 Carl George <carl@george.computer> - 0.9-1
dee8adb
- Initial package