You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
71 lines
2.0 KiB
#/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 assetkit. |
|
pkgmeta = {} |
|
exec_file(os.path.join(os.path.dirname(__file__), |
|
'assetkit', 'pkgmeta.py'), pkgmeta) |
|
|
|
|
|
setup( |
|
name='django-assetkit', |
|
version=pkgmeta['__version__'], |
|
description='Automated media asset processing for Django models.', |
|
long_description=read(os.path.join(os.path.dirname(__file__), 'README.rst')), |
|
author='Erik Stein', |
|
author_email='erik@classlibrary.net', |
|
license='BSD', |
|
url='http://github.com/sha-red/django-assetkit/', |
|
packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']), |
|
zip_safe=False, |
|
include_package_data=True, |
|
tests_require=[ |
|
'Pillow', |
|
], |
|
test_suite='testrunner.run_tests', |
|
install_requires=[ |
|
'django-appconf>=0.5', |
|
'django-imagekit>=3.0', |
|
'pilkit>=0.2.0', |
|
'six', |
|
], |
|
extras_require={ |
|
'async': ['django-celery>=3.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' |
|
], |
|
)
|
|
|