From 457870d760773a8f7cf6b9bd7326c0230454d30c Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 27 Feb 2022 17:33:44 +0100 Subject: [PATCH] Support with and without isolation mode. --- .github/workflows/Package.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index dbb55ba..b16f2ca 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -66,24 +66,38 @@ jobs: - name: 🔨 [build] Build Python package (source distribution) if: inputs.requirements == '' - run: python -m build --no-isolation --sdist + run: python -m build --sdist - name: 🔨 [build] Build Python package (binary distribution - wheel) if: inputs.requirements == '' + run: python -m build --wheel + + # build (not isolated) + + - name: 🔧 [build] Install dependencies for packaging and release + if: inputs.requirements == 'no-isolation' + run: python -m pip install build + + - name: 🔨 [build] Build Python package (source distribution) + if: inputs.requirements == 'no-isolation' + run: python -m build --no-isolation --sdist + + - name: 🔨 [build] Build Python package (binary distribution - wheel) + if: inputs.requirements == 'no-isolation' run: python -m build --no-isolation --wheel # setuptools - name: 🔧 [setuptools] Install dependencies for packaging and release - if: inputs.requirements != '' + if: inputs.requirements != '' && inputs.requirements != 'no-isolation' run: python -m pip install ${{ inputs.requirements }} - name: 🔨 [setuptools] Build Python package (source distribution) - if: inputs.requirements != '' + if: inputs.requirements != '' && inputs.requirements != 'no-isolation' run: python setup.py sdist - name: 🔨 [setuptools] Build Python package (binary distribution - wheel) - if: inputs.requirements != '' + if: inputs.requirements != '' && inputs.requirements != 'no-isolation' run: python setup.py bdist_wheel