-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
140 lines (134 loc) · 3.79 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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",
"pyotp<3",
"aiofiles==23.2.1",
]
),
"flask": (
[
"flask_cors",
"Flask",
"python-dotenv==0.19.2",
"pyotp<3",
]
),
"django": (
[
"django-cors-headers==3.11.0",
"django>=3",
"django-stubs==1.9.0",
"uvicorn==0.18.2",
"python-dotenv==0.19.2",
"pyotp<3",
]
),
"django2x": (
[
"django-cors-headers==3.11.0",
"django>=2,<3",
"django-stubs==1.9.0",
"gunicorn==20.1.0",
"python-dotenv==0.19.2",
"pyotp<3",
]
),
"drf": (
[
"adrf",
"django-cors-headers==3.11.0",
"django>=4",
"django-stubs==1.9.0",
"djangorestframework",
"gunicorn==20.1.0",
"uvicorn==0.18.2",
"python-dotenv==0.19.2",
"tzdata==2021.5",
"pyotp<3",
]
),
}
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.25.0",
author="SuperTokens",
license="Apache 2.0",
author_email="[email protected]",
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",
"Programming Language :: Python :: 3.12",
"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.5.0,<3.0.0",
"httpx>=0.15.0,<=0.26.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<9",
"twilio<10",
"aiosmtplib>=1.1.6,<4.0.0",
"pkce==1.0.3",
"pyotp<3",
],
python_requires=">=3.7",
include_package_data=True,
extras_require=extras_require,
)