15
0

- Update to version 1.0.7:

- Fix incorrect license information in one file from a
    copy/paste
  - Use the badge from GA
  - test: relax assertRaisesMsg to match longer strings
  - Add a two level import from above test
  - Add python 3.10 to the CI matrix
  - version 1.0.7
- Add relax_error_msg_check.patch replacing non-standard assert
  methods with the standard ones (gh#ebook-utils/css-parser#12).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-parser?expand=0&rev=8
This commit is contained in:
2022-01-26 01:55:25 +00:00
committed by Git OBS Bridge
parent 1f017a8395
commit 9ab301dea6
5 changed files with 1314 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64916bc4030a339daf22f98c54e20d1e1bb4a8b7a15ccd2fd20771c49c3f7f4e
size 349671

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:592cda169dd6cf3bd681d3a7bf694d90645ed864e3432e170342f9adde99dade
size 349985

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Tue Jan 25 22:45:54 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to version 1.0.7:
- Fix incorrect license information in one file from a
copy/paste
- Use the badge from GA
- test: relax assertRaisesMsg to match longer strings
- Add a two level import from above test
- Add python 3.10 to the CI matrix
- version 1.0.7
- Add relax_error_msg_check.patch replacing non-standard assert
methods with the standard ones (gh#ebook-utils/css-parser#12).
-------------------------------------------------------------------
Sat Nov 14 19:59:27 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-css-parser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-css-parser
Version: 1.0.6
Version: 1.0.7
Release: 0
Summary: CSS related utilities (parsing, serialization, etc) for python
License: LGPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/ebook-utils/css-parser
Source: https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM relax_error_msg_check.patch gh#ebook-utils/css-parser#12 mcepl@suse.com
# instead of home-made assert methods with the ones from the standard library
Patch0: relax_error_msg_check.patch
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module setuptools}
Requires: python-chardet
@@ -36,17 +39,18 @@ BuildArch: noarch
%description
CSS related utilities (parsing, serialization, etc) for python
A fork of the cssutils project based on version 1.0.2. This fork
includes general bug fixes and extensions specific to editing and
A fork of the cssutils project based on version 1.0.2. This fork
includes general bug fixes and extensions specific to editing and
working with ebooks.
The main python source code has been modified so that it will run
without further conversion on both Python >= 2.7 and Python 3.X without
any further modules required. All required modifications are handled
The main python source code has been modified so that it will run
without further conversion on both Python >= 2.7 and Python 3.X without
any further modules required. All required modifications are handled
local to each file
%prep
%setup -q -n css-parser-%{version}
%autosetup -p1 -n css-parser-%{version}
sed -i "1d" src/css_parser/{parse,codec,sac,serialize,scripts/csscapture,_codec2,errorhandler,scripts/cssparse,_codec3,scripts/csscombine,tokenize2,version,encutils/__init__,__init__}.py # Fix non-executable scripts
%build

1285
relax_error_msg_check.patch Normal file

File diff suppressed because it is too large Load Diff