remove even more Python 2 leftovers
This commit is contained in:
parent
804f873c58
commit
9810cd9fe1
1 changed files with 5 additions and 9 deletions
|
|
@ -2,13 +2,12 @@
|
|||
%global srcname tinycss2
|
||||
|
||||
|
||||
%global py2_prefix python2
|
||||
%global py3_prefix python%{python3_pkgversion}
|
||||
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.6.1
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Low-level CSS parser for Python
|
||||
|
||||
License: BSD
|
||||
|
|
@ -18,11 +17,7 @@ Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{sr
|
|||
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: %{py2_prefix}-devel
|
||||
BuildRequires: %{py2_prefix}-pytest
|
||||
BuildRequires: %{py2_prefix}-pytest-cov
|
||||
# required to run the tests
|
||||
BuildRequires: %{py2_prefix}-webencodings >= 0.4
|
||||
BuildRequires: %{py3_prefix}-devel
|
||||
BuildRequires: %{py3_prefix}-pytest
|
||||
BuildRequires: %{py3_prefix}-pytest-cov
|
||||
|
|
@ -60,10 +55,8 @@ specification.
|
|||
|
||||
|
||||
%check
|
||||
# remove files which are only required for unit tests (including test.pyc/.pyo)
|
||||
rm -rf %{buildroot}%{python2_sitelib}/%{srcname}/css-parsing-tests
|
||||
rm -rf %{buildroot}%{python2_sitelib}/%{srcname}/test.py*
|
||||
%{__python3} -m pytest -v
|
||||
# remove files which are only required for unit tests (including test.pyc/.pyo)
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/css-parsing-tests
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test.py
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
|
||||
|
|
@ -77,6 +70,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 12 2018 Felix Schwarz <fschwarz@fedoraproject.org> - 0.6.1-7
|
||||
- remove even more Python 2 leftovers
|
||||
|
||||
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.1-6
|
||||
- Python2 binary package has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue