diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index de3df96..a675435 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -9,47 +9,55 @@ jobs: strategy: matrix: target: [x86_64, aarch64] + manylinux: [auto] + include: + - target: x86_64 + manylinux: musllinux_1_1 + - target: aarch64 + manylinux: musllinux_1_1 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: messense/maturin-action@v1 + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 with: - manylinux: auto + manylinux: ${{ matrix.manylinux }} command: build target: ${{ matrix.target }} - args: --release --sdist -o dist --find-interpreter + # https://github.com/PyO3/maturin-action/issues/56 + args: --release --sdist -o dist --interpreter 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10 - name: Upload wheels - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels_${{ matrix.target }}_${{ matrix.manylinux }} path: dist windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - uses: messense/maturin-action@v1 + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 with: command: build args: --release -o dist --find-interpreter - name: Upload wheels - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels_windows path: dist macos: runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - uses: messense/maturin-action@v1 + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 with: command: build - args: --release -o dist --universal2 --find-interpreter + target: universal2 + args: --release -o dist --find-interpreter - name: Upload wheels - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels_macos path: dist release: @@ -58,11 +66,13 @@ jobs: if: "startsWith(github.ref, 'refs/tags/')" needs: [ macos, windows, linux ] steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4.1.7 with: - name: wheels + pattern: wheels_* + merge-multiple: true + path: dist - name: Publish to PyPI - uses: messense/maturin-action@v1 + uses: PyO3/maturin-action@v1 env: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} with: diff --git a/HISTORY.md b/HISTORY.md index 6abd8e2..50c32f4 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,11 @@ # Release History +## 0.2.1 - 2025-01-05 + +### Changed + +* Improved CI + ## 0.2.0 - 2024-04-27 ### Added diff --git a/pyproject.toml b/pyproject.toml index 94cff6f..e967f57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["maturin>=0.13,<0.14"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" [project] @@ -12,13 +12,19 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent" ] -version = "0.2.0" +version = "0.2.1" description = "Python implementation of Shin's method for calculating implied probabilities from bookmaker odds" -author = "Maurice Berk" -author_email = "maurice@mauriceberk.com" -url = "https://github.com/mberk/shin" +authors = [ + {name = "Maurice Berk", email = "maurice@mauriceberk.com"}, +] readme = "README.md" +[project.urls] +Repository = "https://github.com/mberk/shin" + +[tool.maturin] +python-source = "python" + [tool.mypy] python_version = "3.9" packages = ["shin", "tests"]