-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
65 lines (58 loc) · 1.81 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
import os
from setuptools import find_packages, setup
VERSION = __import__("herald").__version__
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ""
install_requires = [
"django>=3.2",
"six",
"jsonpickle",
]
dev_requires = [
"pytz",
]
twilio_requires = [
"twilio",
]
html2text_requires = [
"html2text",
]
setup(
name="django-herald",
version=VERSION,
author="Worthwhile",
author_email="[email protected]",
install_requires=install_requires,
extras_require={
"dev": install_requires + dev_requires,
"twilio": twilio_requires,
"html2text": html2text_requires,
},
packages=find_packages(include=("herald", "herald.*")),
include_package_data=True, # declarations in MANIFEST.in
license="MIT",
url="https://github.com/worthwhile/django-herald/",
download_url="https://github.com/worthwhile/django-herald/tarball/" + VERSION,
description="Django library for separating the message content from transmission method",
long_description=read_file("README.md"),
long_description_content_type="text/markdown",
keywords=["django", "notifications", "messaging"],
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
],
)