-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsetup.py
26 lines (23 loc) · 850 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
# coding=utf8
from setuptools import setup, find_packages
import os
static_files = []
for root, subFolders, files in os.walk("filtrate/static"):
for f in files:
path = os.path.join(root, f)
# Remove 'filtrate/'
path = path[9:]
static_files.append(path)
setup(
name='django-admin-filtrate',
version='0.1.0',
author='Rune Kaagaard',
author_email='[email protected]',
description='This Django app makes it easier to create custom filters in the change list of Django Admin and supplies a TreeFilter and a DateRangeFilter too.',
long_description=open('README.markdown').read(),
license='MIT',
url='https://github.com/runekaagaard/django-admin-filtrate',
packages=find_packages(),
package_data = {'filtrate': ['templates/filtrate/*'] + static_files },
)