From 55aee10b3ee507dd1a336607747fe420194dd480bc663e2af122ecd44b7fd611 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 20 Apr 2024 13:28:26 +0000 Subject: [PATCH] - update to 2.10.2: * Remove optional dependency only required on unsupported Python versions. * Replace xunit-style setup with pytest fixtures. * getPropertyValue now allows specifying a default value. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=61 --- cssutils-2.10.2.tar.gz | 3 +++ cssutils-2.9.0.tar.gz | 3 --- python-cssutils.changes | 9 +++++++++ python-cssutils.spec | 24 ++++++++---------------- 4 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 cssutils-2.10.2.tar.gz delete mode 100644 cssutils-2.9.0.tar.gz diff --git a/cssutils-2.10.2.tar.gz b/cssutils-2.10.2.tar.gz new file mode 100644 index 0000000..0b13fe7 --- /dev/null +++ b/cssutils-2.10.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93cf92a350b1c123b17feff042e212f94d960975a3ed145743d84ebe8ccec7ab +size 723055 diff --git a/cssutils-2.9.0.tar.gz b/cssutils-2.9.0.tar.gz deleted file mode 100644 index 2ab5664..0000000 --- a/cssutils-2.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89477b3d17d790e97b9fb4def708767061055795aae6f7c82ae32e967c9be4cd -size 723452 diff --git a/python-cssutils.changes b/python-cssutils.changes index c7872fe..36a9ea3 100644 --- a/python-cssutils.changes +++ b/python-cssutils.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Apr 20 13:26:58 UTC 2024 - Dirk Müller + +- update to 2.10.2: + * Remove optional dependency only required on unsupported + Python versions. + * Replace xunit-style setup with pytest fixtures. + * getPropertyValue now allows specifying a default value. + ------------------------------------------------------------------- Sat Nov 25 14:09:13 UTC 2023 - Dirk Müller diff --git a/python-cssutils.spec b/python-cssutils.spec index cccb7d4..4003200 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-cssutils # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-cssutils -Version: 2.9.0 +Version: 2.10.2 Release: 0 Summary: A CSS Cascading Style Sheets library for Python License: LGPL-3.0-or-later @@ -27,12 +27,14 @@ URL: https://github.com/jaraco/cssutils Source0: https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz Source1: %{name}.rpmlintrc BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -42,21 +44,11 @@ A Python package to parse and build CSS Cascading Style Sheets. DOM only, not an %prep %setup -q -n cssutils-%{version} -# SECTION Generate a basic setup.py as upstream only supplies setup.cfg -cat << EOF > setup.py -import setuptools - -if __name__ == "__main__": - setuptools.setup() - -EOF -# /SECTION - %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/csscapture %python_clone -a %{buildroot}%{_bindir}/csscombine %python_clone -a %{buildroot}%{_bindir}/cssparse @@ -75,7 +67,7 @@ EOF %python_alternative %{_bindir}/csscapture %python_alternative %{_bindir}/csscombine %python_alternative %{_bindir}/cssparse -%{python_sitelib}/cssutils-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/cssutils-%{version}.dist-info %{python_sitelib}/cssutils/ %{python_sitelib}/encutils/