2015-12-03 16:30:06 +00:00
|
|
|
import os
|
2020-11-29 20:58:00 +00:00
|
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
2010-01-07 04:48:44 +00:00
|
|
|
|
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):
|
2022-08-17 20:59:25 +00:00
|
|
|
with open(filepath) as f:
|
2015-12-03 16:30:06 +00:00
|
|
|
yield f.read()
|
2010-01-07 04:48:44 +00:00
|
|
|
|
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))
|
|
|
|
|
|
|
|
|
|
|
2009-07-02 18:03:02 +00:00
|
|
|
setup(
|
|
|
|
|
name='django-model-utils',
|
2020-11-29 13:39:17 +00:00
|
|
|
use_scm_version={"version_scheme": "post-release"},
|
|
|
|
|
setup_requires=["setuptools_scm"],
|
2017-01-26 03:36:59 +00:00
|
|
|
license="BSD",
|
2009-07-02 18:03:02 +00:00
|
|
|
description='Django model mixins and utilities',
|
2010-01-07 04:48:44 +00:00
|
|
|
long_description=long_description,
|
2020-11-29 13:39:17 +00:00
|
|
|
long_description_content_type='text/x-rst',
|
2009-07-02 18:03:02 +00:00
|
|
|
author='Carl Meyer',
|
2013-03-28 02:59:19 +00:00
|
|
|
author_email='carl@oddbird.net',
|
2017-04-15 15:47:31 +00:00
|
|
|
maintainer='JazzBand',
|
2020-11-29 13:39:17 +00:00
|
|
|
url='https://github.com/jazzband/django-model-utils',
|
2017-02-15 23:00:10 +00:00
|
|
|
packages=find_packages(exclude=['tests*']),
|
2023-06-15 17:39:29 +00:00
|
|
|
python_requires=">=3.8",
|
2022-08-17 20:49:23 +00:00
|
|
|
install_requires=['Django>=3.2'],
|
2009-07-02 18:03:02 +00:00
|
|
|
classifiers=[
|
2013-03-28 02:59:19 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2009-07-02 18:03:02 +00:00
|
|
|
'Environment :: Web Environment',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Programming Language :: Python',
|
2013-04-12 21:26:08 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
2019-11-14 16:50:04 +00:00
|
|
|
'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',
|
2022-11-15 10:06:42 +00:00
|
|
|
'Programming Language :: Python :: 3.11',
|
2023-06-15 17:39:29 +00:00
|
|
|
'Programming Language :: Python :: 3.12',
|
2024-09-05 15:12:03 +00:00
|
|
|
'Programming Language :: Python :: 3.13',
|
2009-07-02 18:03:02 +00:00
|
|
|
'Framework :: Django',
|
2023-04-06 11:38:02 +00:00
|
|
|
'Framework :: Django :: 4.2',
|
2023-10-26 16:00:43 +00:00
|
|
|
'Framework :: Django :: 5.0',
|
2024-08-28 07:48:40 +00:00
|
|
|
'Framework :: Django :: 5.1',
|
2025-04-08 07:39:27 +00:00
|
|
|
'Framework :: Django :: 5.2',
|
2009-07-02 18:03:02 +00:00
|
|
|
],
|
|
|
|
|
zip_safe=False,
|
2015-07-20 15:56:07 +00:00
|
|
|
package_data={
|
|
|
|
|
'model_utils': [
|
2023-01-23 22:03:56 +00:00
|
|
|
'locale/*/LC_MESSAGES/django.po',
|
|
|
|
|
'locale/*/LC_MESSAGES/django.mo',
|
|
|
|
|
'py.typed',
|
2015-07-20 15:56:07 +00:00
|
|
|
],
|
2015-07-01 12:16:03 +00:00
|
|
|
},
|
2009-07-02 18:03:02 +00:00
|
|
|
)
|