forked from richardbarran/django-photologue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (42 loc) · 1.8 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
#/usr/bin/env python
import uuid
import os
from setuptools import setup, find_packages
from pip.req import parse_requirements
import photologue
def get_requirements(source):
try:
install_reqs = parse_requirements(source, session=uuid.uuid1())
except TypeError:
# Older version of pip.
install_reqs = parse_requirements(source)
required = list(set([str(ir.req) for ir in install_reqs]))
# Temp situation: transition from PIL to Pillow, add a hook so people can
# skip installing Pillow.
if os.path.exists('/tmp/PHOTOLOGUE_NO_PILLOW'):
required = [item for item in required if not item.startswith('Pillow')]
return required
setup(
name="django-photologue",
version=photologue.__version__,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com, richard@arbee-design.co.uk",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
install_requires=get_requirements('requirements.txt'),
)