update to 1.1.1
This commit is contained in:
parent
9a4f6fda84
commit
faa43997ae
3 changed files with 26 additions and 45 deletions
|
|
@ -6,31 +6,23 @@
|
|||
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.1.0
|
||||
Release: 4%{?dist}
|
||||
Version: 1.1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Low-level CSS parser for Python
|
||||
|
||||
License: BSD
|
||||
URL: https://pypi.python.org/pypi/%{srcname}/
|
||||
Source0: %pypi_source
|
||||
Source1: export-git-snapshot.sh
|
||||
# CSS parsing tests are governed by CC0 but not shipped in the final RPMs
|
||||
# There are no releases for CSS parsing tests so the archive below was created
|
||||
# with "export-git-snapshot.sh".
|
||||
Source2: css-parsing-tests-c5749e5.tar.gz
|
||||
# Fedora does not ship pytest's flake8/isort modules
|
||||
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: gzip
|
||||
BuildRequires: tar
|
||||
# required to run the tests
|
||||
BuildRequires: %{py3_prefix}-devel
|
||||
BuildRequires: %{py3_prefix}-pytest
|
||||
BuildRequires: %{py3_prefix}-pytest-cov
|
||||
BuildRequires: %{py3_prefix}-pytest-runner
|
||||
BuildRequires: %{py3_prefix}-setuptools
|
||||
BuildRequires: %{py3_prefix}-webencodings >= 0.4
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
# used as "build-backend" in pyproject.toml but not detected by Fedora's
|
||||
# macros to generate build requirements
|
||||
BuildRequires: python3-flit
|
||||
|
||||
|
||||
%description
|
||||
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
|
||||
|
|
@ -51,19 +43,21 @@ specification.
|
|||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
tar xf "%{SOURCE2}"
|
||||
cp -a css-parsing-tests-???????/* tests/css-parsing-tests/
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r -x test
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
|
||||
|
||||
%check
|
||||
%{__python3} -m pytest -v
|
||||
%{pytest}
|
||||
# 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
|
||||
|
|
@ -74,10 +68,13 @@ rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
|
|||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
||||
%{python3_sitelib}/%{srcname}-%{version}.dist-info/
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 22 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 1.1.1-1
|
||||
- update to 1.1.1
|
||||
|
||||
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue