-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.py
134 lines (128 loc) · 3.57 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
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.21.1",
"fastapi",
"uvicorn",
"python-dotenv==1.0.1",
]
),
"flask": (
[
"flask-cors",
"flask",
"python-dotenv==1.0.1",
]
),
"django": (
[
"django-cors-headers",
"django>=3",
"django-stubs",
"uvicorn",
"python-dotenv==1.0.1",
]
),
"django2x": (
[
"django-cors-headers==3.11.0",
"django>=2,<3",
"django-stubs==1.9.0",
"gunicorn",
"python-dotenv==1.0.1",
]
),
"drf": (
[
"adrf",
"django-cors-headers",
"django>=4",
"django-stubs",
"djangorestframework",
"gunicorn",
"uvicorn",
"python-dotenv==1.0.1",
"tzdata",
]
),
}
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.26.1",
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"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.27.2",
"pycryptodome<3.21.0",
"tldextract<5.1.3",
"asgiref>=3.4.1,<4",
"typing_extensions>=4.1.1,<5.0.0",
"Deprecated<1.3.0",
"phonenumbers<9",
"twilio<10",
"aiosmtplib>=1.1.6,<4.0.0",
"pkce<1.1.0",
"pyotp<3",
],
python_requires=">=3.8",
include_package_data=True,
extras_require=extras_require,
)