forked from stefanfoulis/django-image-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (49 loc) · 1.6 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# make sure setuptools is available
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import os
version = __import__('image_filer').__version__
media_files = []
for dir in ['image_filer/media','image_filer/templates']:
for dirpath, dirnames, filenames in os.walk(dir):
media_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
def read(fname):
# read the contents of a text file
return open(os.path.join(os.path.dirname(__file__), fname)).read()
install_requires = [
'setuptools',
'sorl-thumbnail>=3.2.5',
'django-mptt>=0.2.1',
'django>=1.1',
]
setup(
name = "django-image-filer",
version = version,
url = 'http://github.com/stefanfoulis/django-image-filer',
license = 'BSD',
platforms=['OS Independent'],
description = "A file management application for django that makes handling of images a breeze.",
long_description = read('README'),
author = 'Stefan Foulis',
author_email = '[email protected]',
packages=find_packages(exclude=['ez_setup']),
install_requires = install_requires,
package_data={
'': ['*.txt', '*.rst',],
},
package_dir = {
'image_filer':'image_filer',
},
data_files = media_files,
zip_safe=False,
classifiers = [
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
]
)