Skip to content

Commit a16e535

Browse files
committed
add build sdist and fix EOL
1 parent 2345ad1 commit a16e535

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,21 @@ jobs:
4141
with:
4242
name: onepassword-sdk-${{ env.SDK_VERSION }}-${{ matrix.os }}
4343
path: ./wheelhouse/*.whl
44+
45+
build-sdist:
46+
name: Build source distribution for Python SDK
47+
runs-on: ubuntu-latest
48+
needs: build_wheels
49+
steps:
50+
# Need to grab the SDK version for the wheel name
51+
- name: Extract SDK Version
52+
run: echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV
53+
54+
- uses: actions/checkout@v4
55+
- name: Build source distribution
56+
run: python -m build --sdist
57+
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: onepassword-sdk-${{ env.SDK_VERSION }}
61+
path: ./wheelhouse/*.tar.gz

example/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,4 +375,4 @@ async def create_attach_and_delete_file_field_item(client: Client):
375375

376376

377377
if __name__ == "__main__":
378-
asyncio.run(main())
378+
asyncio.run(main())

0 commit comments

Comments
 (0)