From 7e559b5aeb1ac874889c3f18d55eeec4af8749fe Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 02:24:29 +0100 Subject: [PATCH] Package: add option 'requirements' --- .github/workflows/Package.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index 6ff4eb9..86447f6 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -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