| |
@@ -32,13 +32,20 @@
|
| |
BuildRequires: python3dist(pytest-cov)
|
| |
BuildRequires: python3dist(pytest-mock)
|
| |
BuildRequires: python3dist(jaraco.functools)
|
| |
+
|
| |
+ %if 0%{?el8}
|
| |
+ BuildRequires: python3dist(setuptools-scm)
|
| |
+ BuildRequires: python3dist(more-itertools) >= 2.6
|
| |
+ %else
|
| |
+ BuildRequires: python3dist(setuptools-scm-git-archive) >= 1.0
|
| |
+ %endif
|
| |
+
|
| |
# testmon is not needed to tests to run successfully
|
| |
# the f31 version of testmon requires pytest < 4
|
| |
# which is not in f31
|
| |
# BuildRequires: python3dist(pytest-testmon)
|
| |
BuildRequires: python3dist(requests)
|
| |
BuildRequires: python3dist(requests-unixsocket)
|
| |
- BuildRequires: python3-setuptools_scm_git_archive >= 1.0
|
| |
BuildRequires: python3dist(setuptools)
|
| |
BuildRequires: python3dist(trustme)
|
| |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
| |
@@ -75,7 +82,10 @@
|
| |
sed -i 's/ --testmon//' pytest.ini
|
| |
sed -i 's/ -n auto//' pytest.ini
|
| |
sed -i '/pytest-testmon/d' setup.cfg
|
| |
-
|
| |
+ %if 0%{?el8}
|
| |
+ # drop setuptools_scm_git_archive
|
| |
+ sed -i '/setuptools_scm_git_archive/d' setup.cfg
|
| |
+ %endif
|
| |
|
| |
%build
|
| |
%py3_build
|
| |
This pull request merges all the changes in
master
into theepel8
branch.This will allow us to build the latest upstream Cheroot version (8.5.1) for EPEL 8 and keep
epel8
sync'd withmaster
going forward.