django-imagekit/setup.py

79 lines
2.3 KiB
Python
Raw Normal View History

#/usr/bin/env python
import codecs
import os
2013-02-07 01:40:54 +00:00
from setuptools import setup, find_packages
import sys
2013-02-07 01:40:54 +00:00
# Workaround for multiprocessing/nose issue. See http://bugs.python.org/msg170215
try:
import multiprocessing
except ImportError:
pass
if 'publish' in sys.argv:
os.system('python setup.py sdist upload')
sys.exit()
2011-02-10 22:24:11 +00:00
2013-02-07 01:40:54 +00:00
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
def exec_file(filepath, globalz=None, localz=None):
exec(read(filepath), globalz, localz)
2013-02-07 01:40:54 +00:00
2012-10-26 00:01:11 +00:00
# Load package meta from the pkgmeta module without loading imagekit.
pkgmeta = {}
exec_file(os.path.join(os.path.dirname(__file__),
2012-10-26 00:01:11 +00:00
'imagekit', 'pkgmeta.py'), pkgmeta)
2013-02-07 01:40:54 +00:00
setup(
name='django-imagekit',
2012-10-26 00:01:11 +00:00
version=pkgmeta['__version__'],
description='Automated image processing for Django models.',
long_description=read(os.path.join(os.path.dirname(__file__), 'README.rst')),
author='Matthew Tretter',
author_email='m@tthewwithanm.com',
maintainer='Bryan Veloso',
maintainer_email='bryan@revyver.com',
license='BSD',
url='http://github.com/matthewwithanm/django-imagekit/',
packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']),
zip_safe=False,
include_package_data=True,
2012-10-25 03:45:00 +00:00
tests_require=[
'beautifulsoup4>=4.4.0',
'nose>=1.3.6',
'nose-progressive>=1.5.1',
'django-nose>=1.4',
'Pillow',
'mock>=1.0.1',
2012-10-25 03:45:00 +00:00
],
2013-02-07 01:40:54 +00:00
test_suite='testrunner.run_tests',
2012-07-20 01:03:15 +00:00
install_requires=[
'django-appconf>=0.5',
2013-05-10 01:35:09 +00:00
'pilkit>=0.2.0',
'six',
2012-07-20 01:03:15 +00:00
],
2013-04-03 02:29:53 +00:00
extras_require={
'async': ['django-celery>=3.0'],
'async_rq': ['django-rq>=0.6.0'],
2013-04-03 02:29:53 +00:00
},
classifiers=[
2012-03-20 09:39:36 +00:00
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
2011-04-01 19:26:17 +00:00
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
2011-04-01 19:26:17 +00:00
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
2011-02-10 22:24:11 +00:00
'Topic :: Utilities'
],
)