Skip to content

Commit 395df16

Browse files
committed
feat: switch from casbin to pycasbin
1 parent 7edf57a commit 395df16

4 files changed

Lines changed: 197 additions & 25 deletions

File tree

dev-requirements.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
fastapi
2-
casbin >= 1.0.0
1+
-r requirements.txt
32
pytest
4-
pip-tools
3+
pip-tools >= 7.5.0
54
pytest-cov
65
bumpversion
7-
uvicorn
6+
uvicorn >= 0.18.0
87
starlette-auth-toolkit
9-
requests
8+
httpx
9+
requests >= 2.28.0
1010
twine
1111
build
1212
pyjwt

dev-requirements.txt

Lines changed: 152 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,185 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile dev-requirements.in
6+
#
7+
annotated-types==0.7.0
8+
# via
9+
# -r requirements.txt
10+
# pydantic
11+
anyio==4.10.0
12+
# via
13+
# -r requirements.txt
14+
# httpx
15+
# starlette
116
atomicwrites==1.4.0
17+
# via pytest
218
attrs==20.3.0
19+
# via pytest
320
bleach==3.3.0
4-
bracex==2.2.1
5-
build==0.3.0
21+
# via readme-renderer
22+
build==1.3.0
23+
# via
24+
# -r dev-requirements.in
25+
# pip-tools
626
bump2version==1.0.1
27+
# via bumpversion
728
bumpversion==0.6.0
8-
casbin==1.12.0
29+
# via -r dev-requirements.in
930
certifi==2020.12.5
10-
chardet==4.0.0
11-
click==7.1.2
31+
# via
32+
# httpx
33+
# requests
34+
charset-normalizer==3.4.3
35+
# via requests
36+
click==8.1.8
37+
# via
38+
# pip-tools
39+
# uvicorn
1240
colorama==0.4.4
41+
# via
42+
# build
43+
# click
44+
# pytest
45+
# twine
1346
coverage==5.4
47+
# via pytest-cov
1448
docutils==0.16
15-
fastapi==0.63.0
49+
# via readme-renderer
50+
exceptiongroup==1.3.0
51+
# via
52+
# -r requirements.txt
53+
# anyio
54+
fastapi==0.116.1
55+
# via -r requirements.txt
1656
h11==0.12.0
17-
idna==2.10
57+
# via
58+
# httpcore
59+
# uvicorn
60+
httpcore==0.13.3
61+
# via httpx
62+
httpx==0.25.1
63+
# via -r dev-requirements.in
64+
idna==3.10
65+
# via
66+
# -r requirements.txt
67+
# anyio
68+
# httpx
69+
# requests
70+
importlib-metadata==8.7.0
71+
# via build
1872
iniconfig==1.1.1
73+
# via pytest
1974
keyring==22.3.0
75+
# via twine
2076
packaging==20.9
21-
pep517==0.9.1
22-
pip-tools==5.5.0
77+
# via
78+
# bleach
79+
# build
80+
# pytest
81+
pip-tools==7.5.0
82+
# via -r dev-requirements.in
2383
pkginfo==1.7.0
84+
# via twine
2485
pluggy==0.13.1
86+
# via pytest
2587
py==1.10.0
26-
pydantic==1.7.3
88+
# via pytest
89+
pycasbin==2.0.0
90+
# via -r requirements.txt
91+
pydantic==2.11.7
92+
# via
93+
# -r requirements.txt
94+
# fastapi
95+
pydantic-core==2.33.2
96+
# via
97+
# -r requirements.txt
98+
# pydantic
2799
pygments==2.8.0
100+
# via readme-renderer
28101
pyjwt==2.3.0
102+
# via -r dev-requirements.in
29103
pyparsing==2.4.7
30-
pytest-cov==2.11.1
104+
# via packaging
105+
pyproject-hooks==1.2.0
106+
# via
107+
# build
108+
# pip-tools
31109
pytest==7.1.2
110+
# via
111+
# -r dev-requirements.in
112+
# pytest-cov
113+
pytest-cov==2.11.1
114+
# via -r dev-requirements.in
32115
pywin32-ctypes==0.2.0
116+
# via keyring
33117
readme-renderer==29.0
118+
# via twine
119+
requests==2.32.4
120+
# via
121+
# -r dev-requirements.in
122+
# requests-toolbelt
123+
# twine
34124
requests-toolbelt==0.9.1
35-
requests==2.25.1
125+
# via twine
36126
rfc3986==1.4.0
37-
simpleeval==0.9.11
127+
# via twine
128+
simpleeval==1.0.3
129+
# via
130+
# -r requirements.txt
131+
# pycasbin
38132
six==1.15.0
133+
# via
134+
# bleach
135+
# readme-renderer
136+
sniffio==1.3.1
137+
# via
138+
# -r requirements.txt
139+
# anyio
140+
# httpcore
141+
# httpx
142+
starlette==0.47.2
143+
# via
144+
# -r requirements.txt
145+
# fastapi
146+
# starlette-auth-toolkit
39147
starlette-auth-toolkit==0.5.0
40-
starlette==0.13.6
41-
toml==0.10.2
148+
# via -r dev-requirements.in
149+
tomli==2.2.1
150+
# via
151+
# build
152+
# pip-tools
153+
# pytest
42154
tqdm==4.58.0
155+
# via twine
43156
twine==3.3.0
157+
# via -r dev-requirements.in
158+
typing-extensions==4.14.1
159+
# via
160+
# -r requirements.txt
161+
# anyio
162+
# exceptiongroup
163+
# fastapi
164+
# pydantic
165+
# pydantic-core
166+
# starlette
167+
# typing-inspection
168+
# uvicorn
169+
typing-inspection==0.4.1
170+
# via
171+
# -r requirements.txt
172+
# pydantic
44173
urllib3==1.26.3
45-
uvicorn==0.13.4
46-
wcmatch==8.3
174+
# via requests
175+
uvicorn==0.35.0
176+
# via -r dev-requirements.in
47177
webencodings==0.5.1
178+
# via bleach
179+
wheel==0.45.1
180+
# via pip-tools
181+
zipp==3.23.0
182+
# via importlib-metadata
48183

49184
# The following packages are considered to be unsafe in a requirements file:
50185
# pip

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
fastapi
2-
casbin
2+
pycasbin >= 2.0.0

requirements.txt

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
1-
casbin
2-
fastapi
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile requirements.in
6+
#
7+
annotated-types==0.7.0
8+
# via pydantic
9+
anyio==4.10.0
10+
# via starlette
11+
exceptiongroup==1.3.0
12+
# via anyio
13+
fastapi==0.116.1
14+
# via -r requirements.in
15+
idna==3.10
16+
# via anyio
17+
pycasbin==2.0.0
18+
# via -r requirements.in
19+
pydantic==2.11.7
20+
# via fastapi
21+
pydantic-core==2.33.2
22+
# via pydantic
23+
simpleeval==1.0.3
24+
# via pycasbin
25+
sniffio==1.3.1
26+
# via anyio
27+
starlette==0.47.2
28+
# via fastapi
29+
typing-extensions==4.14.1
30+
# via
31+
# anyio
32+
# exceptiongroup
33+
# fastapi
34+
# pydantic
35+
# pydantic-core
36+
# starlette
37+
# typing-inspection
38+
typing-inspection==0.4.1
39+
# via pydantic

0 commit comments

Comments
 (0)