# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-rcssmin VERSION= 1.2.0 KEYWORDS= python VARIANTS= v12 v13 SDESC[v12]= CSS Minifier (3.12) SDESC[v13]= CSS Minifier (3.13) HOMEPAGE= http://opensource.perlig.de/rcssmin/ CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPI/r/rcssmin DISTFILE[1]= rcssmin-1.2.0.tar.gz:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v12]= single SPKGS[v13]= single OPTIONS_AVAILABLE= PY312 PY313 OPTIONS_STANDARD= none VOPTS[v12]= PY312=ON PY313=OFF VOPTS[v13]= PY312=OFF PY313=ON DISTNAME= rcssmin-1.2.0 GENERATED= yes [PY312].USES_ON= python:v12,sutools [PY313].USES_ON= python:v13,sutools post-stage: # python modules aren't set up for documentation (only single # subpackages accommodated) so don't package rcssmin documentation ${RM} -r ${STAGEDIR}${STD_DOCDIR:H} [FILE:2958:descriptions/desc.single] ============== CSS Minifier ============== RCSSmin is a CSS minifier. The minifier is based on the semantics of the `YUI compressor`_\, which itself is based on `the rule list by Isaac Schlueter`_\. This module is a re-implementation aiming for speed instead of maximum compression, so it can be used at runtime (rather than during a preprocessing step). RCSSmin does syntactical compression only (removing spaces, comments and possibly semicolons). It does not provide semantic compression (like removing empty blocks, collapsing redundant properties etc). It does, however, support various CSS hacks (by keeping them working as intended). Here's a feature list: - Strings are kept, except that escaped newlines are stripped - Space/Comments before the very end or before various characters are stripped: ``:{});=>],!`` (The colon (``:``) is a special case, a single space is kept if it's outside a ruleset.) - Space/Comments at the very beginning or after various characters are stripped: ``{}(=:>[,!`` - Optional space after unicode escapes is kept, resp. replaced by a simple space - whitespaces inside ``url()`` definitions are stripped, except if it's a quoted non-base64 data url - The nesting selector (``&``) is recognized - Comments starting with an exclamation mark (``!``) can be kept optionally. - All other comments and/or whitespace characters are replaced by a single space. - Multiple consecutive semicolons are reduced to one - The last semicolon within a ruleset is stripped - CSS Hacks supported: - IE7 hack (``>/**/``) - Mac-IE5 hack (``/*\*/.../**/``) - The boxmodelhack is supported naturally because it relies on valid CSS2 strings - Between ``:first-line`` and the following comma or curly brace a space is inserted. (apparently it's needed for IE6) - Same for ``:first-letter`` rcssmin.c is a reimplementation of rcssmin.py in C and improves runtime up to factor 100 or so (depending on the input). docs/BENCHMARKS in the source distribution contains the details. Supported python versions are 2.7 and 3.6+. .. _YUI compressor: https://github.com/yui/yuicompressor/ .. _the rule list by Isaac Schlueter: https://github.com/isaacs/cssmin/ Copyright and License ~~~~~~~~~~~~~~~~~~~~~ Copyright 2011 - 2024 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) is distributed under the Apache License Version 2.0. You'll find a copy in the root directory of the distribution or online at: . Bugs ~~~~ No bugs, of course. ;-) But if you've found one or have an idea how to improve rcssmin, feel free to send a pull request on [github] or send a mail to . Author Information ~~~~~~~~~~~~~~~~~~ André "nd" Malo GPG: 0x029C942244325167 If God intended people to be naked, they would be born that way. -- Oscar Wilde .. vim:tw=72 syntax=rest [FILE:110:distinfo] f436872412cfa6f04fff990c6322246b13aa389f60323b963583ed6102d7c84c 583287 python-src/rcssmin-1.2.0.tar.gz