Add README and setup.py

This commit is contained in:
Yury Selivanov 2013-10-08 16:15:02 -04:00
parent 6b466160f5
commit 211931c85d
2 changed files with 60 additions and 0 deletions

28
README.rst Normal file
View File

@ -0,0 +1,28 @@
Almost exact port of YUI CSS Compressor.
Passes all original unittests.
Usage
=====
.. code:: pycon
>>> from csscompressor import compress
>>> compress('''
... your css {
... content: "!";
... }
... ''')
'your css{content:"!"}'
Compatibility
=============
Tested under Python 2.6, 2.7 and 3.3
License
=======
Published under the original Yahoo License for YUI Compressor -- BSD.

32
setup.py Normal file
View File

@ -0,0 +1,32 @@
from setuptools import setup
extra = {}
f = open('README.rst', 'r')
try:
extra['long_description'] = f.read()
finally:
f.close()
setup(
name='csscompressor',
version='0.9.0',
url='http://github.com/sprymix/csscompressor',
license='BSD',
author='Yury Selivanov',
author_email='info@sprymix.com',
description='A python port of YUI CSS Compressor',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Topic :: Text Processing :: General'
],
packages=['csscompressor', 'csscompressor.tests'],
**extra
)