This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPipfile
47 lines (42 loc) · 1.63 KB
/
Pipfile
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
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
fastapi = ">=0.68.0,<1"
uvicorn = {version = ">=0.13.3,<1", extras = ["standard"]}
jinja2 = ">=2.11.3,<3"
aiofiles = ">=0.6.0,<1"
python-multipart = ">=0.0.5,<1"
pydantic = {extras = ["email"], version = ">=1.8.1,<2"}
alembic = ">=1.5.8,<2"
gino = ">=1.0.1,<2"
starlette = ">=0.13.6,<1"
psycopg2-binary = ">=2.8.6,<3"
argon2-cffi = ">=20.1.0,<21"
pyjwt = ">=2.0.1,<3"
sqlalchemy = ">=1.2,<2"
expiringdict = ">=1.2.1,<2"
fido2 = ">=0.9.1,<1"
[dev-packages]
black = "*"
flake8 = "*"
isort = "*"
pre-commit = "*"
[requires]
python_version = "3.9"
[pipenv]
allow_prereleases = true
[scripts]
web = "uvicorn web.main:app --reload"
# The fido2 library only verifies origins with http*s* in the url. Therefore you have to
# use an https connection. For testing you can just generate a self signed certificate
# with the command below and then run ``pipenv run web_secure``
# openssl req -x509 -out localhost.crt -keyout localhost.key \ ─╯
# -newkey rsa:2048 -nodes -sha256 \
# -subj '/CN=localhost' -extensions EXT -config <( \
# printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
web_secure = "uvicorn web.main:app --host localhost --reload --ssl-keyfile localhost.key --ssl-certfile localhost.crt"
lint = "pre-commit run --all-files"
precommit = "pre-commit install"
migrations = "alembic upgrade head"