|
 |
edd3f3 |
# what it's called on pypi
|
|
 |
edd3f3 |
%global srcname curio
|
|
 |
edd3f3 |
# what it's imported as
|
|
 |
edd3f3 |
%global libname curio
|
|
 |
edd3f3 |
# name of egg info directory
|
|
 |
edd3f3 |
%global eggname curio
|
|
 |
edd3f3 |
# package name fragment
|
|
 |
edd3f3 |
%global pkgname curio
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%global _description \
|
|
 |
edd3f3 |
Curio is a library of building blocks for performing concurrent I/O and common\
|
|
 |
edd3f3 |
system programming tasks such as launching subprocesses, working with files,\
|
|
 |
edd3f3 |
and farming work out to thread and process pools. It uses Python coroutines\
|
|
 |
edd3f3 |
and the explicit async/await syntax introduced in Python 3.5. Its programming\
|
|
 |
edd3f3 |
model is based on cooperative multitasking and existing programming\
|
|
 |
edd3f3 |
abstractions such as threads, sockets, files, subprocesses, locks, and queues.\
|
|
 |
edd3f3 |
You'll find it to be small, fast, and fun. Curio has no third-party\
|
|
 |
edd3f3 |
dependencies and does not use the standard asyncio module. Most users will\
|
|
 |
edd3f3 |
probably find it to be a bit too-low level--it's probably best to think of it\
|
|
 |
edd3f3 |
as a library for building libraries. Although you might not use it directly,\
|
|
 |
edd3f3 |
many of its ideas have influenced other libraries with similar functionality.
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%bcond_without tests
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
Name: python-%{pkgname}
|
|
 |
edd3f3 |
Version: 1.5
|
|
 |
edd3f3 |
Release: 1%{?dist}
|
|
 |
edd3f3 |
Summary: Building blocks for performing concurrent I/O
|
|
 |
edd3f3 |
License: BSD
|
|
 |
edd3f3 |
URL: https://github.com/dabeaz/curio
|
|
 |
edd3f3 |
Source0: %pypi_source
|
|
 |
edd3f3 |
BuildArch: noarch
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%description %{_description}
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%package -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
edd3f3 |
Summary: %{summary}
|
|
 |
edd3f3 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
 |
edd3f3 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
 |
edd3f3 |
%if %{with tests}
|
|
 |
edd3f3 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
 |
edd3f3 |
%endif
|
|
 |
edd3f3 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%prep
|
|
 |
edd3f3 |
%autosetup -n %{srcname}-%{version} -p 1
|
|
 |
edd3f3 |
rm -rf %{eggname}.egg-info
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%build
|
|
 |
edd3f3 |
%py3_build
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%install
|
|
 |
edd3f3 |
%py3_install
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%if %{with tests}
|
|
 |
edd3f3 |
%check
|
|
 |
edd3f3 |
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose -m 'not internet'
|
|
 |
edd3f3 |
%endif
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
edd3f3 |
%license LICENSE
|
|
 |
edd3f3 |
%doc README.rst
|
|
 |
edd3f3 |
%{python3_sitelib}/%{libname}
|
|
 |
edd3f3 |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
%changelog
|
|
 |
edd3f3 |
* Fri Mar 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.5-1
|
|
 |
edd3f3 |
- Update to 1.5 (rhbz#1821534)
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
|
|
 |
edd3f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Mon Oct 05 2020 Yatin Karel <ykarel@redhat.com> - 1.4-1
|
|
 |
edd3f3 |
- Update to 1.4
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
 |
edd3f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
|
|
 |
edd3f3 |
- Rebuilt for Python 3.9
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Wed Mar 18 2020 Carl George <carl@george.computer> - 1.1-1
|
|
 |
edd3f3 |
- Latest upstream
|
|
 |
edd3f3 |
- Add patch0 to skip tests that require internet
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
|
|
 |
edd3f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-5
|
|
 |
edd3f3 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-4
|
|
 |
edd3f3 |
- Rebuilt for Python 3.8
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
|
|
 |
edd3f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
|
|
 |
edd3f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
edd3f3 |
|
|
 |
edd3f3 |
* Wed Sep 12 2018 Carl George <carl@george.computer> - 0.9-1
|
|
 |
edd3f3 |
- Initial package
|