django-model-utils/setup.py

50 lines
1.6 KiB
Python
Raw Normal View History

from os.path import join
from setuptools import setup, find_packages
2013-01-27 22:54:29 +00:00
long_description = (open('README.rst').read() +
open('CHANGES.rst').read() +
open('TODO.rst').read())
2013-01-27 22:54:29 +00:00
def get_version():
with open(join('model_utils', '__init__.py')) as f:
for line in f:
if line.startswith('__version__ ='):
return line.split('=')[1].strip().strip('"\'')
setup(
name='django-model-utils',
version=get_version(),
description='Django model mixins and utilities',
long_description=long_description,
author='Carl Meyer',
2013-03-28 02:59:19 +00:00
author_email='carl@oddbird.net',
url='https://github.com/carljm/django-model-utils/',
packages=find_packages(),
install_requires=['Django>=1.4.2'],
classifiers=[
2013-03-28 02:59:19 +00:00
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
2015-10-28 21:26:36 +00:00
'Programming Language :: Python :: 3.4',
'Framework :: Django',
],
zip_safe=False,
tests_require=["Django>=1.4.2"],
test_suite='runtests.runtests',
package_data={
'model_utils': [
'locale/*/LC_MESSAGES/django.po','locale/*/LC_MESSAGES/django.mo'
],
},
)