-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
41 lines (34 loc) · 1.12 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
"""Python packaging."""
import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = "django-js-error-hook"
README = read_relative_file("README.rst")
VERSION = read_relative_file("VERSION").strip()
PACKAGES = ["django_js_error_hook"]
REQUIRES = ["django>=3.2.0"]
setup(
name=NAME,
version=VERSION,
description="Generic handler for hooking client side javascript error.",
long_description=README,
classifiers=[
"Development Status :: 1 - Planning",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Framework :: Django",
],
keywords="class-based view, generic view, js error hooking",
author="Jonathan Dorival",
author_email="[email protected]",
url="https://github.com/jojax/%s" % NAME,
license="BSD",
packages=PACKAGES,
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
)