forked from twidi/django-template-preprocessor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (45 loc) · 1.82 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
import re
from setuptools import setup
import os
absolute_path = lambda x: os.path.join(os.path.dirname(__file__), x)
readme_path = absolute_path(u'README.md')
def parse_requirements(file_name):
requirements = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'(\s*#)|(\s*$)', line):
continue
if re.match(r'\s*-e\s+', line):
requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line))
elif re.match(r'\s*-f\s+', line):
pass
else:
requirements.append(line)
return requirements
setup(
name = "django-template-preprocessor",
version='1.2.29',
url = 'https://github.com/citylive/django-template-preprocessor',
license = 'BSD',
description = "Template preprocessor/compiler for Django",
long_description = open(readme_path, 'r').read(),
author = 'Jonathan Slenders, City Live nv',
packages = ['template_preprocessor'], #find_packages('src', exclude=['*.test_project', 'test_project', 'test_project.*', '*.test_project.*']),
package_dir = {'': 'src'},
package_data = {'template_preprocessor': [
'templates/*.html', 'templates/*/*.html', 'templates/*/*/*.html',
'static/*/js/*.js', 'static/*/css/*.css',
],},
include_package_data=True,
install_requires = parse_requirements('requirements.txt'),
zip_safe=False, # Don't create egg files, Django cannot find templates in egg files.
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Framework :: Django',
'Topic :: Software Development :: Internationalization',
],
)