Package Details: python-cssutils 2.10.2-1

Git Clone URL: https://aur.archlinux.org/python-cssutils.git (read-only, click to copy)
Package Base: python-cssutils
Description: CSS Cascading Style Sheets library for Python
Upstream URL: https://github.com/jaraco/cssutils
Licenses: GPL3, LGPL3
Submitter: eschwartz
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 5
Popularity: 0.000072
First Submitted: 2020-08-20 01:53 (UTC)
Last Updated: 2024-04-01 19:16 (UTC)

Pinned Comments

eschwartz commented on 2020-08-23 03:37 (UTC)

This was dropped from the official repos because it is dead upstream and all officially packaged software has switched to the maintained fork "python-css-parser". Please encourage remaining software that still uses python-cssutils, to make the same switch.

Latest Comments

clsty commented on 2024-02-03 02:27 (UTC) (edited on 2024-02-03 02:30 (UTC) by clsty)

I've met two users link1 link2 claiming that installation of this package failed, even by using makepkg.

And they both claimed that after manually installing python-setuptools-scm and python-wheel, the problem fixed.

It's kinda weird since python-setuptools-scm and python-wheel are already listed here as make dependencies.

Thaodan commented on 2022-11-09 12:36 (UTC)

This was dropped from the official repos because it is dead upstream and all officially packaged software has switched to the maintained fork "python-css-parser". Please encourage remaining software that still uses python-cssutils, to make the same switch.

@eschwartz: How true is that now that the original upstream is active again?

lmartinez-mirror commented on 2022-04-20 16:30 (UTC) (edited on 2022-04-20 18:30 (UTC) by lmartinez-mirror)

This package requires python-setuptools-scm and python-wheel as makedepends to build and package properly.

eschwartz commented on 2020-08-23 03:39 (UTC)

Since cssutils is end of life, I did not make any effort to fix testsuite errors when dropping it. The one you refer to was fixed in css-parser via https://github.com/ebook-utils/css-parser/commit/1829247f4a58c60d008570b816ea83cbf0d5cbd5

P.S. The tests do not fail if you build in a clean chroot, this is because they only fail if python-chardet is installed.

P.P.S. You did not post the error message, which was

======================================================================
FAIL: test_tryEncodings (cssutils.tests.test_encutils.AutoEncodingTestCase)
encutils.tryEncodings
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/python-cssutils/src/cssutils-1.0.2/src/cssutils/tests/test_encutils/__init__.py", line 206, in test_tryEncodings
    self.assertEqual(exp, encutils.tryEncodings(test))
AssertionError: 'windows-1252' != 'Windows-1252'
- windows-1252
? ^
+ Windows-1252
? ^


----------------------------------------------------------------------

The "FAILED" and "a failure occurred in check()" part is not actually an error message, it simply states that an error previously occurred. Please post full errors in future. Fortunately I knew why this happened, because the css-parser fork needed to clean up a number of problems in the code.

eschwartz commented on 2020-08-23 03:37 (UTC)

This was dropped from the official repos because it is dead upstream and all officially packaged software has switched to the maintained fork "python-css-parser". Please encourage remaining software that still uses python-cssutils, to make the same switch.

zeer0 commented on 2020-08-22 09:22 (UTC) (edited on 2020-08-22 09:26 (UTC) by zeer0)

Not installing:

FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=393 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=393 errors=0 failures=1>
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='src/cssutils/__init__.py' mode='r' encoding='UTF-8'>

==> ERROR: A failure occurred in check().