Skip to content

Commit 7846cdf

Browse files
committed
feat: switch from casbin to pycasbin
1 parent 7edf57a commit 7846cdf

4 files changed

Lines changed: 202 additions & 32 deletions

File tree

dev-requirements.in

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
fastapi
2-
casbin >= 1.0.0
3-
pytest
4-
pip-tools
1+
-r requirements.txt
2+
packaging >= 23.1
3+
setuptools <= 67.8.0
4+
pytest >= 8.0.0
5+
pip-tools >= 7.5.0
56
pytest-cov
67
bumpversion
7-
uvicorn
8+
uvicorn >= 0.18.0
89
starlette-auth-toolkit
9-
requests
10+
httpx
11+
requests >= 2.28.0
1012
twine
1113
build
1214
pyjwt

dev-requirements.txt

Lines changed: 154 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,181 @@
1-
atomicwrites==1.4.0
2-
attrs==20.3.0
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
316
bleach==3.3.0
4-
bracex==2.2.1
5-
build==0.3.0
17+
# via readme-renderer
18+
build==1.3.0
19+
# via
20+
# -r dev-requirements.in
21+
# pip-tools
622
bump2version==1.0.1
23+
# via bumpversion
724
bumpversion==0.6.0
8-
casbin==1.12.0
25+
# via -r dev-requirements.in
926
certifi==2020.12.5
10-
chardet==4.0.0
11-
click==7.1.2
27+
# via
28+
# httpx
29+
# requests
30+
charset-normalizer==3.4.3
31+
# via requests
32+
click==8.1.8
33+
# via
34+
# pip-tools
35+
# uvicorn
1236
colorama==0.4.4
37+
# via
38+
# build
39+
# click
40+
# pytest
41+
# twine
1342
coverage==5.4
43+
# via pytest-cov
1444
docutils==0.16
15-
fastapi==0.63.0
45+
# via readme-renderer
46+
exceptiongroup==1.3.0
47+
# via
48+
# -r requirements.txt
49+
# anyio
50+
# pytest
51+
fastapi==0.116.1
52+
# via -r requirements.txt
1653
h11==0.12.0
17-
idna==2.10
54+
# via
55+
# httpcore
56+
# uvicorn
57+
httpcore==0.13.3
58+
# via httpx
59+
httpx==0.25.1
60+
# via -r dev-requirements.in
61+
idna==3.10
62+
# via
63+
# -r requirements.txt
64+
# anyio
65+
# httpx
66+
# requests
67+
importlib-metadata==8.7.0
68+
# via build
1869
iniconfig==1.1.1
70+
# via pytest
1971
keyring==22.3.0
20-
packaging==20.9
21-
pep517==0.9.1
22-
pip-tools==5.5.0
72+
# via twine
73+
packaging==25.0
74+
# via
75+
# -r dev-requirements.in
76+
# bleach
77+
# build
78+
# pytest
79+
pip-tools==7.5.0
80+
# via -r dev-requirements.in
2381
pkginfo==1.7.0
24-
pluggy==0.13.1
25-
py==1.10.0
26-
pydantic==1.7.3
82+
# via twine
83+
pluggy==1.6.0
84+
# via pytest
85+
pycasbin==2.0.0
86+
# via -r requirements.txt
87+
pydantic==2.11.7
88+
# via
89+
# -r requirements.txt
90+
# fastapi
91+
pydantic-core==2.33.2
92+
# via
93+
# -r requirements.txt
94+
# pydantic
2795
pygments==2.8.0
96+
# via
97+
# pytest
98+
# readme-renderer
2899
pyjwt==2.3.0
29-
pyparsing==2.4.7
100+
# via -r dev-requirements.in
101+
pyproject-hooks==1.2.0
102+
# via
103+
# build
104+
# pip-tools
105+
pytest==8.4.1
106+
# via
107+
# -r dev-requirements.in
108+
# pytest-cov
30109
pytest-cov==2.11.1
31-
pytest==7.1.2
110+
# via -r dev-requirements.in
32111
pywin32-ctypes==0.2.0
112+
# via keyring
33113
readme-renderer==29.0
114+
# via twine
115+
requests==2.32.4
116+
# via
117+
# -r dev-requirements.in
118+
# requests-toolbelt
119+
# twine
34120
requests-toolbelt==0.9.1
35-
requests==2.25.1
121+
# via twine
36122
rfc3986==1.4.0
37-
simpleeval==0.9.11
123+
# via twine
124+
simpleeval==1.0.3
125+
# via
126+
# -r requirements.txt
127+
# pycasbin
38128
six==1.15.0
129+
# via
130+
# bleach
131+
# readme-renderer
132+
sniffio==1.3.1
133+
# via
134+
# -r requirements.txt
135+
# anyio
136+
# httpcore
137+
# httpx
138+
starlette==0.47.2
139+
# via
140+
# -r requirements.txt
141+
# fastapi
142+
# starlette-auth-toolkit
39143
starlette-auth-toolkit==0.5.0
40-
starlette==0.13.6
41-
toml==0.10.2
144+
# via -r dev-requirements.in
145+
tomli==2.2.1
146+
# via
147+
# build
148+
# pip-tools
149+
# pytest
42150
tqdm==4.58.0
151+
# via twine
43152
twine==3.3.0
153+
# via -r dev-requirements.in
154+
typing-extensions==4.14.1
155+
# via
156+
# -r requirements.txt
157+
# anyio
158+
# exceptiongroup
159+
# fastapi
160+
# pydantic
161+
# pydantic-core
162+
# starlette
163+
# typing-inspection
164+
# uvicorn
165+
typing-inspection==0.4.1
166+
# via
167+
# -r requirements.txt
168+
# pydantic
44169
urllib3==1.26.3
45-
uvicorn==0.13.4
46-
wcmatch==8.3
170+
# via requests
171+
uvicorn==0.35.0
172+
# via -r dev-requirements.in
47173
webencodings==0.5.1
174+
# via bleach
175+
wheel==0.45.1
176+
# via pip-tools
177+
zipp==3.23.0
178+
# via importlib-metadata
48179

49180
# The following packages are considered to be unsafe in a requirements file:
50181
# 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)