From 360b535ec2a5d301388417d8bc84b8788250c1e2 Mon Sep 17 00:00:00 2001 From: jean-marie burel Date: Mon, 16 Dec 2024 15:12:29 +0000 Subject: [PATCH] Build (#92) * Bump actions/setup-python to v5 * Bump pypa/gh-action-pypi-publish to 1.8.14 * Use build instead of sdist * remove cleaning commands * Do not install build --- .github/workflows/upload_to_pypi.yml | 8 ++++---- .github/workflows/upload_to_test_pypi.yml | 8 ++++---- .omeroci/py-setup | 2 -- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/upload_to_pypi.yml b/.github/workflows/upload_to_pypi.yml index 2c976de..65ce0db 100644 --- a/.github/workflows/upload_to_pypi.yml +++ b/.github/workflows/upload_to_pypi.yml @@ -18,14 +18,14 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' - name: Install Tools run: | - python -mpip install wheel - python setup.py sdist bdist_wheel + python -mpip install build + python -m build - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@v1.3.0 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/upload_to_test_pypi.yml b/.github/workflows/upload_to_test_pypi.yml index 5d7a713..41e8fc6 100644 --- a/.github/workflows/upload_to_test_pypi.yml +++ b/.github/workflows/upload_to_test_pypi.yml @@ -18,15 +18,15 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' - name: Install Tools run: | - python -mpip install wheel - python setup.py sdist bdist_wheel + python -mpip install build + python -m build - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@v1.3.0 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ diff --git a/.omeroci/py-setup b/.omeroci/py-setup index 4a8d2ca..e81561d 100755 --- a/.omeroci/py-setup +++ b/.omeroci/py-setup @@ -25,5 +25,3 @@ pip install pytest restview mox3 cd $TARGET cd $(setup_dir) pip install . -python setup.py clean -rm -rf dist *egg-info src/*egg-info