Compare commits

...
Sign in to create a new pull request.

27 commits

Author SHA1 Message Date
Felix Schwarz
0970c37c9d update to 1.5.1 2025-11-23 16:50:10 +01:00
Felix Schwarz
52e9a15fdc replace %{py3_prefix} with just python3 2025-11-23 16:46:19 +01:00
Felix Schwarz
4929a28105 update to 1.5.0 2025-11-19 17:02:43 +01:00
Python Maint
1bfb4667ab Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:36:56 +02:00
Python Maint
ce652d6adc Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:01:19 +02:00
Fedora Release Engineering
3035d7f87e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 10:47:23 +00:00
Python Maint
9da753dbdc Rebuilt for Python 3.14 2025-06-03 11:56:03 +02:00
Fedora Release Engineering
a28f187573 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 20:07:40 +00:00
Felix Schwarz
7462bc554c update to 1.4.0 2024-10-26 21:44:39 +02:00
Miroslav Suchý
9e10c13f99 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 21:01:06 +02:00
Fedora Release Engineering
e548e79823 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 16:32:10 +00:00
Python Maint
a6c456e1c9 Rebuilt for Python 3.13 2024-06-07 15:09:59 +02:00
Felix Schwarz
0737913608 update to 1.3.0 2024-04-23 18:18:07 +02:00
Fedora Release Engineering
dee80597e7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 11:46:34 +00:00
Fedora Release Engineering
54709ba8c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 08:14:26 +00:00
Fedora Release Engineering
c8dbfe842a Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 14:49:21 +00:00
Python Maint
91fab90f0c Rebuilt for Python 3.12 2023-07-01 16:12:45 +02:00
Miro Hrončok
fc8bd550c9 Don't BuildRequire linters 2023-07-01 16:12:12 +02:00
Miro Hrončok
b79f051510 Drop redundant build dependency on flit, this package uses flit-core
And that dependency is already generated by %pyproject_buildrequires.
2023-05-15 14:42:35 +02:00
Fedora Release Engineering
7b2c4b24e0 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 17:56:48 +00:00
Felix Schwarz
e420aeeb81 update to 1.2.1 2022-10-18 09:09:01 +02:00
Fedora Release Engineering
0b131934d9 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 22:58:00 +00:00
Python Maint
e9433b87c6 Rebuilt for Python 3.11 2022-06-13 23:56:25 +02:00
Fedora Release Engineering
d75d9403f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 16:03:58 +00:00
Felix Schwarz
faa43997ae update to 1.1.1 2021-11-22 21:18:29 +01:00
Fedora Release Engineering
9a4f6fda84 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-27 08:22:13 +00:00
Python Maint
a8864e678c Rebuilt for Python 3.10 2021-06-04 21:05:50 +02:00
3 changed files with 104 additions and 73 deletions

View file

@ -1,35 +0,0 @@
diff --git a/pyproject.toml b/pyproject.toml
index 41535ed..30dbcd4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -32,7 +32,7 @@ classifiers = [
[tool.flit.metadata.requires-extra]
doc = ['sphinx', 'sphinx_rtd_theme']
-test = ['pytest', 'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]']
+test = ['pytest', 'pytest-cov', 'coverage[toml]']
[tool.flit.metadata.urls]
Documentation = 'https://tinycss2.readthedocs.io/'
@@ -44,7 +44,7 @@ Donation = 'https://opencollective.com/courtbouillon'
exclude = ['.*']
[tool.pytest.ini_options]
-addopts = '--isort --flake8 --cov'
+addopts = '--cov'
norecursedirs = ['tests/css-parsing-tests']
[tool.coverage.run]
diff --git a/setup.py b/setup.py
index 8e8a09c..8901670 100644
--- a/setup.py
+++ b/setup.py
@@ -16,8 +16,6 @@ extras_require = \
{'doc': ['sphinx', 'sphinx_rtd_theme'],
'test': ['pytest',
'pytest-cov',
- 'pytest-flake8',
- 'pytest-isort',
'coverage[toml]']}
setup(name='tinycss2',

View file

@ -1,36 +1,22 @@
%global srcname tinycss2
%global py3_prefix python%{python3_pkgversion}
Name: python-%{srcname}
Version: 1.1.0
Release: 2%{?dist}
Version: 1.5.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
License: BSD-3-Clause
URL: https://www.courtbouillon.org/tinycss2/
Source0: %{pypi_source tinycss2}
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
# The test extra contains linters, we cherry-pick only what we need:
BuildRequires: python3-pytest
%description
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
@ -38,12 +24,11 @@ tinycss with a simpler API, based on the more recent CSS Syntax Level 3
specification.
%package -n %{py3_prefix}-%{srcname}
%package -n python3-%{srcname}
Summary: Low-level CSS parser for Python 3
Requires: %{py3_prefix}-webencodings >= 0.4
%{?python_provide:%python_provide %{py3_prefix}-%{srcname}}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n %{py3_prefix}-%{srcname}
%description -n python3-%{srcname}
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
tinycss with a simpler API, based on the more recent CSS Syntax Level 3
specification.
@ -51,33 +36,115 @@ specification.
%prep
%autosetup -n %{srcname}-%{version}
tar xf "%{SOURCE2}"
cp -a css-parsing-tests-???????/* tests/css-parsing-tests/
%generate_buildrequires
%pyproject_buildrequires -r
%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
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
%files -n %{py3_prefix}-%{srcname}
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{srcname}-%{version}.dist-info/
%changelog
* Sun Nov 23 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 1.5.1-1
- update to 1.5.1
* Wed Nov 19 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 1.5.0-1
- update to 1.5.0
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.4.0-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.4.0-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 1.4.0-3
- Rebuilt for Python 3.14
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Oct 26 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-1
- update to 1.4.0
* Sat Oct 26 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3.0-5
- SPDX conversion
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.3.0-4
- convert license to SPDX
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.3.0-2
- Rebuilt for Python 3.13
* Tue Apr 23 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3.0-1
- update to 1.3.0
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jul 01 2023 Python Maint <python-maint@redhat.com> - 1.2.1-4
- Rebuilt for Python 3.12
* Mon May 15 2023 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-3
- Drop redundant build dependency on flit, this package uses flit-core
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Oct 18 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 1.2.1-1
- update to 1.2.1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.1-3
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* 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
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View file

@ -1,2 +1 @@
SHA512 (tinycss2-1.1.0.tar.gz) = 218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e
SHA512 (css-parsing-tests-c5749e5.tar.gz) = afb0248a2941bcd18904ad2021da902697385d716256019b88ded22836df0ad76e53a76cc4232546f7c3a2421785b94befb057cf99a22b423d1051e38d8cd3f6
SHA512 (tinycss2-1.5.1.tar.gz) = 1c2e1818c27c90f78b1e0af9b4c3c2a0944999691dcea678d0f5ed8a141d6ebd272b8b6763c1eac9d824db0d539e1e238f1e5e6abd2c02d97bb86002da637a10