From cc01d252c0869f2bce580d1b9382168d5b005999 Mon Sep 17 00:00:00 2001 From: Boris Bonev Date: Tue, 27 Aug 2024 14:30:17 +0200 Subject: [PATCH] anopther try --- .github/workflows/deploy_pypi.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy_pypi.yml b/.github/workflows/deploy_pypi.yml index bfeb944..462190c 100644 --- a/.github/workflows/deploy_pypi.yml +++ b/.github/workflows/deploy_pypi.yml @@ -16,24 +16,26 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Python 3.9 uses: actions/setup-python@v5 with: python-version: "3.9" - - name: Install build tools + + - name: Install build dependencies run: | python -m pip install --upgrade pip - python -m pip install setuptools wheel build - - name: Install dependencies - run: | - python -m pip install torch - python -m pip install numpy - - name: Install package in editable mode + python -m pip install build wheel setuptools numpy + + - name: Build source distribution run: | - python -m pip install -e . - - name: Build a binary wheel and a source tarball + python -m build --sdist + + - name: Install torch and build wheel run: | - python -m build + python -m pip install torch --index-url https://download.pytorch.org/whl/cpu + python -m build --wheel + - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: