17
0

- 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
This commit is contained in:
2024-04-20 13:28:26 +00:00
committed by Git OBS Bridge
parent 8156c6c67d
commit 55aee10b3e
4 changed files with 20 additions and 19 deletions

3
cssutils-2.10.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93cf92a350b1c123b17feff042e212f94d960975a3ed145743d84ebe8ccec7ab
size 723055

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89477b3d17d790e97b9fb4def708767061055795aae6f7c82ae32e967c9be4cd
size 723452

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Apr 20 13:26:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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/