forked from TwigWorld/django-rottweiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (23 loc) · 947 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
27
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__),
'README.rst')).read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__),
os.pardir)))
PACKAGE_DATA = list()
for root, dirs, files in os.walk(os.path.join('rottweiler', 'templates')):
for filename in files:
PACKAGE_DATA.append("%s/%s" % (root[len('rottweiler')+1:], filename))
setup(
name='django-rottweiler',
version='1.1.0',
packages=find_packages(),
package_data={'': PACKAGE_DATA},
license='MIT License',
description='''A permission model that allows global and object-level
rule-based permissions''',
url='https://github.com/TwigWorld/django-rottweiler',
long_description=README,
author='Charlie Quinn & Chris Wright',
install_requires=["Django >= 1.4", "django-rulez == 1.0.1"]
)