-
Notifications
You must be signed in to change notification settings - Fork 102
/
setup.py
executable file
·83 lines (74 loc) · 2.26 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
import re
import os.path
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
# Find the package version in __init__.py without importing it
# (which we cannot do because it has extensive dependencies).
init_file = os.path.join(os.path.dirname(__file__), "nested_admin", "__init__.py")
with open(init_file) as f:
for line in f:
m = re.search(r"""^__version__ = (['"])(.+?)\1$""", line)
if m is not None:
version = m.group(2)
break
else:
raise LookupError("Unable to find __version__ in " + init_file)
tests_require = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-django",
"Pillow",
"dj-database-url",
"django-selenosis",
"selenium",
]
dev_require = [
"black",
"flake8",
] + tests_require
setup(
name="django-nested-admin",
version=version,
python_requires=">=3.6",
install_requires=[
"python-monkey-business>=1.0.0",
],
tests_require=tests_require,
extras_require={
"test": tests_require,
"dev": dev_require,
},
description="Django admin classes that allow for nested inlines",
author="The Atlantic",
author_email="[email protected]",
url="https://github.com/theatlantic/django-nested-admin",
packages=find_packages(),
license="BSD",
platforms="any",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
],
include_package_data=True,
zip_safe=False,
long_description="".join(list(open("README.rst"))[3:]),
)