From 4e2ef57b5a23c6ab9c0bda6e45bf9f25c207e45a Mon Sep 17 00:00:00 2001 From: holgern Date: Tue, 18 Apr 2023 14:45:46 +0200 Subject: [PATCH] Prepare release 0.1.31 --- .github/workflows/tests.yml | 2 +- .github/workflows/wheels.yml | 44 +++++++++++++++++++++++++++++++++-- doc/release/0.1.31-notes.rst | 14 +++++++++++ doc/source/release.0.1.31.rst | 1 + setup.py | 3 ++- 5 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 doc/release/0.1.31-notes.rst create mode 100644 doc/source/release.0.1.31.rst diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 75c3f31..ad79d4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-2019, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Setup Python diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 57ebf5b..dfb77d1 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -9,6 +9,11 @@ env: # Run the package tests using `pytest` # CIBW_TEST_REQUIRES: pytest # CIBW_TEST_COMMAND: pytest + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: make_sdist: name: Make SDist @@ -47,13 +52,14 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: - # Disable explicitly python 3.11 and building PyPy wheels - CIBW_SKIP: cp311-* pp* + # Disable building PyPy wheels + CIBW_SKIP: pp* CIBW_PRERELEASE_PYTHONS: False - uses: actions/upload-artifact@v2 with: path: wheelhouse/*.whl + build_aarch64_wheels: name: Build wheels manylinux_aarch64 runs-on: ubuntu-latest @@ -81,3 +87,37 @@ jobs: - uses: actions/upload-artifact@v2 with: path: wheelhouse/*.whl + + upload_pypi_test: + name: Upload to PyPI (test) + needs: [build_wheels, build_aarch64_wheels, make_sdist] + runs-on: ubuntu-20.04 + if: github.event_name == 'push' && !(startsWith(github.ref_name, 'master')) + steps: + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.5.0 + with: + user: __token__ + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + skip_existing: true + + upload_pypi: + name: Upload to PyPI (prod) + needs: [build_wheels, build_aarch64_wheels, make_sdist] + runs-on: ubuntu-20.04 + if: github.event_name == 'push' && startsWith(github.ref_name, 'master') + steps: + - uses: actions/download-artifact@v2 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.5.0 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/doc/release/0.1.31-notes.rst b/doc/release/0.1.31-notes.rst new file mode 100644 index 0000000..9ac4b8e --- /dev/null +++ b/doc/release/0.1.31-notes.rst @@ -0,0 +1,14 @@ +============================= +PyEDFlib 0.1.31 Release Notes +============================= + +Authors +======= + +* skjerns + +Issues closed for v0.1.31 +------------------------- + +Pull requests for v0.1.31 +------------------------- \ No newline at end of file diff --git a/doc/source/release.0.1.31.rst b/doc/source/release.0.1.31.rst new file mode 100644 index 0000000..b986edd --- /dev/null +++ b/doc/source/release.0.1.31.rst @@ -0,0 +1 @@ +.. include:: ../release/0.1.31-notes.rst \ No newline at end of file diff --git a/setup.py b/setup.py index 60b05f0..02f9fa6 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ MAJOR = 0 MINOR = 1 -MICRO = 30 +MICRO = 31 ISRELEASED = True VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) @@ -291,6 +291,7 @@ def install_for_development(self): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Libraries :: Python Modules" ], platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],