From ea5d2d6dab640de1e5ec51daee9478f63a3d6204 Mon Sep 17 00:00:00 2001 From: Mario Garcia Date: Thu, 27 Jun 2024 19:00:54 +0200 Subject: [PATCH] Update python-app.yml Change source distribution builds to use `build` instead of the setup.py file. --- .github/workflows/python-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 9ad33fa..42e86f1 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,12 +26,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest setuptools wheel + pip install flake8 pytest setuptools wheel build if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install . - name: Build binary wheel and source tarball run: | - python setup.py sdist bdist_wheel + python -m build --sdist --wheel - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names