forked from supertokens/supertokens-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
119 lines (113 loc) · 3.27 KB
/
setup.py
File metadata and controls
119 lines (113 loc) · 3.27 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.md"), mode="r", encoding="utf-8") as f:
long_description = f.read()
extras_require = {
# we want to fix the versions of the libraries that
# we use to develop the SDK with otherwise we get
# a bunch of type errors on make dev-install depending
# on changes in these frameworks
"fastapi": (
[
"respx==0.19.2",
"Fastapi",
"uvicorn==0.18.2",
"python-dotenv==0.19.2",
]
),
"flask": (
[
"flask_cors",
"Flask",
"python-dotenv==0.19.2",
]
),
"django": (
[
"django-cors-headers==3.11.0",
"django>=3",
"django-stubs==1.9.0",
"uvicorn==0.18.2",
"python-dotenv==0.19.2",
]
),
"django2x": (
[
"django-cors-headers==3.11.0",
"django>=2,<3",
"django-stubs==1.9.0",
"gunicorn==20.1.0",
"python-dotenv==0.19.2",
]
),
}
exclude_list = [
"tests",
"examples",
"hooks",
".gitignore",
".git",
"addDevTag",
"addReleaseTag",
"frontendDriverInterfaceSupported.json",
"coreDriverInterfaceSupported.json",
".github",
".circleci",
"html",
"pyrightconfig.json",
"Makefile",
".pylintrc",
"dev-requirements.txt",
"docs-templates",
]
setup(
name="supertokens_python",
version="0.15.3",
author="SuperTokens",
license="Apache 2.0",
author_email="team@supertokens.com",
description="SuperTokens SDK for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/supertokens/supertokens-python",
packages=find_packages(exclude=exclude_list),
package_data={
"supertokens_python": [
"py.typed",
]
},
classifiers=[
"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.11",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP :: Session",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="",
install_requires=[
# [crypto] ensures that it installs the `cryptography` library as well
# based on constraints specified in https://github.com/jpadilla/pyjwt/blob/master/setup.cfg#L50
"PyJWT[crypto]>=2.6.0,<3.0.0",
"httpx>=0.15.0,<0.25.0",
"pycryptodome==3.10.*",
"tldextract==3.1.0",
"asgiref>=3.4.1,<4",
"typing_extensions>=4.1.1,<5.0.0",
"Deprecated==1.2.13",
"phonenumbers==8.12.48",
"twilio==7.9.1",
"aiosmtplib==1.1.6",
"pkce==1.0.3",
],
python_requires=">=3.7",
include_package_data=True,
extras_require=extras_require,
)