Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 28 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.2.1 - 2025-01-05

### Changed

* Improved CI

## 0.2.0 - 2024-04-27

### Added
Expand Down
16 changes: 11 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.13,<0.14"]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[project]
Expand All @@ -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"]
Expand Down
Loading