Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Update release workflow (#2278)

Edgar Riba2a45a5ed160b
diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml
index c6c587f4e..da94892f2 100644
--- a/.github/workflows/pypi-release.yml
+++ b/.github/workflows/pypi-release.yml
@@ -17,12 +17,10 @@ jobs:
python-version: 3.7
- name: Install dependencies
- run: python -m pip install --user --upgrade setuptools wheel
+ run: python -m pip install --user --upgrade setuptools build
- name: Build source
- env:
- KORNIA_RELEASE: 1
run: |
- python setup.py sdist bdist_wheel
+ python -m build --outdir dist/
ls -lh dist/
- uses: actions/upload-artifact@v2
@@ -30,36 +28,6 @@ jobs:
name: pypi-packages-${{ github.sha }}
path: dist
- #build-wheels:
- # runs-on: ${{ matrix.os }}
- # needs: build-sdist
- # strategy:
- # fail-fast: true
- # max-parallel: 1
- # matrix:
- # os: [ubuntu-20.04, macOS-10.15, windows-2019]
- # #python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
- # steps:
- # - uses: actions/checkout@master
- # - uses: actions/download-artifact@v2
- # with:
- # name: pypi-packages-${{ github.sha }}
- # path: dist
- #
- # - name: Building wheels
- # uses: pypa/[email protected]
- # env:
- # KORNIA_RELEASE: 1
- # # Disable building PyPy wheels on all platforms
- # CIBW_SKIP: cp27-* cp35-* pp*
- # with:
- # output-dir: dist
- #
- # - uses: actions/upload-artifact@v2
- # with:
- # name: pypi-packages-${{ github.sha }}
- # path: dist
-
upload-packages:
runs-on: ubuntu-20.04
needs: build-sdist