1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-rcssmin
5 KEYWORDS= python devel textproc
6 VARIANTS= py27 py36 py37
7 SDESC[py36]= CSS Minifier (PY 36)
8 SDESC[py37]= CSS Minifier (PY 37)
9 SDESC[py27]= CSS Minifier (PY 27)
10 HOMEPAGE= http://opensource.perlig.de/rcssmin/
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/r/rcssmin
15 DISTFILE[1]= rcssmin-1.0.6.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY36 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py36]= PY27=OFF PY36=ON PY37=OFF
24 VOPTS[py37]= PY27=OFF PY36=OFF PY37=ON
25 VOPTS[py27]= PY27=ON PY36=OFF PY37=OFF
27 DISTNAME= rcssmin-1.0.6
31 [PY36].USES_ON= python:py36
33 [PY37].USES_ON= python:py37
35 [PY27].USES_ON= python:py27
37 [FILE:2908:descriptions/desc.single]
42 RCSSmin is a CSS minifier.
44 The minifier is based on the semantics of the `YUI compressor`_\, which
46 is based on `the rule list by Isaac Schlueter`_\.
48 This module is a re-implementation aiming for speed instead of maximum
49 compression, so it can be used at runtime (rather than during a
51 step). RCSSmin does syntactical compression only (removing spaces, comments
52 and possibly semicolons). It does not provide semantic compression (like
53 removing empty blocks, collapsing redundant properties etc). It does,
55 support various CSS hacks (by keeping them working as intended).
57 Here's a feature list:
59 - Strings are kept, except that escaped newlines are stripped
60 - Space/Comments before the very end or before various characters are
61 stripped: ``:{});=>],!`` (The colon (``:``) is a special case, a single
62 space is kept if it's outside a ruleset.)
63 - Space/Comments at the very beginning or after various characters are
64 stripped: ``{}(=:>[,!``
65 - Optional space after unicode escapes is kept, resp. replaced by a simple
67 - whitespaces inside ``url()`` definitions are stripped
68 - Comments starting with an exclamation mark (``!``) can be kept
70 - All other comments and/or whitespace characters are replaced by a single
72 - Multiple consecutive semicolons are reduced to one
73 - The last semicolon within a ruleset is stripped
74 - CSS Hacks supported:
76 - IE7 hack (``>/**/``)
77 - Mac-IE5 hack (``/*\*/.../**/``)
78 - The boxmodelhack is supported naturally because it relies on valid CSS2
80 - Between ``:first-line`` and the following comma or curly brace a space
82 inserted. (apparently it's needed for IE6)
83 - Same for ``:first-letter``
85 rcssmin.c is a reimplementation of rcssmin.py in C and improves runtime up
87 factor 100 or so (depending on the input). docs/BENCHMARKS in the source
88 distribution contains the details.
90 Both python 2 (>= 2.4) and python 3 are supported.
92 .. _YUI compressor: https://github.com/yui/yuicompressor/
94 .. _the rule list by Isaac Schlueter: https://github.com/isaacs/cssmin/
100 Copyright 2011 - 2015
101 André Malo or his licensors, as applicable.
103 The whole package (except for the files in the bench/ directory) is
104 distributed under the Apache License Version 2.0. You'll find a copy in the
105 root directory of the distribution or online at:
106 <http://www.apache.org/licenses/LICENSE-2.0>.
112 No bugs, of course. ;-)
113 But if you've found one or have an idea how to improve rcssmin, feel free
114 to send a pull request on `github <https://github.com/ndparker/rcssmin>`_
115 or send a mail to <rcssmin-bugs@perlig.de>.
121 André "nd" Malo <nd perlig.de>
125 If God intended people to be naked, they would be born that way.
128 .. vim:tw=72 syntax=rest
132 ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270 582894 rcssmin-1.0.6.tar.gz