-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (46 loc) · 1.68 KB
/
Copy pathsetup.py
File metadata and controls
51 lines (46 loc) · 1.68 KB
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
import re
import sys
from setuptools import find_packages, setup
if sys.version_info < (3, 5):
raise "must use Python version 3.5 or higher"
with open("./gmailapi_backend/__init__.py", "r") as f:
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
VERSION = re.search(MATCH_EXPR, f.read()).group(2).strip()
setup(
name="django-gmailapi-backend",
version=VERSION,
packages=find_packages(),
author="Michele Dolfi",
author_email="michele.dolfi@gmail.com",
license="Apache License 2.0",
entry_points={
"console_scripts": [
"gmail_oauth2 = gmailapi_backend.bin.gmail_oauth2:main",
]
},
install_requires=[
"google-api-python-client~=2.0",
"google-auth>=1.16.0,<3.0.0dev",
"google-auth-oauthlib>=1.4.0",
],
url="https://github.com/dolfim/django-gmailapi-backend",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
description="Email backend for Django which sends email via the Gmail API",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Django",
"Topic :: Communications :: Email",
"Development Status :: 4 - Beta",
],
)