-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
49 lines (43 loc) · 1.38 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
django-gm2m
Django generic many-to-many field
(c) 2014-2020 Thomas Khyn
MIT License (see LICENSE.txt)
"""
from setuptools import setup, find_packages
import os
# imports __version__ variable
exec(open('gm2m/version.py').read())
dev_status = __version_info__[3]
if dev_status == 'alpha' and not __version_info__[4]:
dev_status = 'pre'
DEV_STATUS = {'pre': '2 - Pre-Alpha',
'alpha': '3 - Alpha',
'beta': '4 - Beta',
'rc': '4 - Beta',
'final': '5 - Production/Stable'}
# setup function parameters
setup(
name='django-gm2m',
version=__version__,
description='Django generic many-to-many field',
long_description=open(os.path.join('README.rst')).read(),
author='Thomas Khyn',
author_email='thomas@ksytek.com',
url='https://github.com/tkhyn/django-gm2m',
keywords=['django', 'generic', 'many-to-many'],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Development Status :: %s' % DEV_STATUS[dev_status],
'Framework :: Django',
'Environment :: Other Environment',
],
packages=find_packages(exclude=('tests',)),
install_requires=(
'Django>=2.2',
),
zip_safe=True,
)