This repository has been archived by the owner on Jun 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
83 lines (59 loc) · 2.62 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
"""
lesscss
"""
__doc__ = """
About
=====
LessCSS is a tool which automatically compiles LESS files to CSS when LESS
files are modified. It works with Brubeck, web.py and bottle web frameworks. It
should work with other frameworks without any problems though it's not tested.
**Note:** You need to install LESS before using this.
Installation
============
::
$ pip install lesscss
Usage
=====
An example usage
::
from lesscss import LessCSS
LessCSS(media_dir='media', exclude_dirs=['img', 'src'], based=True, compression='x')
Parameters
==========
- **media_dir:** Directory where you put static/media files such as css/js/img.
- **exclude_dirs:** Directories you don't want to be searched. It'd be pointless to search for less files in an images directory. This parameter is expected to be a list.
- **based:** If it's set True then LessCSS will generate the style-(base60).css version as well (for example; style-dHCFD.css). This is useful if you set expire times of static files to a distant future since browsers will not retrieve those files unless the name is different or the cache has expired. This parameter is expected to be a boolean value.
- **compressed**: If it's set `True` then LessCSS will minimize the generated CSS files. This parameter is expected to be a boolean value.
- **compression**: Specifies the type of compression to use. Default to the normal compression, 'x'. Other option is to use the YUI Compressor. See "Command-line Usage" at http://lesscss.org/.
- **output_dir:** Directory where you put compiled CSS files if different than location of .less file.
Links
=====
* `Developer Release <http://github.com/faruken/lesscss>`_
"""
from setuptools import (setup, find_packages)
setup(
name='lesscss',
version='0.1.5',
url='http://github.com/faruken/lesscss',
license='BSD',
author='Faruk Akgul',
author_email='me@akgul.org',
description='A tool which automatically compiles LESS files to CSS.',
long_description=__doc__,
zip_safe=False,
packages=find_packages(exclude=['examples']),
platforms='any',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)