-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sm 989 create build pipeline for the python language wrapper #369
Sm 989 create build pipeline for the python language wrapper #369
Conversation
## Type of change - [ ] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [x] Build/deploy pipeline (DevOps) - [x] Other ## Objective Rename the Python package. This should be merged before #369. ## Code changes - **`languages/python/setup.py`:** Rename package - **`languages/python/bitwarden_sdk`:** Rename directory to match package name - **`.gitignore`:** Changed path to `schemas.py` - **`.github/workflows/generate_schemas.yml`:** Changed path to `schemas.py` ## Before you submit - Please add **unit tests** where it makes sense to do so (encouraged but not required)
python3 bin does not exist on newer container images
…for-the-python-language-wrapper
This reverts commit 85490df.
…r-the-python-language-wrapper
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
==========================================
+ Coverage 48.64% 49.34% +0.69%
==========================================
Files 152 154 +2
Lines 7277 7373 +96
==========================================
+ Hits 3540 3638 +98
+ Misses 3737 3735 -2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one minor recommendation.
Type of change
Objective
Package the Python SDK so that it can be published to PyPI.org.
Code changes
.github/workflows/build-python-wheels.yml
: create wheels for Linux, macOS, and Windows (AMD64-only). A sdist is also created for other platforms.languages/python/BitwardenClient/__init__.py
: export functions and classes for autocompletion in IDEs and the interactive Python interpreterlanguages/python/pyproject.toml
: replacessetup.py
, which is no longer officially supported. This uses Maturin to build the Rust shared-object library that will be bundled with the SDK.languages/python/setup.py
: replaced bypyproject.toml
Before you submit