mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
I reworked the `MANIFEST.in` to include the whole test suite so it can be used by distribution packages during build time. It is excluded from the installed packages automatically. The inclusion rules for the documentation were also made more verbose to prevent build artifacts from entering the source tarball (think .pyc files).
78 lines
2.3 KiB
Python
78 lines
2.3 KiB
Python
#/usr/bin/env python
|
|
import codecs
|
|
import os
|
|
from setuptools import setup, find_packages
|
|
import sys
|
|
|
|
|
|
# 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()
|
|
|
|
|
|
read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
|
|
|
|
def exec_file(filepath, globalz=None, localz=None):
|
|
exec(read(filepath), globalz, localz)
|
|
|
|
# Load package meta from the pkgmeta module without loading imagekit.
|
|
pkgmeta = {}
|
|
exec_file(os.path.join(os.path.dirname(__file__),
|
|
'imagekit', 'pkgmeta.py'), pkgmeta)
|
|
|
|
|
|
setup(
|
|
name='django-imagekit',
|
|
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,
|
|
tests_require=[
|
|
'beautifulsoup4>=4.4.0',
|
|
'nose>=1.3.6',
|
|
'nose-progressive>=1.5.1',
|
|
'django-nose>=1.4',
|
|
'Pillow',
|
|
'mock>=1.0.1',
|
|
],
|
|
test_suite='testrunner.run_tests',
|
|
install_requires=[
|
|
'django-appconf>=0.5',
|
|
'pilkit>=0.2.0',
|
|
'six',
|
|
],
|
|
extras_require={
|
|
'async': ['django-celery>=3.0'],
|
|
'async_rq': ['django-rq>=0.6.0'],
|
|
},
|
|
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 :: 2',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Topic :: Utilities'
|
|
],
|
|
)
|