forked from brack3t/django-braces
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (60 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
import os
import re
from setuptools import setup
NAME = "braces"
def _add_default(m):
"""Add on a default"""
attr_name, attr_value = m.groups()
return ((attr_name, attr_value.strip("\"'")),)
def parse_dist_meta():
"""Extract metadata information from ``$dist/__init__.py``."""
re_meta = re.compile(r"__(\w+?)__\s*=\s*(.*)")
re_doc = re.compile(r'^"""(.+?)"""')
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, NAME, "__init__.py")) as meta_fh:
distmeta = {}
for line in meta_fh:
if line.strip() == "# -eof meta-":
break
match = re_meta.match(line.strip())
if match:
distmeta.update(_add_default(match))
return distmeta
meta = parse_dist_meta()
setup(
name="django-braces",
version=meta["version"],
description="Reusable, generic mixins for Django",
long_description="Mixins to add easy functionality to Django class-based views, forms, and models.",
keywords="django, views, forms, mixins",
author="Kenneth Love <[email protected]>, Chris Jones <[email protected]>",
author_email="[email protected]",
url="https://github.com/brack3t/django-braces/",
license="BSD",
packages=["braces"],
zip_safe=False,
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Development Status :: 6 - Mature",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=["Django>=2.2"],
)