Skip to content
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

Conversation

tangowithfoxtrot
Copy link
Contributor

@tangowithfoxtrot tangowithfoxtrot commented Nov 27, 2023

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

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 interpreter
  • languages/python/pyproject.toml: replaces setup.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 by pyproject.toml

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)

tangowithfoxtrot added a commit that referenced this pull request Dec 6, 2023
## 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)
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6796730) 48.64% compared to head (df2e629) 49.34%.
Report is 5 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@tangowithfoxtrot tangowithfoxtrot marked this pull request as ready for review January 8, 2024 19:15
@tangowithfoxtrot tangowithfoxtrot changed the title Sm 989 create build and publish pipelines for the python language wrapper Sm 989 create build pipeline for the python language wrapper Jan 10, 2024
Copy link
Contributor

@Thomas-Avery Thomas-Avery left a 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.

.github/workflows/build-python-wheels.yml Outdated Show resolved Hide resolved
@tangowithfoxtrot tangowithfoxtrot requested a review from a team January 10, 2024 17:30
@tangowithfoxtrot tangowithfoxtrot merged commit 9cad470 into main Jan 18, 2024
49 checks passed
@tangowithfoxtrot tangowithfoxtrot deleted the SM-989-create-build-and-publish-pipelines-for-the-python-language-wrapper branch January 18, 2024 15:09
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.

6 participants