448d1f247b62c7c2aaabed9c12d21c1e02b48ee8
[fnpdjango.git] / setup.py
1 #!/usr/bin/env python
2 #
3 import os.path
4 from setuptools import setup, find_packages
5
6
7 def whole_trees(package_dir, paths):
8     def whole_tree(prefix, path):
9         files = []
10         for f in (f for f in os.listdir(os.path.join(prefix, path)) if f[0] != '.'):
11             new_path = os.path.join(path, f)
12             if os.path.isdir(os.path.join(prefix, new_path)):
13                 files.extend(whole_tree(prefix, new_path))
14             else:
15                 files.append(new_path)
16         return files
17     prefix = os.path.join(os.path.dirname(__file__), package_dir)
18     files = []
19     for path in paths:
20         files.extend(whole_tree(prefix, path))
21     return files
22
23 setup(
24     name='fnpdjango',
25     version='0.5',
26     author='Radek Czajka',
27     author_email='radekczajka@nowoczesnapolska.org.pl',
28     url='',
29     packages=find_packages(exclude=['tests*']),
30     package_data={
31         'fnpdjango': whole_trees('fnpdjango', ['templates', 'locale', 'static']),
32         'fnpdjango.management.commands': ['babel.cfg'],
33     },
34     install_requires=[
35         'Django>=1.11,<4.0',
36     ],
37     extras_require={
38         'textile': [
39             'textile==2.3.16',
40         ],
41         'pipeline': [
42             'pipeline',
43         ],
44     },
45     license='LICENSE',
46     description='.',
47     long_description="",
48     test_suite="runtests.runtests",
49 )