Package: add option 'requirements'

This commit is contained in:
umarcor
2021-11-29 02:24:29 +01:00
parent 2a2aa3f0c8
commit 7e559b5aeb

View File

@@ -8,6 +8,11 @@ on:
required: false
default: '3.10'
type: string
requirements:
description: 'Python dependencies to be installed through pip.'
required: false
default: 'wheel'
type: string
artifact:
description: 'Name of the wheel artifact.'
required: true
@@ -30,8 +35,8 @@ jobs:
- name: 🔧 Install dependencies for packaging and release
run: |
python -m pip install --upgrade pip
pip install wheel
python -m pip install -U pip
python -m pip install ${{ inputs.requirements }}
- name: 🔨 Build Python package (source distribution)
run: python setup.py sdist