feat: add semantic-release and binary releases (#3)
Clone from repository:
git clone https://github.com/casbin/casbin-python-cli.git cd casbin-python-cli pip install -r requirements.txt
python -m casbin_cli.client [command] [options] [args] python -m casbin_cli.client enforce -m "examples/rbac_model.conf" -p "examples/rbac_policy.csv" "alice" "data1" "read" {"allow":true,"explain":null}
casbin-python-cli/ ├── .github/ │ └── workflows/ │ └── release.yml # GitHub Actions CI/CD ├── scripts/ │ ├── update_version.py # Version management │ └── build_binaries.py # Binary building ├── casbin_cli/ │ ├── __init__.py │ ├── __version__.py # Version source │ ├── client.py # Main CLI entry point │ ├── command_executor.py # Command execution │ ├── enforcer_factory.py # Enforcer creation │ ├── response.py # Response formatting │ └── utils.py # Utilities ├── examples/ # Example configurations ├── .releaserc.json # Semantic release config ├── package.json # Node.js dependencies ├── requirements.txt # Python dependencies ├── setup.py # Package setup └── README.md
Releases are automated via GitHub Actions:
main branchThis project is licensed under the Apache License 2.0 - see the LICENSE file for details.