2 # -*- coding: utf-8 -*-
5 from setuptools import setup, find_packages
7 def whole_trees(package_dir, paths):
8 def whole_tree(prefix, path):
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))
15 files.append(new_path)
17 prefix = os.path.join(os.path.dirname(__file__), package_dir)
20 files.extend(whole_tree(prefix, path))
24 name='django-sponsors',
26 author='Marek Stępniowski',
27 author_email='marek@stepniowski.com',
28 maintainer='Radek Czajka',
29 maintainer_email='radoslaw.czajka@nowoczesnapolska.org.pl',
31 packages=find_packages(),
32 package_data={'sponsors': whole_trees('sponsors',
33 ['templates', 'locale', 'static'])},
35 description='Manage your lists of sponsors with Django admin.',
36 long_description=open('README.md').read(),