5aff4182be24c0cc4f461f2fedab03e9e94fe22e
[django-migdal.git] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 import os.path
5 from setuptools import setup, find_packages
6
7
8 def whole_trees(package_dir, paths):
9     def whole_tree(prefix, path):
10         files = []
11         for f in (f for f in os.listdir(os.path.join(prefix, path)) if f[0] != '.'):
12             new_path = os.path.join(path, f)
13             if os.path.isdir(os.path.join(prefix, new_path)):
14                 files.extend(whole_tree(prefix, new_path))
15             else:
16                 files.append(new_path)
17         return files
18     prefix = os.path.join(os.path.dirname(__file__), package_dir)
19     files = []
20     for path in paths:
21         files.extend(whole_tree(prefix, path))
22     return files
23
24 setup(
25     name='django-migdal',
26     version='0.8.7',
27     author='Radek Czajka',
28     author_email='radoslaw.czajka@nowoczesnapolska.org.pl',
29     url='',
30     packages=find_packages(),
31     package_data={'migdal': whole_trees('migdal', ['templates', 'locale'])},
32     license='LICENSE',
33     description='.',
34     long_description="",
35     install_requires=[
36         'django-contrib-comments==1.7.3',
37         'django-comments-xtd==1.5.1',
38         'django-gravatar2',
39         'django-haystack==2.7.0',
40         'django-markupfield==1.4.3',
41         'python-slugify',
42
43         'fnpdjango==0.3',
44         'Pillow',
45         'sorl-thumbnail==12.4.1',
46         'pysolr==3.8.1',
47         'fnp-django-pagination==2.2.4',
48         'Django>=1.7,<2.0',
49     ],
50 )