d2d338920bd66bd352e902a9d12a46f67252ae01
[fnpdjango.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='fnpdjango',
26     version='0.4.3',
27     author='Radek Czajka',
28     author_email='radekczajka@nowoczesnapolska.org.pl',
29     url='',
30     packages=find_packages(exclude=['tests*']),
31     package_data={
32         'fnpdjango': whole_trees('fnpdjango', ['templates', 'locale', 'static']),
33         'fnpdjango.management.commands': ['babel.cfg'],
34     },
35     install_requires=[
36         'Django>=1.4,<2.3',
37     ],
38     extras_require={
39         'textile': [
40             'textile==2.3.16',
41         ],
42         'pipeline': [
43             'pipeline',
44         ],
45     },
46     license='LICENSE',
47     description='.',
48     long_description="",
49     test_suite="runtests.runtests",
50 )