Skip to content
Open
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
30 changes: 16 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,56 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: PyO3/maturin-action@v1
with:
manylinux: auto
command: build
args: --release --sdist -o dist -i 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.10
args: --release --sdist -o dist -i 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 pypy3.10
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux
path: dist

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: PyO3/maturin-action@v1
with:
command: build
args: --release -o dist -i 3.7 3.8 3.9 3.10 3.11 3.12
args: --release -o dist -i 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows
path: dist

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: PyO3/maturin-action@v1
with:
command: build
args: --release -o dist --target universal2-apple-darwin -i 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.10
args: --release -o dist --target universal2-apple-darwin -i 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 pypy3.10
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos
path: dist

release:
name: Release
runs-on: ubuntu-latest
needs: [ macos, windows, linux ]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v5
with:
name: wheels
path: dist
pattern: wheels-*
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ name = "tossicat"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.22.6", features = ["extension-module"] }
pyo3 = { version = "0.26.0", features = [
"extension-module",
"generate-import-lib",
] }
tossicat = "0.6.1"

[package.metadata.maturin]
include = ["tossicat.pyi"]
include = ["tossicat.pyi", "py.typed"]
Empty file added py.typed
Empty file.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[tool.maturin]
features = ["pyo3/extension-module"]
features = ["pyo3/extension-module", "pyo3/generate-import-lib"]

[project]
name = "tossicat-python"
Expand All @@ -12,4 +12,12 @@ classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Typing :: Typed",
]
dynamic = ["version"]
readme = "README.md"
license = "LGPL-2.1"
license-files = ["LICENSE"]

[project.urls]
"Source Code" = "https://github.com/tossicat/tossicat-python"