|
 |
dee8adb |
# what it's called on pypi
|
|
 |
dee8adb |
%global srcname curio
|
|
 |
dee8adb |
# what it's imported as
|
|
 |
dee8adb |
%global libname curio
|
|
 |
dee8adb |
# name of egg info directory
|
|
 |
dee8adb |
%global eggname curio
|
|
 |
dee8adb |
# package name fragment
|
|
 |
dee8adb |
%global pkgname curio
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%global _description \
|
|
 |
dee8adb |
Curio is a library of building blocks for performing concurrent I/O and common\
|
|
 |
dee8adb |
system programming tasks such as launching subprocesses, working with files,\
|
|
 |
dee8adb |
and farming work out to thread and process pools. It uses Python coroutines\
|
|
 |
dee8adb |
and the explicit async/await syntax introduced in Python 3.5. Its programming\
|
|
 |
dee8adb |
model is based on cooperative multitasking and existing programming\
|
|
 |
dee8adb |
abstractions such as threads, sockets, files, subprocesses, locks, and queues.\
|
|
 |
dee8adb |
You'll find it to be small, fast, and fun. Curio has no third-party\
|
|
 |
dee8adb |
dependencies and does not use the standard asyncio module. Most users will\
|
|
 |
dee8adb |
probably find it to be a bit too-low level--it's probably best to think of it\
|
|
 |
dee8adb |
as a library for building libraries. Although you might not use it directly,\
|
|
 |
dee8adb |
many of its ideas have influenced other libraries with similar functionality.
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%bcond_without tests
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
Name: python-%{pkgname}
|
|
 |
653ad2f |
Version: 1.1
|
|
 |
0d99bb2 |
Release: 3%{?dist}
|
|
 |
dee8adb |
Summary: Building blocks for performing concurrent I/O
|
|
 |
dee8adb |
License: BSD
|
|
 |
dee8adb |
URL: https://github.com/dabeaz/curio
|
|
 |
dee8adb |
Source0: %pypi_source
|
|
 |
959937d |
# https://github.com/dabeaz/curio/issues/320
|
|
 |
959937d |
Patch0: add-custom-marker-for-tests-that-require-internet.patch
|
|
 |
dee8adb |
BuildArch: noarch
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%description %{_description}
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%package -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
dee8adb |
Summary: %{summary}
|
|
 |
dee8adb |
BuildRequires: python%{python3_pkgversion}-devel
|
|
 |
dee8adb |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
 |
dee8adb |
%if %{with tests}
|
|
 |
dee8adb |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
 |
dee8adb |
%endif
|
|
 |
dee8adb |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%prep
|
|
 |
959937d |
%autosetup -n %{srcname}-%{version} -p 1
|
|
 |
dee8adb |
rm -rf %{eggname}.egg-info
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%build
|
|
 |
dee8adb |
%py3_build
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%install
|
|
 |
dee8adb |
%py3_install
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%if %{with tests}
|
|
 |
dee8adb |
%check
|
|
 |
959937d |
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose -m 'not internet'
|
|
 |
dee8adb |
%endif
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
dee8adb |
%license LICENSE
|
|
 |
dee8adb |
%doc README.rst
|
|
 |
dee8adb |
%{python3_sitelib}/%{libname}
|
|
 |
dee8adb |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
 |
dee8adb |
|
|
 |
dee8adb |
|
|
 |
dee8adb |
%changelog
|
|
 |
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
|