| |
@@ -1,5 +1,9 @@
|
| |
%global pypi_name httpcore
|
| |
|
| |
+ %if %{defined fedora}
|
| |
+ %bcond_without tests
|
| |
+ %endif
|
| |
+
|
| |
Name: python-%{pypi_name}
|
| |
Version: 0.14.7
|
| |
Release: %autorelease
|
| |
@@ -26,13 +30,9 @@
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
|
| |
- BuildRequires: python3dist(pytest)
|
| |
- BuildRequires: python3dist(pytest-asyncio)
|
| |
- BuildRequires: python3dist(pytest-httpbin)
|
| |
- BuildRequires: python3dist(pytest-trio)
|
| |
- BuildRequires: python3dist(h2)
|
| |
- BuildRequires: python3dist(socksio)
|
| |
- BuildRequires: python3dist(trustme)
|
| |
+ %if %{with tests}
|
| |
+ BuildRequires: %{py3_dist pytest pytest-asyncio pytest-httpbin pytest-trio}
|
| |
+ %endif
|
| |
|
| |
%description -n python3-%{pypi_name}
|
| |
The HTTP Core package provides a minimal low-level HTTP client, which does
|
| |
@@ -45,7 +45,7 @@
|
| |
rm -rf %{pypi_name}.egg-info
|
| |
|
| |
%generate_buildrequires
|
| |
- %pyproject_buildrequires -r
|
| |
+ %pyproject_buildrequires -x http2,socks
|
| |
|
| |
%build
|
| |
%pyproject_wheel
|
| |
@@ -55,7 +55,9 @@
|
| |
%pyproject_save_files %{pypi_name}
|
| |
|
| |
%check
|
| |
+ %if %{with tests}
|
| |
%pytest
|
| |
+ %endif
|
| |
|
| |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
| |
%license LICENSE.md
|
| |
This will make it easier to bring this package to EPEL9 (rhbz#2045997).