2 # -*- coding: utf-8 -*-
5 from setuptools import setup, find_packages
8 def whole_trees(package_dir, paths):
9 def whole_tree(prefix, path):
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))
16 files.append(new_path)
18 prefix = os.path.join(os.path.dirname(__file__), package_dir)
21 files.extend(whole_tree(prefix, path))
27 author='Radek Czajka',
28 author_email='radekczajka@nowoczesnapolska.org.pl',
30 packages=find_packages(exclude=['tests*']),
32 'fnpdjango': whole_trees('fnpdjango', ['templates', 'locale', 'static']),
33 'fnpdjango.management.commands': ['babel.cfg'],
40 'https://github.com/rczajka/python-textile/archive/f7a262f2a8409c8a8adb817b6a9f15f91187a527.zip#egg=textile-2.2a',
45 test_suite="runtests.runtests",