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