forked from fusionbox/django-pyscss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (53 loc) · 1.74 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
#!/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.4',
'pyScss>=1.2.0,<1.3.0',
]
tests_require = [
'Pillow',
'django-compressor>=1.3',
'django-discover-runner',
]
version = (1, 1, 0, 'alpha')
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(),
author="Fusionbox, Inc.",
author_email="[email protected]",
url="https://github.com/fusionbox/django-pyscss",
keywords="django css scss sass pyscss compressor",
description=__doc__,
long_description=read('README.rst'),
packages=[package for package in find_packages() if package.startswith('django_pyscss')],
install_requires=install_requires,
tests_require=tests_require,
zip_safe=False,
include_package_data=True,
test_suite='testproject.runtests.runtests',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
#'Programming Language :: Python :: 3.3',
],
)