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 not 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))
25 name='django-sponsors',
27 author='Marek Stępniowski',
28 author_email='marek@stepniowski.com',
29 maintainer='Radek Czajka',
30 maintainer_email='radekczajka@nowoczesnapolska.org.pl',
32 packages=find_packages(),
33 package_data={'sponsors': whole_trees('sponsors', ['templates', 'locale', 'static'])},
35 description='Manage your lists of sponsors with Django admin.',
36 long_description=open('README.md').read(),
37 install_requires=['jsonfield'],