head 1.10; access; symbols pkgsrc-2023Q4:1.9.0.16 pkgsrc-2023Q4-base:1.9 pkgsrc-2023Q3:1.9.0.14 pkgsrc-2023Q3-base:1.9 pkgsrc-2023Q2:1.9.0.12 pkgsrc-2023Q2-base:1.9 pkgsrc-2023Q1:1.9.0.10 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.8 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.9.0.6 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.9.0.4 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.9.0.2 pkgsrc-2022Q1-base:1.9 pkgsrc-2021Q4:1.8.0.2 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.6.0.36 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.34 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.32 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.30 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.28 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.24 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.4 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.26 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.22 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.20 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.18 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.16 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.14 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.12 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.10 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.8 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.6 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.2 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.5.0.12 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.10 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.8 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.6 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.4 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.2 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.4.0.12 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.10 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.8 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.6 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.4 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.2 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.3.0.6 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.4 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.2 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.8 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.4 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.1.1.0.8 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.6 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.4 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.2 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.10 date 2024.02.12.14.31.15; author adam; state Exp; branches; next 1.9; commitid XjGt1HdH1m8Xu9YE; 1.9 date 2022.01.05.21.26.01; author wiz; state Exp; branches; next 1.8; commitid Up4gB52BVsdUtunD; 1.8 date 2021.10.26.11.23.01; author nia; state Exp; branches; next 1.7; commitid TS3y6sgAeGKWpjeD; 1.7 date 2021.10.07.15.02.08; author nia; state Exp; branches; next 1.6; commitid 0fS32tEWoNe7fTbD; 1.6 date 2017.04.14.13.06.49; author leot; state Exp; branches; next 1.5; commitid 5f3IMrWL3XHmevNz; 1.5 date 2015.11.04.02.00.02; author agc; state Exp; branches; next 1.4; commitid 8Vi0UoG7obKytIHy; 1.4 date 2014.04.11.18.10.11; author wiz; state Exp; branches; next 1.3; commitid iYN9bMq00qFNeiwx; 1.3 date 2013.07.28.17.26.08; author kleink; state Exp; branches; next 1.2; commitid l5FiqKUEvM89fgZw; 1.2 date 2012.05.05.15.20.07; author gls; state Exp; branches; next 1.1; 1.1 date 2011.05.01.09.20.46; author obache; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.05.01.09.20.46; author obache; state Exp; branches; next ; desc @@ 1.10 log @py-cssutils: updated to 2.9.0 v2.9.0 Features - Made URL fetcher lenient to missing metadata. v2.8.0 Features - Require Python 3.8 or later. Bugfixes - Made some unreachable tests reachable. v2.7.1 Refactored to restore docs builds without warning-errors. v2.7.0 Updated deprecated usage of ``cgi`` module. Updated deprecated setup/teardown from ``nose`` in tests. Other miscellaneous cleanup and packaging updates. v2.6.0 Added support for custom CSS variables with ``--`` prefix. v2.5.1 Some refactoring. v2.5.0 Substantial code refresh. Ported tests to native pytest. Enrolled project with Tidelift. @ text @$NetBSD: distinfo,v 1.9 2022/01/05 21:26:01 wiz Exp $ BLAKE2s (cssutils-2.9.0.tar.gz) = c5304b6b17ccfa469a01c648df255bdbe3746c936eed05a13f332536f5f35862 SHA512 (cssutils-2.9.0.tar.gz) = d13d53b3e4f133afb5b72faba1e41a95cf2b146efb075dd3b328fc424eccd371194e1e14fd9e607b207b5c7d473e64f1e4c63975173d8491fa8036a16dc94d38 Size (cssutils-2.9.0.tar.gz) = 723452 bytes @ 1.9 log @py-cssutils: update to 2.3.0. v2.3.0 ====== #7: Add support for a ``calc()`` within a ``calc()``. v2.2.0 ====== Minor cleanup. Restored package version reporting when fetching URLs. v2.1.0 ====== Adopted `jaraco/skeleton `_. Delinted codebase. Removed ``cssutils.VERSION`` and ``cssutils.__version__``. Consumers wishing to know the version should use ``importlib.metadata.version('cssutils')``. v2.0.0 ====== New `maintainer `_ revives the project and moves `hosting `_ with continuous integration testing. Refreshed packaging. Project now requires Python 3.6 or later. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2021/10/26 11:23:01 nia Exp $ d3 3 a5 3 BLAKE2s (cssutils-2.3.0.tar.gz) = 8ceeae5b5ef226a66c8624e38d2b9ec625320f2b43f4aa678a3b7b98547091c0 SHA512 (cssutils-2.3.0.tar.gz) = 9919224a61222e860a99ec80e6375a472b89c52af72272c1de7bcd5fd31cf8570a04da7762c62a17a85bef2c41b1c67447583087df4c86c1f8969ad4875a76d2 Size (cssutils-2.3.0.tar.gz) = 725849 bytes @ 1.8 log @textproc: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Unfetchable distfiles (fetched conditionally?): ./textproc/convertlit/distinfo clit18src.zip @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2021/10/07 15:02:08 nia Exp $ d3 3 a5 3 BLAKE2s (cssutils-1.0.2.tar.gz) = 30b85221cd4c88a5af3033dd2b2495f34769fffd3c4e8053419e74422b3c689d SHA512 (cssutils-1.0.2.tar.gz) = 4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda Size (cssutils-1.0.2.tar.gz) = 367038 bytes @ 1.7 log @textproc: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2017/04/14 13:06:49 leot Exp $ d3 1 a3 1 RMD160 (cssutils-1.0.2.tar.gz) = ca6af81a4bc73354056a78f0a5644371bd8fa199 @ 1.6 log @Update textproc/py-cssutils to 1.0.2 pkgsrc changes: - Use REPLACE_PYTHON instead of REPLACE_INTERPRETER (no functional changes intended) - Use ALTERNATIVE and instruct PLIST and Makefile post-install target accordingly to permit coexistence of multi-pkgs py-cssutils Changes: 1.0.2 170304 ------------ - FIXED issue #61: Nesting of `@@media` rules - FIXED issue #51 and #56: Slow font-family regex - FIXED issue #68: failing tests on Python 3 - FIXED issue #69: our DOM implementation now delegates unsupported methods - FIXED issue #72: importing now faster since regexes are no longer pre-cached on import time 1.0.1 151008 ------------ - Fixed Python 3.5 compatibility @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2015/11/04 02:00:02 agc Exp $ a2 1 SHA1 (cssutils-1.0.2.tar.gz) = cd940e8b16a603f319763cf9144baa34380d4599 @ 1.5 log @Add SHA512 digests for distfiles for textproc category Problems found locating distfiles: Package cabocha: missing distfile cabocha-0.68.tar.bz2 Package convertlit: missing distfile clit18src.zip Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2014/04/11 18:10:11 wiz Exp $ d3 4 a6 4 SHA1 (cssutils-1.0.zip) = 341e57dbb02b699745b13a9a3296634209d26169 RMD160 (cssutils-1.0.zip) = 16efd2eca89977a98fb0edb01e17ed5233b43f2e SHA512 (cssutils-1.0.zip) = fac2e46edece73fac66a741c7226b7a1ed9ef58d4a621e60a5b7ecd96dc74c5121969f007bd80a6dddea06a811dbc85b3691940cefc7a5b887fc458febb974e8 Size (cssutils-1.0.zip) = 434178 bytes @ 1.4 log @Update to 1.0. Changes not found. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2013/07/28 17:26:08 kleink Exp $ d5 1 @ 1.3 log @Update py-cssutils to 0.9.10. cssutils.googlecode.com is gone, keep pypi. 0.9.10 130331 * BUGFIX: False HASH color values like #xyz were not being handled properly (thanks to Teruaki Koizumi) * Fixed issue #23: Tests do work properly in newer Python (>2.7.1?) version now, old versions will report error. Before this was the other way round but this makes more sense probably * Fixed issue #24: rgba color values did not validate properly * (Jason R. Coombs) Fixed issue #25: Cssutils installs “tests” package * Fixed issue #27: Small magnitude float values serialized incorrectly * Fixed issue #28: Standalone semicolons in CSSStyleDeclaration is now simply stripped and does not remove directly following property too 0.9.10b1 120428 * REGRESSION: Valid profiles reported by validation may not be right but as these hardly say anything in the real world anyway the advancements in the following bugfixes are probably worth this. Profiles.validateWithProfile currently not working but should be hardly used anyway. As a workaround remove all profiles and add just the ones you want to use for your application * BUGFIX: Profiles have been updated. Multiple profiles can be added via addProfiles and this is preferred to adding separate profiles with addProfile. Profiles do check for updated macros now so that e.g. CSS3 Colors defined in a different profile are valid for all properties defined before. This may lead to a reset of all properties and so may be an extremely expensive operation. * BUGFIX: font-family names in profile CSS3_FONTS seem to have been defined wrongly. Family names containing spaces are valid now, even without quotes. * BUGFIX: for Python 2.5 compatibility (thanks @@Jason) * IMPROVEMENT: Added all X11 color names and corresponding RGBA values @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2012/05/05 15:20:07 gls Exp $ d3 3 a5 3 SHA1 (cssutils-0.9.10.zip) = 6a6ed017c5bd492edeaf5d64d39231d510aeb85d RMD160 (cssutils-0.9.10.zip) = df0341b1f692d7d3b9bcfe079b19f1833eb21a6b Size (cssutils-0.9.10.zip) = 430718 bytes @ 1.2 log @Update textproc/py-cssutils to 0.9.9. Pkgsrc changes: --------------- Deal with /usr/bin/env python Upstream changes: ----------------- 0.9.9 final 120131 - FEATURE: Implemented API for ``MarginRule`` objects inside ``CSSPageRule``, see http://www.w3.org/TR/css3-page/. You can also use e.g. ``CSSPageRule['@@top-left']`` to retrieve the MarginRule it it is set etc. All dict like methods should be there. If a margin is set twice or more all properties are merged into a single margin rule. Double set properties are all kept though (see below). - FEATURE: ``parseStyle()`` has optional parameter ``validate=False`` now too to disable validation (default is always ``True``). - FEATURE: ``CSSStyleDeclaration.setProperty`` has new option ``replace=True``. if True (DEFAULT) the given property will replace a present property. If False a new property will be added always. The difference to `normalize` is that two or more properties with the same name may be set, useful for e.g. stuff like:: background: red; background: rgba(255, 0, 0, 0.5); which defines the same property but only capable UAs use the last property value, older ones use the first value. + CHANGE: @@rules attribute ``atkeyword`` value is now normalized. The actual keyword (example ``@@IMPorT``) is kept and is optionally reserialized but in the example ``atkeyword == '@@import'`` - BUGFIX: 'auto' is now an invalid CSSPageRule pagename. - BUGFIX: Fixed issue for GoogleAppEngine (GAE) which somehow handles codecs differently. ``parseUrl`` should work now. 0.9.8 ----- 0.9.8 final 111210 - FEATURE: Feature Request (#4) to be able to disable validation of a stylesheet has been implemented. Add Parameter ``validate=False`` for parsing. + BUGFIX: Fixed #5 Unicode escaping inside strings. Thanks to Simon Sapin + BUGFIX: The integer is optional in counter-reset and counter-increment, and not only on the first counter. Thanks to Simon Sapin + BUGFIX: Fix for unicode replacements by Denis Bilenko, thanks! https://bitbucket.org/cthedot/cssutils/pull-request/1/fix-a-bug-in-regex-which-accidentally - IMPROVEMENT: ``parseStyle`` moved to CSSParser, thanks to Simon Sapin 0.9.8a3 110727 + BUGFIX: Fixed validation of ``size`` property (thanks to Simon Sapin) + BUGFIX: Fixed Issue #55 (thanks to Simon Sapin): `outline-color` property was missing from validation. + BUGFIX: Fixed resolution of encoding detection of a stylesheet which did not use @@charset in certain circumstances (mainly when imported sheets use different encoding than importing one which should be quite rare actually). - FEATURE: Added ``URIValue.absoluteUri`` (thanks to Simon Sapin) - FEATURE: Issue #53 feature request: Added new Preference option ``cssutils.ser.prefs.indentClosingBrace``. Defines if closing brace of block is indented to match indentation of the block (default) oder match indentation of selector. - FEATURE: Feature request: Added new Preference option ``cssutils.ser.prefs.omitLeadingZero``. Defines if values between -1 and 1 should omit the 0, like ``.5px``. Minified settings do this, else 0 is kept by default. + CHANGE (minor): Some error messages have slightly changed due to a simpler compatibility to Python 3. Problem are any ``u'...'`` texts inside error messages which now are simplified, some without and quotes. Changed are e.g. error messages by ``Property``. - **IMPROVEMENT**: Python 3 support. At least the unittests run in Python 2.5, 2.6, 2.7, 3.2 and Jython 2.5.1 now. Both encutils (with support by Fredrik Hedman, thanks!) and cssutils (thanks to Jaraco) and the CSS codec (thanks to Walter Drwald) seem to work with Python 3 (tested on Python 3.2.1 Win64). Tests use Mock instead of MiniMock now as former is available for Python 2.x and 3.x. - **IMPROVEMENT**: Parsing of longer (and probably invalid) ``font`` or ``font-family`` values was *extremely* slow due to a very complex regex. This has been changed and parsing of specific stylesheets using these values should be much faster now. (``macros[Profiles.CSS_LEVEL_2]['font-family']`` is gone so if you used this in your own validation modules you need to check the source in `profiles.py`.) - IMPROVEMENT: Fixed Issue #54 (thanks to Simon Sapin): Short hand like `#f80` color value object have correct red, green and blue property values now. Also ``hsl()`` and ``hsla()`` colors report (almost) correct values (due to rounding problems). - **Source control has moved to bitbucket https://bitbucket.org/cthedot/cssutils**. Older Issues are currently still at Google Code, newer at Bitbucket. Please do not use Google Code for new issue reports anymore! 0.9.8a2 110611 - BUGFIX: Fixed Issue #59 which showed a rather strange problem with longer space separated lists of font-family values being so slow to actually stop parsing. - BUGFIX/IMPROVEMENT: Fixed Issue #48. ``CSSParser.parseUrl()`` uses the defined fetcher of this parser *for the initial stylesheet* at url too and not just the imported sheets *from* this sheet. - BUGFIX: Fixed Issue #50 which prevented cssutils parsing the acid2.css file correctly. Problem were selectors starting directly with ``[class]`` (an attribute selector). + **API CHANGE (major)** (Known) named colors are parsed as ColorValue objects now. These are the 16 simple colors (black, white, etc) and `transparent` but not all Extended color keywords yet. Also changed ``ColorValue.type`` to ``Value.COLOR_VALUE``. ColorValue has additional properties ``red, green, blue, alpha`` and ``colorType`` which is one of IDENT, HASH or FUNCTION for now. + API CHANGE (minor) Removed already DEPRECATED ``cssutils.parse`` and ``CSSParser.parse``. Use the more specific functions/methods ``parseFile parseString parseUrl`` instead. Removed already DEPRECATED ``cssutils.log.setlog`` and ``.setloglevel``. Use ``.setLog`` and ``.setLevel`` instead. Removed already DEPRECATED ``cssutils.ser.keepUnkownAtRules`` (note the typo). Use ``.keepUnknownAtRules`` instead. - IMPROVEMENT: Added validation profiles for some properties from `CSS Backgrounds and Borders Module Level 3 `__, `CSS3 Basic User Interface Module `__, `CSS Text Level 3 `__ mainly `cursor`, `outline`, `resize`, `box-shadow`, `text-shadow` 0.9.8a1 101212 + **API CHANGE (major)** replace CSSValue with PropertyValue, Value and other classes. NEW CLASSES: :class:`cssutils.css.PropertyValue` replaces CSSValue and CSSValueList - is iterable (iterates over all single Value objects which in soruce CSS might be separated by "," "/" or " " - a comma separated list of IDENT values is no longer handled as a single String (e.g. ``Arial, sans-serif``) :class:`cssutils.css.Value` replaces CSSPrimitiveValue with separate ``value`` and ``type`` info (value is typed, so e.g. string for e.g. STRING, IDENT or URI values, int or float) and is base class for more specific values like: :class:`cssutils.css.URIValue` replaces CSSPrimitiveValue, additional attribute ``uri`` :class:`cssutils.css.DimensionValue` replaces CSSPrimitiveValue, additional attribute ``dimension`` :class:`cssutils.css.ColorValue` replaces CSSPrimitiveValue, additional attribute ``red``, ``green``, ``blue`` and ``alpha`` **TODO: Not yet complete, only rgb, rgba, hsl, hsla and has values use this object and color and alpha information no done yet!** :class:`cssutils.css.CSSFunction` replaces CSSPrimitiveValue function, not complete yet also renamed ``ExpressionValue`` to :class:`cssutils.css.MSValue` with new API - IMPROVEMENT/CHANGE: Validation of color values is tighter now. Values like ``hsl(1, 2, 3)`` do not validate as it must be ``hsl(1, 2%, 3%)``. This mostly effects HSL/A and RGB/A notation. - **IMPROVEMENT**: New Value parsing and API accelerate parsing of style declarations which take about 20-30% less time now. Of course this depends on the complexity of your styles. + BUGFIX: fixes issue #41, #42, #45, #46 PropertyValue.value returns value without any comments now, else use PropertyValue.cssText - FEATURE: ``cssutils.replaceUrls()`` accepts as first argument a `cssutils.css.CSSStyleSheet` but now also a :class:`cssutils.css.CSSStyleDeclaration` object, so may be used like the following which is useful when you work with HTML style attributes:: >>> style = cssutils.parseStyle("background-image: url(1.png), url('2.png')") >>> cssutils.replaceUrls(style, lambda url: 'prefix/'+url) >>> print style.cssText background-image: url(prefix/1.png), url(prefix/2.png) (I omitted the validation error message as more than one background-image is not yet defined in the cssutils validator but does parse through without problems) + CHANGE: explicit `+` of any dimension, percentage of number value is kept now instead of being stripped as if put explicitly in the author SHOULD have meant something ;) @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1.1.1 2011/05/01 09:20:46 obache Exp $ d3 3 a5 3 SHA1 (cssutils-0.9.9.zip) = ac8d4ff2e56d7e4d4a37c6c1944cbdd5fdffabaa RMD160 (cssutils-0.9.9.zip) = 0affdb2edc523e4f22d54d7a92ce81bccbeb76a6 Size (cssutils-0.9.9.zip) = 426449 bytes @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 SHA1 (cssutils-0.9.7.zip) = 95a25352ab067c7b13aa82c5f6a5408cf82a2678 RMD160 (cssutils-0.9.7.zip) = 6119363eb9b8e38188cb8943c59d6d345681b227 Size (cssutils-0.9.7.zip) = 447664 bytes @ 1.1.1.1 log @Import py26-cssutils-0.9.7 as textproc/py-cssutils. Based on PR#44867 by Olaf 'Rhialto' Seibert. A Python package to parse and build CSS Cascading Style Sheets. Querying a parsed stylesheet on a given document or element is planned for a future release, for now see the example examples/style.py. @ text @@