Skip to content

Conversation

@Chimou0
Copy link
Contributor

@Chimou0 Chimou0 commented Oct 8, 2025

feat: use dynamic version instead of hardcoded value.
The original code hardcoded the versions of casbin-python-cli and pycasbin, which caused the displayed versions to be inconsistent with the actual versions.

__version__ = "1.0.0"

print("pycasbin 1.17.0")

The code has been updated to fetch the casbin-python-cli version from the Git commit tag and to dynamically retrieve the installed pycasbin package version from the current environment.

@hsluoyz hsluoyz changed the title feat: use dynamic version instead of hardcoded value feat: use runtime version numbers instead of hard-coded values Oct 8, 2025
@hsluoyz hsluoyz merged commit 503fea6 into casbin:master Oct 8, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants