Skip to content

Commit

Permalink
Add support for Python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed Oct 19, 2023
1 parent f26b835 commit 77f16ac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,31 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.16.2
- uses: actions/upload-artifact@v3
with:
name: wheelhouse
path: ./wheelhouse/*.whl
import_library:
needs: [build_wheels]
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
name: Import library on ${{ matrix.os }} with Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@v3
with:
name: wheelhouse
path: wheelhouse
- run: python -m pip install wheelhouse/*.tar.gz
shell: bash
- run: python -c 'import colourtime'

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -66,6 +87,7 @@ jobs:
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*.tar.gz
upload_pypi:
needs: [build_wheels, build_sdist]
Expand All @@ -74,8 +96,13 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
name: wheelhouse
path: wheelhouse
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
- run: mv wheelhouse/* dist/
- uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion charidotella/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.3"
__version__ = "2.1.4"

0 comments on commit 77f16ac

Please sign in to comment.