From 997857144452f8c2a05c067953cf1e955f087390 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Fri, 11 Aug 2023 23:26:44 -0700 Subject: [PATCH] Use git LFS during builds, 0.2.3 --- .github/workflows/python-publish.yml | 46 +++++++++++++++++----------- setup.py | 4 ++- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b8881131..1f3d5d8a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,30 +8,40 @@ name: Upload Python Package -on: workflow_dispatch +on: + workflow_dispatch: + push: + tags: + - v* permissions: contents: read jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - name: Checkout Git LFS + uses: actions/checkout@v3 + with: + lfs: "true" + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.x" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build package + run: python -m build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 34bfecb0..6af09de4 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ setup( name="livekit", - version="0.2.2", + version="0.2.3", description="LiveKit Python Client SDK for LiveKit", long_description=long_description, long_description_content_type="text/markdown", @@ -39,6 +39,7 @@ ], keywords="webrtc, livekit", + license="Apache-2.0", packages=["livekit"], python_requires=">=3.7, <4", install_requires=["pyee>=11.0.0", @@ -47,6 +48,7 @@ "livekit": ['lib/*/*/*.*', '_proto/*.py'], }, project_urls={ + "Documentation": "https://docs.livekit.io", "Website": "https://livekit.io/", "Source": "https://github.com/livekit/client-sdk-python/", },