Files
deb-python-lesscpy/setup.py
Sascha Peilicke b7dcdf774a Use codecs package and context manager for reading
open(..., encoding=...) is only available with py3k, but the codecs
package is around forever. This way we always end up with a unicode
object holding the contents of either README.rst or LICENSE. Use a
context manager (with keyword) for extra clean file descriptor closing.
2013-10-21 17:05:15 +02:00

36 lines
1.1 KiB
Python
Executable File

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""
from distutils.core import setup
import codecs
with codecs.open('LICENSE', encoding="utf-8") as f:
license = f.read()
with codecs.open('README.rst', encoding="utf-8") as f:
long_description = f.read()
setup(
name='lesscpy',
version='0.9j',
description='Lesscss compiler.',
author='Jóhann T Maríusson',
author_email='jtm@robot.is',
keywords = ["lesscss"],
url='https://github.com/robotis/lesscpy',
packages=['lesscpy',
'lesscpy/lessc',
'lesscpy/lib',
'lesscpy/plib',
'lesscpy/scripts',
'lesscpy/test'],
scripts = ['bin/lesscpy'],
install_requires=["ply"],
package_data={'lesscpy': ['lesscpy/test/css/*.css',
'lesscpy/test/css/issues/*.css',
'lesscpy/test/less/*.less',
'lesscpy/test/less/issues/*.less',]},
license=license,
long_description=long_description,
)