-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python implementation with native Rust module (#547)
* add rust pyo3 python module project * start vault integration * implement more commands in python rust lib * move rust cli to library so it can be reused * improve python cli * support anyhow errors and streamline error handling * add global cli options * pass global options for vault init * enable command aliases for typer * update library name * add readme * implement more functions * add version flag that uses rust module version * update readme with dev instructions * update cargo config, move gha workflow to correct place * update gha workflows * add pyo3 to integration tests * fix bin path for pyo3 * try to fix path for maturin workflow * ci fixes * overwrite vault with pyo3 after testing other python version * skip linux arm * remove zig with sccache * remove extra test * only run maturing build when there are relevant changes * add short command aliases and options with usage texts * cli fixes * format args * fix short arg name * fix args for lookup * ensure lookup output gets printed * Update Cargo.lock * cargo update * rename version number function * remove unused quiet arg for delete * fix secret name in delete check * fix exists call 🤦 * cli help improvements and unification * version 1.0.0 * enable anyhow feature for pyo3 for automatic anyhow error conversion * update usage, remove unnecessary default values * update error conversion function name * update function name * doc and comments tweaks * rename n_vault to p_vault to avoid conflict with other python vault * test having both python vaults at the same time in integration tests * use `pvault` for new python vault * rename modules and project to avoid conflicts with old vault * add integration test with pyo3 * fix node lookup command * longer headers for help output * enable optimizations for debug profile for pip install * update readme after command name change * reuse the cli arg parsing from rust for python * don't print wait animation for non-interactive terminals * add docstrings for new cli run functions * add all supported python versions to wheel build (3.9 - 3.13) * update maturin config for building * remove aws sts client wrapper function * update release workflow * update pyproject files to match * remove python versions from linux build since it uses docker * change new vault to use `vault` command and update integration tests * try using zig for linux cross-compile * fix secret names in integration tests * nicer error handling for python vault * update macos runners to 13 and latest since 12 is being deprecated * use abi3 for common wheels * only run python release for `python-` version tags * fix vault script name in help and update readme * add `--force-reinstall` for pip to ensure vault gets installed * rename gha from `maturin` to `python-wheel`
- Loading branch information
Showing
27 changed files
with
4,222 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.