fix in get_here_url: generic views provide unusable url name, check for view func...
[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 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 not 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.1.3',
26     author='Radek Czajka',
27     author_email='radoslaw.czajka@nowoczesnapolska.org.pl',
28     url = '',
29     packages=find_packages(),
30     package_data={
31         'fnpdjango': whole_trees('fnpdjango', ['templates', 'locale']),
32         'fnpdjango.deploy': ['templates/*.template'],
33     },
34     scripts=[
35         'bin/git-archive-all.sh',
36         'bin/fnpdjango_bootstrap.sh',
37     ],
38     install_requires=[
39         'django>=1.4,<1.5',
40         'textile',
41     ],
42     license='LICENSE',
43     description='.',
44     long_description="",
45 )