- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-parser?expand=0&rev=15
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
python-css-parser-1.0.10.tar.gz
Normal file
3
python-css-parser-1.0.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0b1fe5771cf4dcecf1c63502331a3b628fc99507f0d1b5b893a8a6b292d7f3e0
|
||||||
|
size 349906
|
69
python-css-parser.changes
Normal file
69
python-css-parser.changes
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 26 10:42:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 10 12:20:45 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.10:
|
||||||
|
* Fix selector specificity calculation for pseudo-classes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 7 18:46:29 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.9:
|
||||||
|
* replace deprecated use of cgi.parse_header
|
||||||
|
* drop python 3.6 support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 3 15:50:22 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.8:
|
||||||
|
* Replace removed assertEquals with assertEqual
|
||||||
|
* Upgrade other unittest asserts for clearer error messages
|
||||||
|
* tests: adjust exception string checks for python 3.11
|
||||||
|
* tests: fix warning about \( and \o being invalid sequences
|
||||||
|
* Fix serialization of unknown rules containing comments
|
||||||
|
- drop relax_error_msg_check.patch (upstream)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update to version 1.0.6
|
||||||
|
* no changelog provided
|
||||||
|
- Remove deprecated setup.py tests, use %pyunittest instead. The
|
||||||
|
custom run_tests.py is just a stdlib unittest wrapper.
|
||||||
|
- Drop disable-online-tests.patch -- The tests handle the offline
|
||||||
|
case fine now.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 4 14:06:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix fdupes call
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 7 10:31:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Enable tests
|
||||||
|
- Add patch to disable online tests:
|
||||||
|
* disable-online-tests.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 5 11:55:32 UTC 2019 - ecsos@opensuse.org
|
||||||
|
|
||||||
|
- Initial version 1.0.4
|
72
python-css-parser.spec
Normal file
72
python-css-parser.spec
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-css-parser
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-css-parser
|
||||||
|
Version: 1.0.10
|
||||||
|
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
|
||||||
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module chardet}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-chardet
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%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
|
||||||
|
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
|
||||||
|
local to each file
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%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
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pyunittest -v
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license COPYING COPYING.LESSER
|
||||||
|
%doc README.md
|
||||||
|
%{python_sitelib}/css_parser
|
||||||
|
%{python_sitelib}/css_parser-%{version}*-info/
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user