django-model-utils/setup.py

60 lines
1.9 KiB
Python
Raw Normal View History

2015-12-03 16:30:06 +00:00
import os
2020-11-29 20:58:00 +00:00
from setuptools import find_packages, setup
2013-01-27 22:54:29 +00:00
2015-12-03 16:30:06 +00:00
def long_desc(root_path):
FILES = ['README.rst', 'CHANGES.rst']
for filename in FILES:
filepath = os.path.realpath(os.path.join(root_path, filename))
if os.path.isfile(filepath):
with open(filepath, mode='r') as f:
yield f.read()
2013-01-27 22:54:29 +00:00
2015-12-03 16:30:06 +00:00
HERE = os.path.abspath(os.path.dirname(__file__))
long_description = "\n\n".join(long_desc(HERE))
setup(
name='django-model-utils',
2020-11-29 13:39:17 +00:00
use_scm_version={"version_scheme": "post-release"},
setup_requires=["setuptools_scm"],
license="BSD",
description='Django model mixins and utilities',
long_description=long_description,
2020-11-29 13:39:17 +00:00
long_description_content_type='text/x-rst',
author='Carl Meyer',
2013-03-28 02:59:19 +00:00
author_email='carl@oddbird.net',
maintainer='JazzBand',
2020-11-29 13:39:17 +00:00
url='https://github.com/jazzband/django-model-utils',
packages=find_packages(exclude=['tests*']),
install_requires=['Django>=2.0.1'],
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 :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
2020-11-06 12:54:31 +00:00
'Programming Language :: Python :: 3.9',
2021-10-07 20:12:45 +00:00
'Programming Language :: Python :: 3.10',
'Framework :: Django',
2019-05-15 23:30:03 +00:00
'Framework :: Django :: 2.2',
2020-09-17 10:38:23 +00:00
'Framework :: Django :: 3.1',
2021-04-07 07:14:55 +00:00
'Framework :: Django :: 3.2',
2021-12-07 15:44:32 +00:00
'Framework :: Django :: 4.0',
],
zip_safe=False,
2020-11-06 12:53:28 +00:00
tests_require=['Django>=2.2'],
package_data={
'model_utils': [
'locale/*/LC_MESSAGES/django.po', 'locale/*/LC_MESSAGES/django.mo'
],
},
)