From bb7541780ad7ce0a8c3a2681b21e73c71df246fe Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Mon, 27 Mar 2023 17:59:04 +0200 Subject: [PATCH] Stop building wheel from Git checkout in CI/CD When python -m build is invoked with --sdist and/or --wheel args, both artifacts get created from source. This is bad because it differs from what pip does when it needs to build a package from the source distribution before installation. --- .github/workflows/pypi-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 90e026a..5af3acc 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -19,7 +19,7 @@ jobs: # https://pypa-build.readthedocs.io run: | python -m pip install build - python -m build --sdist --wheel + python -m build - name: Publish 📦 to PyPI # https://github.com/pypa/gh-action-pypi-publish