Moved to lesscpy.__version__ and use it in setup.py. Also, don't put the
whole license text into the 'license' tag but rather the short form
'MIT'. The license file is part of the source distribution already and
was added to package_data (so that it ends up somewhere when 'setup.py
install' is invoked).
Move shared parts into test.core and use it in LESS, issues and
bootstrap3 auto-generated tests. This simplifies the test code and
allows to use nosetests (or any other test runner).
Use trove classifiers instead of keywords. Use 'python' (not
'python3') in the she-bang line to let distributions decide. Use
pkg_resources to load install_requires from requirements.txt. This way
there's only one place to specify dependencies. Since this and
install_requires depend on setuptools, use find_packages rather than
explictly listing Python modules. Fix URL typo.
In essence, tests are not an importable submodule anymore but an
independent piece of code that won't be installed in a user's
site-packages directory.
We still have subtle differences that are semantically equivalent:
- #fff vs. #ffffff
- 0.0 vs .0
- 0 vs 0%
- property sort order (and identation for -moz-$BLA)
There are still some other issues to fix, disable the bootstrap3 test
therefore to let the testsuite pass.
Let'S do it by example:
.ident_a, .ident_b {
& + & + & { color: red; }
}
We have to generate all permutations of the parent identifier list and
the amount of ampersand child identifiers. In the above case, the
exploded identifier list has ident_count**ampersand_count entries (8).
As a bonus, we get the same identifier sort order as lessc does.
Conflicts:
lesscpy/plib/identifier.py
Including double-nested queries which are used (not only) by bootstrap3.
Triple-nested (or more) media queries are currently not supported. Added
several tests.
See http://www.lesscss.org/#-nested-media-queries
The lexer now identifies media queries in @media ... {} and
@import ... ; statements. For that, two new states "mediaquery" and
import" where added. The parser uses those to implement the CSS3 media
query BNF (www.w3.org/TR/css3-mediaqueries). Overall test coverage
increased.
The previous test case was generated by lessc (upstream). Meanwhile,
lesscpy also parses it but generates slightly different (though
functionally equivalent) output. Therefore adjust the desired output so
that this test finally passes.
The alpha value can either be a number in the range 0-1 or a percentage
(0-100%). Alpha values greater than 1 are simply dropped. Compare with
the rgba() function definition at http://lesscss.org/#reference.