Package Details: python-cssutils 1.0.2-6

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: http://cthedot.de/cssutils
Licenses: LGPL3
Submitter: eschwartz
Maintainer: Kr1ss
Last Packager: Kr1ss
Votes: 1
Popularity: 0.42
First Submitted: 2020-08-20 01:53
Last Updated: 2020-09-29 20:07

Pinned Comments

eschwartz commented on 2020-08-23 03:37

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

eschwartz commented on 2020-08-23 03:39

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

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

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().