Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
28c36f7
fix unit test that was added to pass the coverage test
Jan 23, 2021
f9fafe3
chore: add senmantic.yml
leeqvip Jan 26, 2021
d732f9c
fix: role manager with matching_func
abichinger Jan 26, 2021
95bf3c3
chore(release): 0.16.1 [skip ci]
semantic-release-bot Jan 29, 2021
5c0062e
docs: switch CI to travis-ci.com
hsluoyz Feb 2, 2021
54bfbb9
perf: remove duplicated check (#117)
Zxilly Feb 3, 2021
1998f03
chore(release): 0.16.2 [skip ci]
semantic-release-bot Feb 3, 2021
b113417
feat: add update_policy()
Zxilly Feb 2, 2021
2de5c46
chore(release): 0.17.0 [skip ci]
semantic-release-bot Feb 19, 2021
88b2811
feat: add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enfo…
Zxilly Feb 23, 2021
a112c7f
chore(release): 0.18.0 [skip ci]
semantic-release-bot Feb 23, 2021
44df9a7
perf: reposition build_role_links()
Zxilly Feb 25, 2021
1704a07
chore(release): 0.18.1 [skip ci]
semantic-release-bot Feb 25, 2021
ef4da2a
fix: typo
Zxilly Mar 2, 2021
2a4ad0f
chore(release): 0.18.2 [skip ci]
semantic-release-bot Mar 2, 2021
5c23583
perf: refacto & improve performance
Mar 12, 2021
6693ba6
chore(release): 0.18.3 [skip ci]
semantic-release-bot Mar 12, 2021
2a2fb04
perf: Added code to convert config value to different types
divyagar Mar 16, 2021
5fe3bb6
chore(release): 0.18.4 [skip ci]
semantic-release-bot Mar 17, 2021
1182339
feat: Added dispatcher class
divyagar Mar 17, 2021
0f6e2ec
chore(release): 0.19.0 [skip ci]
semantic-release-bot Mar 18, 2021
7b50544
fix: relocate unittest and fix file path
Zxilly Mar 18, 2021
22bbf91
chore(release): 0.19.1 [skip ci]
semantic-release-bot Mar 18, 2021
c51cf54
chore: switch to GitHub Actions
leeqvip Mar 25, 2021
bbdfc2b
fix: Added checks in init_with_model_and_adapter in CoreEnforcer
divyagar Apr 1, 2021
2096b49
chore(release): 0.19.2 [skip ci]
semantic-release-bot Apr 1, 2021
c0ace8b
feat: added distributed enforcer file along with respective unit tests
divyagar Mar 18, 2021
bf195cc
refactor: made necessary changes in DistributedEnforcer and Policy cl…
divyagar Apr 2, 2021
b4bea41
chore(release): 0.20.0 [skip ci]
semantic-release-bot Apr 6, 2021
e46dbd8
feat: add EnforceEx (#134)
Zxilly Apr 6, 2021
8bf307b
chore(release): 1.0.0 [skip ci]
semantic-release-bot Apr 6, 2021
d31a0e5
fix: wrong domain length judge and bug in build_incremental_role_link…
leeqvip Apr 9, 2021
3a9e0fc
chore(release): 1.0.1 [skip ci]
semantic-release-bot Apr 9, 2021
8ce32b0
fix: rename enforceEx() to enforce_ex() (#143)
Zxilly Apr 12, 2021
44a145f
chore(release): 1.0.2 [skip ci]
semantic-release-bot Apr 12, 2021
b0cfd3c
fix: r.user.name -> r_user_name instead of r_user.name in ABAC model
cnlzxin Apr 22, 2021
e3935f3
chore(release): 1.0.3 [skip ci]
semantic-release-bot Apr 23, 2021
effdceb
perf: remove unused variable
Zxilly Apr 23, 2021
ca211a5
chore(release): 1.0.4 [skip ci]
semantic-release-bot Apr 24, 2021
d2a492e
ci: remove python 3.5
Zxilly May 11, 2021
52cd70e
fix: replace fnmatch with wcmatch for glob match, keep same behavior …
Zxilly May 12, 2021
1606721
chore(release): 1.0.5 [skip ci]
semantic-release-bot May 12, 2021
a3fc29a
fix: optimized install_requires parsing process
ffyuanda May 12, 2021
204414a
chore(release): 1.0.6 [skip ci]
semantic-release-bot May 13, 2021
11e3952
feat: Use named loggers (#153)
tl24 May 16, 2021
02346ad
fix: enforce_ex now works fine when it was disabled
Zxilly May 23, 2021
a8063aa
chore(release): 1.1.0 [skip ci]
semantic-release-bot May 23, 2021
a1024af
fix: function 'keyMatch3' not defined
May 24, 2021
7d5f788
chore(release): 1.1.1 [skip ci]
semantic-release-bot May 24, 2021
ce37170
refactor: refactor ManagementEnforcer.update_policy and update_polici…
sheny1xuan Jun 4, 2021
a2912bc
fix: start auto loading policy for SyncedEnforcer
jetz Jun 7, 2021
5161cff
chore(release): 1.1.2 [skip ci]
semantic-release-bot Jun 7, 2021
aa5eb71
ci: code reformatted and linter tests added (#166)
ffyuanda Jun 14, 2021
d497f95
fix: get_implicit_users_for_permission() (#168)
ffyuanda Jun 16, 2021
86cdf2f
chore(release): 1.1.3 [skip ci]
semantic-release-bot Jun 16, 2021
d389d57
ci: use "github-actions" to send release notice
ffyuanda Jun 17, 2021
eeed04b
docs: Add asynccasbin to README.
hsluoyz Jun 21, 2021
e917aaf
feat: add support for add_domain_matching_function (#165)
Zxilly Jun 27, 2021
3f470d6
chore(release): 1.2.0 [skip ci]
semantic-release-bot Jun 27, 2021
b569ed8
fix: matching_func works with multiply match (#172)
Zxilly Jun 30, 2021
7b2f634
chore(release): 1.2.1 [skip ci]
semantic-release-bot Jun 30, 2021
02f144c
feat: add API for role manager besides "g" (#173)
Zxilly Jul 4, 2021
71efb8f
chore(release): 1.3.0 [skip ci]
semantic-release-bot Jul 4, 2021
b5e943c
refactor: modify model structure (#174)
ffyuanda Jul 9, 2021
6f930c2
feat: finish up UpdateAdapter (#177)
ffyuanda Jul 19, 2021
e27fc6a
chore(release): 1.4.0 [skip ci]
semantic-release-bot Jul 19, 2021
a9d6588
feat: multiple request, policy, effect, matcher type support (#181)
ffyuanda Aug 17, 2021
c368a18
chore(release): 1.5.0 [skip ci]
semantic-release-bot Aug 17, 2021
bef5208
feat: key_match4 builtin operator added (#183)
ffyuanda Aug 27, 2021
559b4a5
chore(release): 1.6.0 [skip ci]
semantic-release-bot Aug 27, 2021
5d80518
feat: support in operator on list/set and other compound types
ffyuanda Aug 29, 2021
b4a4834
chore(release): 1.7.0 [skip ci]
semantic-release-bot Aug 29, 2021
4b9f20c
feat: PyCasbin Watcher interfaces added (#186)
ffyuanda Aug 31, 2021
9a49f7d
chore(release): 1.8.0 [skip ci]
semantic-release-bot Aug 31, 2021
bf48164
fix: fm instance property (#189)
ffyuanda Sep 16, 2021
4715dca
chore(release): 1.8.1 [skip ci]
semantic-release-bot Sep 16, 2021
578faee
feat: add explicit priority support (#190)
ffyuanda Sep 25, 2021
1013ac9
chore(release): 1.9.0 [skip ci]
semantic-release-bot Sep 25, 2021
049bb58
fix: added utf8 encoding (#194)
SwagatSBhuyan Sep 28, 2021
b23cca3
chore(release): 1.9.1 [skip ci]
semantic-release-bot Sep 28, 2021
bf51136
fix: 'keyMatch4' not defined(#198) (#199)
leeqvip Sep 29, 2021
f52ab23
chore(release): 1.9.2 [skip ci]
semantic-release-bot Sep 29, 2021
4cde5cb
fix: update simpleeval version to 0.9.11
elfisworking Oct 24, 2021
8532d6a
chore(release): 1.9.3 [skip ci]
semantic-release-bot Oct 24, 2021
232d410
fix: load_policy_line function load error
elfisworking Oct 29, 2021
8915fbe
chore(release): 1.9.4 [skip ci]
semantic-release-bot Oct 29, 2021
a38abff
fix: remove_filtered_policy_returns_effects inconsistent input with r…
Abingcbc Nov 12, 2021
2912d61
chore(release): 1.9.5 [skip ci]
semantic-release-bot Nov 12, 2021
fad498d
fix: replace build_role_links with build_incremental_role_links
Abingcbc Nov 11, 2021
9f645bd
chore(release): 1.9.6 [skip ci]
semantic-release-bot Nov 12, 2021
d6f7f31
fix: reimplement default role manager
abichinger Nov 5, 2021
dd6ff0b
test: replace assertCountEqual(a,b) with assertEqual(sorted(a), sorte…
abichinger Nov 7, 2021
db149b7
chore(release): 1.9.7 [skip ci]
semantic-release-bot Nov 18, 2021
2d01769
feat: port the test case of add_function() example to pycasbin (#217)
sallycaoyu Nov 20, 2021
6c85912
chore(release): 1.10.0 [skip ci]
semantic-release-bot Nov 20, 2021
74b8b9a
fix: linter bug in test_enforcer.py
sallycaoyu Nov 20, 2021
7053fb8
chore(release): 1.10.1 [skip ci]
semantic-release-bot Nov 21, 2021
69c1b1c
feat: ignore policies with domain when get_implicit_permissions_for_user
timabilov Nov 19, 2021
ae4e60c
chore(release): 1.11.0 [skip ci]
semantic-release-bot Nov 21, 2021
0673503
fix: add glob_match() test cases from Go to Python
sallycaoyu Nov 21, 2021
f6a8e80
chore(release): 1.11.1 [skip ci]
semantic-release-bot Nov 21, 2021
3b29d9a
feat: support matching functions to filter policies (#222)
timabilov Nov 27, 2021
44d4fb1
chore(release): 1.12.0 [skip ci]
semantic-release-bot Nov 27, 2021
306e340
feat: get implicit permissions filter policies domain by matching fun…
timabilov Dec 8, 2021
31db406
chore(release): 1.13.0 [skip ci]
semantic-release-bot Dec 8, 2021
e9bf5f7
feat: casbin_js_get_permission_for_user (#229)
Abingcbc Dec 9, 2021
fae0ff6
chore(release): 1.14.0 [skip ci]
semantic-release-bot Dec 9, 2021
36a9b62
feat: subject priority (#231)
Abingcbc Dec 11, 2021
fda7c7b
chore(release): 1.15.0 [skip ci]
semantic-release-bot Dec 11, 2021
6368ec9
perf: add pytest-benchmark and judge whether use regex in rabc (#228)
sheny1xuan Dec 13, 2021
863b018
chore(release): 1.15.1 [skip ci]
semantic-release-bot Dec 13, 2021
46dada7
fix: Apache 2.0 license headers (#233)
Abingcbc Dec 15, 2021
87f0ca2
chore(release): 1.15.2 [skip ci]
semantic-release-bot Dec 15, 2021
1b96599
fix: disabled casbin should allow all requests (#235)
timabilov Dec 17, 2021
bbbc940
perf: judge whether use domain_matching_func (#232)
abichinger Dec 17, 2021
571bf8c
chore(release): 1.15.2 [skip ci]
semantic-release-bot Dec 17, 2021
a5716be
Delete FUNDING.yml
hsluoyz Dec 20, 2021
07f2277
Add link to README.
hsluoyz Jan 2, 2022
bb6e3e3
fix: #239, not allowing more than 9 types of policies/requests
leeqvip Jan 13, 2022
f2c9186
chore(release): 1.15.3 [skip ci]
semantic-release-bot Jan 13, 2022
932064f
fix: #238, avoid calling has_eval in enforcing loop (#240)
etienne-lebrun Jan 13, 2022
bc189ec
chore(release): 1.15.4 [skip ci]
semantic-release-bot Jan 13, 2022
442b657
fix: load policy override role manager (#252)
Abingcbc Apr 16, 2022
ff67d6e
chore(release): 1.15.5 [skip ci]
semantic-release-bot Apr 16, 2022
5b4d8aa
feat: update_filtered_policies (#249)
Shivansh-yadav13 Apr 27, 2022
501b75d
chore(release): 1.16.0 [skip ci]
semantic-release-bot Apr 27, 2022
474639b
fix: add lint config (#255)
Shivansh-yadav13 Apr 29, 2022
737adc4
chore(release): 1.16.1 [skip ci]
semantic-release-bot Apr 29, 2022
871b9b2
fix: allow permissions management to use additional p-types (#256)
Nekotoxin Apr 30, 2022
1679b70
chore(release): 1.16.2 [skip ci]
semantic-release-bot Apr 30, 2022
0328f7d
fix: different behavior of glob_match from other casbin (#254)
Nekotoxin Apr 30, 2022
99d508f
chore(release): 1.16.3 [skip ci]
semantic-release-bot Apr 30, 2022
80b66c8
fix: avoid raising exception in remove_grouping_policy (#257)
cs1137195420 May 13, 2022
86bae96
chore(release): 1.16.4 [skip ci]
semantic-release-bot May 13, 2022
5d3468e
fix: avoid duplicate adapter entries (#259)
cs1137195420 May 20, 2022
3844b78
chore(release): 1.16.5 [skip ci]
semantic-release-bot May 20, 2022
42d8693
fix: Set the default log level to warning (#261)
Nekotoxin Jun 22, 2022
99e3e62
chore(release): 1.16.6 [skip ci]
semantic-release-bot Jun 22, 2022
3d6adf6
fix: add import statement in tests module (#264)
cs1137195420 Jun 26, 2022
2252d6e
chore(release): 1.16.7 [skip ci]
semantic-release-bot Jun 26, 2022
7b5a269
fix: add dependency for benchmark (#262)
Nekotoxin Jun 26, 2022
d99dbe7
fix: add more example of globmatch and add unit test for it (#263)
Nekotoxin Jun 26, 2022
e8f67a0
chore(release): 1.16.8 [skip ci]
semantic-release-bot Jun 26, 2022
7f285f1
fix: add benchmark for glob match (#265)
Nekotoxin Jul 10, 2022
42df75c
chore(release): 1.16.9 [skip ci]
semantic-release-bot Jul 10, 2022
5d949e4
test: update the benchmark test cases (#266)
JalinWang Jul 11, 2022
cc9ea58
fix: add key_get() for builtin_operators (#267)
cs1137195420 Jul 30, 2022
66bcef4
chore(release): 1.16.10 [skip ci]
semantic-release-bot Jul 30, 2022
f4928e6
fix: update support python version (#268)
Nekotoxin Jul 30, 2022
da4ecec
chore(release): 1.16.11 [skip ci]
semantic-release-bot Jul 30, 2022
2913bda
feat: add watcher-ex call (#269)
Nekotoxin Aug 8, 2022
4a66915
chore(release): 1.17.0 [skip ci]
semantic-release-bot Aug 8, 2022
bc5318a
fix: some typos (#270)
Nekotoxin Aug 28, 2022
8afbb61
chore(release): 1.17.1 [skip ci]
semantic-release-bot Aug 28, 2022
f0afaa4
fix: catch exceptions in synced enforcer thread (#272)
stuartbeattie84 Oct 20, 2022
e8c2639
chore(release): 1.17.2 [skip ci]
semantic-release-bot Oct 20, 2022
d633b1f
fix: load_policy changed the old model (#277)
Xhy-5000 Nov 1, 2022
3c445f8
chore(release): 1.17.3 [skip ci]
semantic-release-bot Nov 1, 2022
d372c9e
fix: fix bug in autoloader error handling (#275)
stuartbeattie84 Nov 1, 2022
015d7cc
chore(release): 1.17.4 [skip ci]
semantic-release-bot Nov 1, 2022
6bebebd
docs: click Persistence jump to related catalogue (#279)
Nov 20, 2022
edbfa8f
docs: updated broken links (#281)
r4wand Dec 1, 2022
b563043
fix: polish import grammar and remove some useless package (#282)
Dec 5, 2022
1b8ee3d
chore(release): 1.17.5 [skip ci]
semantic-release-bot Dec 5, 2022
d1a6259
Fix CI node-version to 18
hsluoyz Feb 9, 2023
5ef8f2f
fix: fix typo in remove_grouping_policies() API (#287)
gui2dev Feb 9, 2023
f0e46df
chore(release): 1.17.6 [skip ci]
semantic-release-bot Feb 9, 2023
f5bdad6
feat: revert "fix: avoid duplicate adapter entries (#259)" (#290)
hsluoyz Mar 7, 2023
335ed21
chore(release): 1.18.0 [skip ci]
semantic-release-bot Mar 7, 2023
3a62a08
fix: support escaping comma inside quote in load_policy_line()'s CSV …
terry-xuan-gao Apr 1, 2023
f12359d
chore(release): 1.18.1 [skip ci]
semantic-release-bot Apr 1, 2023
306f873
fix: load policy rule without splitting custom functions (#293)
flynndcs Apr 6, 2023
f063cbc
chore(release): 1.18.2 [skip ci]
semantic-release-bot Apr 6, 2023
44e4cec
fix: Exclude tests from package (#297)
huonw May 22, 2023
5b48029
fix: Stop including README as top-level data file in package (#296)
huonw May 22, 2023
b25c96b
chore(release): 1.18.3 [skip ci]
semantic-release-bot May 22, 2023
5ad8744
feat: Add batch_enforce() API (#298)
BustDot May 24, 2023
3fbf380
chore(release): 1.19.0 [skip ci]
semantic-release-bot May 24, 2023
4d191fe
docs: replace gitter links with discord (#302)
Selflocking Jul 6, 2023
02e0b78
feat: add auto_notify_watcher to core enforcer (#303)
BustDot Jul 7, 2023
014d8af
chore(release): 1.20.0 [skip ci]
semantic-release-bot Jul 7, 2023
79ebbb0
feat: add string adapter (#304)
BustDot Jul 10, 2023
4687c9b
chore(release): 1.21.0 [skip ci]
semantic-release-bot Jul 10, 2023
3f9475d
feat: update logger for more precise log level and format control (#306)
BustDot Jul 14, 2023
97378d3
chore(release): 1.22.0 [skip ci]
semantic-release-bot Jul 14, 2023
bc097a8
Fixed using the rbac model subjectPriority policy, loading the policy…
amisadmin Aug 2, 2023
0c72faa
feat: add AsyncEnforcer to pycasbin (#307)
BustDot Aug 6, 2023
f34bd86
chore(release): 1.23.0 [skip ci]
semantic-release-bot Aug 6, 2023
fea3508
docs: add async enforcer tutorials to README.md (#312)
BustDot Aug 7, 2023
647c4d6
fix: fix bug in add policy for priority effectors (#313)
aditya-nambiar Aug 10, 2023
19ea80a
chore(release): 1.23.1 [skip ci]
semantic-release-bot Aug 10, 2023
4c5bf83
docs: Django authorization is coming
leeqvip Aug 22, 2023
ddbb222
feat: add field_index_map and constant (#314)
BustDot Aug 27, 2023
70d4ea9
chore(release): 1.24.0 [skip ci]
semantic-release-bot Aug 27, 2023
f1af270
feat: add key_match5 function for matcher (#315)
BustDot Aug 30, 2023
e0eb7b0
chore(release): 1.25.0 [skip ci]
semantic-release-bot Aug 30, 2023
0eb8d27
feat: add get_all_roles_by_domain api (#316)
BustDot Aug 31, 2023
3151b4a
chore(release): 1.26.0 [skip ci]
semantic-release-bot Aug 31, 2023
7694177
feat: add get_implicit_users_for_resource api (#317)
BustDot Sep 3, 2023
9139c57
chore(release): 1.27.0 [skip ci]
semantic-release-bot Sep 3, 2023
2545026
feat: port fastbin to casbin (#318)
BustDot Sep 16, 2023
e02f41d
chore(release): 1.28.0 [skip ci]
semantic-release-bot Sep 16, 2023
cba6ed9
feat: Fixed the `subjectPriority` sorting algorithm and support for c…
amisadmin Sep 23, 2023
7f77c9f
chore(release): 1.29.0 [skip ci]
semantic-release-bot Sep 23, 2023
f7b4942
feat: disable logger when log is not enabled (#321)
BustDot Sep 23, 2023
6df894f
chore(release): 1.30.0 [skip ci]
semantic-release-bot Sep 23, 2023
846a5d1
feat: add temporal role model (#320)
BustDot Sep 24, 2023
586dfc4
chore(release): 1.31.0 [skip ci]
semantic-release-bot Sep 24, 2023
31153ae
fix: disabled all logger (#324)
Sep 30, 2023
c8aaf9a
chore(release): 1.31.1 [skip ci]
semantic-release-bot Sep 30, 2023
097d84f
fix: use pre defined member (#325)
premac Oct 6, 2023
780fbbf
chore(release): 1.31.2 [skip ci]
semantic-release-bot Oct 6, 2023
ff8c659
feat: fix integer priority sorting (#327)
nschwane Oct 18, 2023
cad76e0
chore(release): 1.32.0 [skip ci]
semantic-release-bot Oct 18, 2023
d116b2a
feat: change log level to warning (#329)
felixlu Oct 25, 2023
afbd63d
chore: fix release workflow (#331)
abichinger Oct 25, 2023
8402a48
chore(release): 1.33.0 [skip ci]
semantic-release-bot Oct 25, 2023
9255185
chore: semantic-release commits pyproject.toml (#332)
abichinger Oct 25, 2023
e5c6702
Update README.md
nomeguy Dec 19, 2023
15cfb61
feat: add interface stubs for async adapters (#335)
Dec 28, 2023
eb9293c
chore(release): 1.34.0 [skip ci]
semantic-release-bot Dec 28, 2023
3494375
feat: support up to Python 3.12
hsluoyz Jan 11, 2024
4cd113c
chore(release): 1.35.0 [skip ci]
semantic-release-bot Jan 11, 2024
25b7d39
feat: Added support for async watcher callbacks #340 (#341)
tanasecucliciu Feb 9, 2024
ade8462
chore(release): 1.36.0 [skip ci]
semantic-release-bot Feb 9, 2024
5ca35df
fix: FastEnforcer not fast (#344)
mbierma May 21, 2024
9c11e33
chore(release): 1.36.1 [skip ci]
semantic-release-bot May 21, 2024
0b6072a
fix: field_index is incorrect in RBAC with domains mode (#345) (#346)
truc0 Jun 11, 2024
43d2a39
chore(release): 1.36.2 [skip ci]
semantic-release-bot Jun 11, 2024
b7432a4
fix: KeyError: 'g' when build_role_links
leeqvip Jun 24, 2024
c0c6ae2
chore(release): 1.36.3 [skip ci]
semantic-release-bot Jun 24, 2024
ebdda1e
feat: enhance FilteredFileAdapter to handle flexible filtering for po…
HashCookie Nov 25, 2024
7615b5d
chore(release): 1.37.0 [skip ci]
semantic-release-bot Nov 25, 2024
35e5e90
feat: add StringAdapter's statement in init.py (#367)
barret-yzh Jan 12, 2025
dc90800
chore(release): 1.38.0 [skip ci]
semantic-release-bot Jan 12, 2025
794a5f6
feat: Port get_allowed_object_conditions() from Golang to Python (#373)
LeTeddy Mar 11, 2025
3c9d2b7
chore(release): 1.39.0 [skip ci]
semantic-release-bot Mar 11, 2025
7880b75
feat: fix bug that "!=" in policies is replaced with "not=" (#375)
LeTeddy Mar 13, 2025
5c7853d
chore(release): 1.40.0 [skip ci]
semantic-release-bot Mar 13, 2025
dad4e76
feat: add "logging_config" for PyCasbin logging (#376)
LeTeddy Mar 15, 2025
4d72265
chore(release): 1.41.0 [skip ci]
semantic-release-bot Mar 15, 2025
1f67fd6
feat: fix missing await in load_increment_filtered_policy() in async_…
KoNEW Apr 21, 2025
7d56255
chore(release): 1.42.0 [skip ci]
semantic-release-bot Apr 21, 2025
bf466dc
feat: fix CI error
hsluoyz May 10, 2025
deb0862
chore(release): 1.43.0 [skip ci]
semantic-release-bot May 10, 2025
eb94891
feat: update info
nomeguy Jun 7, 2025
5abe531
chore(release): 1.44.0 [skip ci]
semantic-release-bot Jun 7, 2025
c9feef4
feat: Optimize `load_policy_line` to avoid quadratic individual-chara…
huonw Jun 7, 2025
a9e38f3
chore(release): 1.45.0 [skip ci]
semantic-release-bot Jun 7, 2025
28219c6
support both sync and async func in add_funciton
Chimou0 Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
include = casbin/*
2 changes: 2 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Always validate the PR title AND all the commits
titleAndCommits: true
110 changes: 110 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install coveralls

- name: Run tests
run: coverage run -m unittest discover -s tests -t tests

- name: Run benchmark
run: python3 -m pytest
--benchmark-verbose
--benchmark-columns=mean,stddev,iqr,ops,rounds
tests/benchmarks/benchmark_model.py
tests/benchmarks/benchmark_management_api.py
tests/benchmarks/benchmark_role_manager.py
tests/benchmarks/benchmark_adapter.py

- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.os }} - ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

lint:
name: Run Linters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Super-Linter
uses: super-linter/super-linter@v5.7.2
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_BLACK: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
PYTHON_BLACK_CONFIG_FILE: pyproject.toml

coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
runs-on: ubuntu-latest
needs: [test, coveralls]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Setup
run: npm install

- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_CASBIN }}
run: npx semantic-release
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,10 @@ venv.bak/
# mypy
.mypy_cache/
_trial_temp
.idea
.idea

# vscode
.vscode

# node
node_modules
23 changes: 23 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"branches": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"semantic-release-pypi",
"@semantic-release/github",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Semantic Versioning Changelog"
}
],
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
"assets": ["CHANGELOG.md", "pyproject.toml"]
}
]
]
}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading