Support with and without isolation mode.

This commit is contained in:
Patrick Lehmann
2022-02-27 17:33:44 +01:00
parent 6ba0204549
commit 457870d760

View File

@@ -66,24 +66,38 @@ jobs:
- name: 🔨 [build] Build Python package (source distribution) - name: 🔨 [build] Build Python package (source distribution)
if: inputs.requirements == '' if: inputs.requirements == ''
run: python -m build --no-isolation --sdist run: python -m build --sdist
- name: 🔨 [build] Build Python package (binary distribution - wheel) - name: 🔨 [build] Build Python package (binary distribution - wheel)
if: inputs.requirements == '' 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 run: python -m build --no-isolation --wheel
# setuptools # setuptools
- name: 🔧 [setuptools] Install dependencies for packaging and release - 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 }} run: python -m pip install ${{ inputs.requirements }}
- name: 🔨 [setuptools] Build Python package (source distribution) - name: 🔨 [setuptools] Build Python package (source distribution)
if: inputs.requirements != '' if: inputs.requirements != '' && inputs.requirements != 'no-isolation'
run: python setup.py sdist run: python setup.py sdist
- name: 🔨 [setuptools] Build Python package (binary distribution - wheel) - name: 🔨 [setuptools] Build Python package (binary distribution - wheel)
if: inputs.requirements != '' if: inputs.requirements != '' && inputs.requirements != 'no-isolation'
run: python setup.py bdist_wheel run: python setup.py bdist_wheel