forked from fastapi-users/fastapi-users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (44 loc) · 1.55 KB
/
setup.py
File metadata and controls
49 lines (44 loc) · 1.55 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
import setuptools
def get_version(version_file: str) -> str:
with open(version_file, encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
pkg_version = get_version("src/filuta_fastapi_users/__init__.py")
setuptools.setup(
name="filuta_fastapi_users",
version=pkg_version,
author="Josef Ryzi",
author_email="josef@filuta.ai",
description="Filuta fork of fastapi-users to include OTP natively",
long_description_content_type="text/markdown",
url="",
packages=setuptools.find_packages(where="src"),
package_dir={"": "src"},
install_requires=[
"fastapi >=0.65.2",
"passlib[bcrypt] ==1.7.4",
"email-validator >=1.1.0,<2.1",
"pyjwt[crypto] ==2.12.1",
"python-multipart ==0.0.22",
"makefun >=1.11.2,<2.0.0",
"pydantic>=2.0.0,<3.0.0",
"python-dotenv",
"sqlalchemy",
],
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Framework :: FastAPI",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: Session",
"Operating System :: OS Independent",
],
python_requires=">=3.11",
include_package_data=True,
)