forked from escaped/django-inline-actions
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (50 loc) · 1.91 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
50
51
52
53
54
55
56
#!/usr/bin/python
# -*- coding:utf-8 -*-
# This Python file uses the following encoding: utf-8
from setuptools import setup, find_packages
import os
import sys
# Get description from Readme file
readme_file = os.path.join(os.path.dirname(__file__), 'README.md')
long_description = open(readme_file).read()
# Build a list with requirements of the app
REQUIRES = []
try:
import django
except ImportError:
# Because of the strange update behavior of "pip --upgrade package_name"
# set requierment only if django not avallible.
REQUIRES.append('django')
if sys.version_info < (3, 8):
REQUIRES.append('python >= 3.8')
setup(name='django4-inline-actions',
version=1.7,
description='django4-inline-actions adds actions to each row of the ModelAdmin or InlineModelAdmin',
long_description_content_type='text/markdown',
long_description=long_description,
author='FENG Hao',
author_email='hiroshifuu@outlook.com',
url='https://github.com/HiroshiFuu/django4-inline-actions',
download_url='https://pypi.python.org/pypi/django4-inline-actions',
license='BSD',
packages=find_packages(exclude=['test_proj', ]),
include_package_data=True,
keywords="Django4 ModelAdmin inline actions",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django :: 3.0',
'Framework :: Django :: 4.0',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Environment :: Console',
'Natural Language :: English',
'Intended Audience :: Developers',
'Topic :: Internet',
],
install_requires=REQUIRES,
zip_safe=False,
)