From 29b3446b9a0ad8f58807558038ea8bddf5b180d7 Mon Sep 17 00:00:00 2001 From: Dusan Figala Date: Fri, 24 Nov 2023 14:59:59 +0100 Subject: [PATCH] Use pypa/build instead of setup.py --- ci-python/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci-python/action.yml b/ci-python/action.yml index a993612..c0220db 100644 --- a/ci-python/action.yml +++ b/ci-python/action.yml @@ -68,7 +68,7 @@ runs: if [ -n "${{ inputs.conda_install }}" ]; then conda install -y ${{ inputs.conda_install }} fi - pip install pytest pytest-cov + pip install pytest pytest-cov build if [ -f ${{ inputs.requirements_path }} ]; then pip install -r ${{ inputs.requirements_path }} fi @@ -92,7 +92,7 @@ runs: git remote add origin https://${{ inputs.github_token }}@github.com/$owner/$repo.git git fetch --depth 1 origin $ref git checkout FETCH_HEAD - python setup.py sdist + python -m build --sdist pip install dist/* done <<< "${{ inputs.python_dependencies }}" @@ -101,7 +101,7 @@ runs: run: | source /opt/conda/etc/profile.d/conda.sh conda activate $RUNNER_TEMP/venv - python setup.py sdist + python -m build --sdist pip install dist/* - name: Run tests