/
setup.py
53 lines (49 loc) · 1.85 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
#!/usr/bin/env python
# Encoding: utf-8
# See: <http://docs.python.org/distutils/introduction.html>
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
NAME = "pythoniccss"
WEBSITE = "http://www.github.com/sebastien/pythoniccss"
SUMMARY = "CSS-preprocessor with Pythonic syntax."
DESCRIPTION = """\
A Pythonic CSS pre-processor, designed as a replacement/upgrade to CleverCSS.
"""
LONG_DESCRIPTION = None
if os.path.exists("README.md") and os.popen("which pandoc").read():
LONG_DESCRIPTION = os.popen("pandoc -f markdown -t rst README.md").read()
VERSION = eval([_.rsplit("=",1)[1] for _ in open("src/pythoniccss/__init__.py").readlines() if _.startswith("VERSION")][0])
WEBSITE = "http://www.github.com/sebastien/pythoniccss"
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
long_description = LONG_DESCRIPTION,
author = "Sébastien Pierre",
author_email = "sebastien.pierre@gmail.com",
url = WEBSITE,
download_url = WEBSITE + "/%s-%s.tar.gz" % (NAME.lower(), VERSION) ,
keywords = ["css", "pre-processor", "clever css",],
install_requires = ["libparsing",],
packages = ["pythoniccss"],
package_dir = {"pythoniccss":"src/pythoniccss"},
package_data = {"pythoniccss":["rgb.txt"]},
scripts = ["bin/pcss"],
license = "License :: OSI Approved :: BSD License",
# SEE: https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Utilities"
],
)
# EOF - vim: ts=4 sw=4 noet