Use PEP 503 names for BuildRequires

Since Fedora 33, we generate both python3dist(foo.bar) and python3dist(foo-bar)
provides, but we'd like to follow PEP 503 and use only the names with dash.

By using the dashes, this is not compatible with the provides generated in EPEL 8,
compatibility can be achieved with the %py3_dist macro.
epel9
Miro Hrončok 3 years ago
parent 0f8edf3a8e
commit 96be29963d

@ -11,8 +11,8 @@ Source0: %{pypi_source}
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3dist(jaraco.classes) BuildRequires: python3dist(jaraco-classes)
BuildRequires: python3dist(jaraco.packaging) >= 3.2 BuildRequires: python3dist(jaraco-packaging) >= 3.2
BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools-scm) >= 1.15.0 BuildRequires: python3dist(setuptools-scm) >= 1.15.0
@ -20,13 +20,13 @@ BuildRequires: python3dist(sphinx)
%if %{with tests} %if %{with tests}
# test requirements # test requirements
BuildRequires: python3dist(jaraco.text) BuildRequires: python3dist(jaraco-text)
BuildRequires: python3dist(pytest) >= 3.5 BuildRequires: python3dist(pytest) >= 3.5
BuildRequires: python3dist(pytest-black-multipy) BuildRequires: python3dist(pytest-black-multipy)
BuildRequires: python3dist(pytest-checkdocs) >= 1.2.3 BuildRequires: python3dist(pytest-checkdocs) >= 1.2.3
BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(pytest-cov)
BuildRequires: python3dist(pytest-flake8) BuildRequires: python3dist(pytest-flake8)
BuildRequires: python3dist(rst.linker) >= 1.9 BuildRequires: python3dist(rst-linker) >= 1.9
BuildRequires: python3dist(six) >= 1.7.0 BuildRequires: python3dist(six) >= 1.7.0
%endif %endif

Loading…
Cancel
Save