| |
@@ -11,16 +11,20 @@
|
| |
AnyIO is a asynchronous compatibility API that allows applications and
|
| |
libraries written against it to run unmodified on asyncio, curio and trio.}
|
| |
|
| |
- %bcond_without tests
|
| |
-
|
| |
-
|
| |
Name: python-%{pkgname}
|
| |
- Version: 1.3.1
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 2.0.2
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Compatibility layer for multiple asynchronous event loop implementations
|
| |
License: MIT
|
| |
- URL: https://github.com/agronholm/anyio
|
| |
+ URL: https://github.com/agronholm/%{srcname}
|
| |
Source0: %pypi_source
|
| |
+ # cherry picked from master
|
| |
+ Patch0: 0001-Moved-pytest-and-coverage-configurations-to-pyprojec.patch
|
| |
+ # cherry picked from master
|
| |
+ Patch1: 0002-Fixed-pytest-configuration-in-pyproject.toml.patch
|
| |
+ # https://github.com/agronholm/anyio/pull/188
|
| |
+ Patch2: 0003-Add-network-mark-to-getaddrinfo-test.patch
|
| |
+
|
| |
BuildArch: noarch
|
| |
|
| |
|
| |
@@ -29,56 +33,56 @@
|
| |
|
| |
%package -n python3-%{pkgname}
|
| |
Summary: %{summary}
|
| |
- BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
- BuildRequires: python3-setuptools_scm
|
| |
- %if %{with tests}
|
| |
- BuildRequires: python3-coverage >= 4.5
|
| |
- BuildRequires: python3-hypothesis >= 4.0
|
| |
- BuildRequires: python3-pytest >= 3.7.2
|
| |
- BuildRequires: python3-uvloop
|
| |
- BuildRequires: python3-trio >= 0.12
|
| |
- BuildRequires: python3-curio >= 0.9
|
| |
- BuildRequires: python3-async-generator
|
| |
- BuildRequires: python3-sniffio >= 1.1
|
| |
- %endif
|
| |
- Requires: python3-async-generator
|
| |
- Requires: python3-sniffio >= 1.1
|
| |
- %{?python_provide:%python_provide python3-%{pkgname}}
|
| |
+ BuildRequires: pyproject-rpm-macros
|
| |
+ BuildRequires: python3dist(sphinx)
|
| |
+ BuildRequires: python3dist(curio)
|
| |
+ BuildRequires: python3dist(trio)
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires -x test,doc
|
| |
|
| |
%description -n python3-%{pkgname} %{common_description}
|
| |
|
| |
|
| |
+ %package -n python-%{srcname}-doc
|
| |
+ Summary: anyio documentation
|
| |
+ %description -n python-%{srcname}-doc
|
| |
+ Documentation for anyio
|
| |
+
|
| |
+
|
| |
%prep
|
| |
- %autosetup -n %{srcname}-%{version}
|
| |
+ %autosetup -n %{srcname}-%{version} -p1
|
| |
rm -rf %{eggname}.egg-info
|
| |
|
| |
-
|
| |
%build
|
| |
- %py3_build
|
| |
-
|
| |
+ %pyproject_wheel
|
| |
+ # generate html docs
|
| |
+ PYTHONPATH=${PWD} sphinx-build-3 docs html
|
| |
+ # remove the sphinx-build leftovers
|
| |
+ rm -rf html/.{doctrees,buildinfo}
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files anyio
|
| |
|
| |
|
| |
- %if %{with tests}
|
| |
%check
|
| |
- export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
| |
- export PYTHONDONTWRITEBYTECODE=1
|
| |
- py.test-%{python3_version} --verbose tests
|
| |
- %endif
|
| |
+ %pytest -m "not network"
|
| |
|
| |
|
| |
- %files -n python3-%{pkgname}
|
| |
+ %files -n python3-%{pkgname} -f %{pyproject_files}
|
| |
%license LICENSE
|
| |
%doc README.rst
|
| |
- %{python3_sitelib}/%{libname}
|
| |
- %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
| |
+
|
| |
+ %files -n python-%{srcname}-doc
|
| |
+ %doc html
|
| |
+ %license LICENSE
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Jan 28 2021 Dan Čermák <dan.cermak@cgc-instruments.com> - 2.0.2-1
|
| |
+ - New upstream release 2.0.2
|
| |
+
|
| |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
|
| |