-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·46 lines (37 loc) · 1.35 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
#!/usr/bin/env python
import os
import re
import sys
from setuptools import setup
if sys.version_info[0] < 3:
from setuptools import find_packages as find_namespace_packages
else:
from setuptools import find_namespace_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
def get_version(package):
init_py = open(os.path.join(package, "__init__.py")).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name="django-radiogrid",
version=get_version("radiogrid"),
author="Anton Shurashov",
author_email="[email protected]",
description="Django radio grid field",
long_description=(read("README.rst") + "\n\n" + read("CHANGES.rst")),
long_description_content_type="text/x-rst",
install_requires=["django>=1.7.0", "six>=1.16.0"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
license="LGPL 3",
keywords="django,radio,grid,field,choices",
url="https://github.com/Sinkler/django-radiogrid",
packages=find_namespace_packages(),
include_package_data=True,
zip_safe=False,
)