-
Notifications
You must be signed in to change notification settings - Fork 115
/
setup.py
executable file
·63 lines (54 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
57
58
59
60
61
62
63
#!/usr/bin/env python
import ast
import codecs
import os
import re
from setuptools import find_packages, setup
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
init = os.path.join(ROOT, "src", "adminactions", "__init__.py")
def read(*parts):
with codecs.open(os.path.join(ROOT, "src", "requirements", *parts), "r") as fp:
return fp.read()
_version_re = re.compile(r"__version__\s+=\s+(.*)")
with open(init, "rb") as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)))
requirements = read("install.pip")
tests_require = read("testing.pip")
dev_require = read("develop.pip")
docs_require = read("rtd.pip")
setup(
name="django-adminactions",
version=version,
url="https://github.com/saxix/django-adminactions",
download_url="https://github.com/saxix/django-adminactions",
author="sax",
author_email="s.apostolico@gmail.com",
description="Collections of useful actions to use with django.contrib.admin.ModelAdmin",
license="MIT",
package_dir={"": "src"},
packages=find_packages("src"),
include_package_data=True,
install_requires=requirements,
tests_require=tests_require,
extras_require={
"test": requirements + tests_require,
"dev": dev_require + tests_require,
"docs": dev_require + docs_require,
},
zip_safe=False,
platforms=["any"],
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Operating System :: OS Independent",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Developers",
],
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
)