diff options
author | Rocky Meza <rocky@fusionbox.com> | 2014-02-01 18:22:17 -0700 |
---|---|---|
committer | Rocky Meza <rocky@fusionbox.com> | 2014-02-01 19:05:04 -0700 |
commit | 2a53a7abd1ddba02c44b81a24305b03532b45fee (patch) | |
tree | 6b009211aa1eb8355464dcf0e765b076207fa778 /setup.py | |
download | django-pyscss-2a53a7abd1ddba02c44b81a24305b03532b45fee.tar.gz |
django-pyscss - use PySCSS in Django more easily
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c0da811 --- /dev/null +++ b/setup.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +from setuptools import setup, find_packages +import subprocess +import os + +__doc__ = """ +Makes it easier to use PySCSS in Django. +""" + + +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + + +install_requires = [ + 'Django>=1.3', + 'PyScss>=1.1.5', +] + +version = (0, 0, 1, 'final') + + +def get_version(): + number = '.'.join(map(str, version[:3])) + stage = version[3] + if stage == 'final': + return number + elif stage == 'alpha': + process = subprocess.Popen('git rev-parse HEAD'.split(), stdout=subprocess.PIPE) + stdout, stderr = process.communicate() + return number + '-' + stdout.strip()[:8] + +setup( + name='django-pyscss', + version=get_version(), + description=__doc__, + long_description=read('README.rst'), + packages=[package for package in find_packages() if package.startswith('django_pyscss')], + install_requires=install_requires, + zip_safe=False, + include_package_data=True, + test_suite='testproject.runtests.runtests', +) |