Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Build Wheels for Python SDK

on:
push:
branches:
# Release branches
- "sdk-core/*"
# Allow manual triggering of the workflow
workflow_dispatch:
inputs:
build-wheels:
Expand Down Expand Up @@ -47,4 +42,22 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: onepassword-sdk-${{ env.SDK_VERSION }}-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
path: ./wheelhouse/*.whl

build-sdist:
name: Build source distribution for Python SDK
runs-on: ubuntu-latest
needs: build_wheels
steps:
# Need to grab the SDK version for the wheel name
- name: Extract SDK Version
run: echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV

- uses: actions/checkout@v4
- name: Build source distribution
run: python -m build --sdist

- uses: actions/upload-artifact@v4
with:
name: onepassword-sdk-${{ env.SDK_VERSION }}
path: ./wheelhouse/*.tar.gz
2 changes: 1 addition & 1 deletion example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def main():
)
print(code)
# [developer-docs.sdk.python.resolve-totp-code]-end

# hello
# [developer-docs.sdk.python.get-totp-item-crud]-start
# Fetch a totp code from the item
for f in created_item.fields:
Expand Down
Loading