diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eb3ed6..5a12916 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,5 +42,4 @@ jobs: run: cargo test - name: Build wheel smoke test - run: python -m maturin build --interpreter python - + run: python -m maturin build --interpreter python --compatibility pypi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a249b7..6c20b7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: path: dist/* wheels: - name: Build wheel ${{ matrix.os }} Python ${{ matrix.python-version }} + name: Build wheel ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -47,50 +47,14 @@ jobs: python-version: "3.10" target: x86_64 args: --release --out dist -i python3.10 --compatibility pypi - - os: ubuntu-latest - python-version: "3.11" - target: x86_64 - args: --release --out dist -i python3.11 --compatibility pypi - - os: ubuntu-latest - python-version: "3.12" - target: x86_64 - args: --release --out dist -i python3.12 --compatibility pypi - - os: ubuntu-latest - python-version: "3.13" - target: x86_64 - args: --release --out dist -i python3.13 --compatibility pypi - os: macos-14 python-version: "3.10" target: aarch64-apple-darwin args: --release --out dist --interpreter python --compatibility pypi - - os: macos-14 - python-version: "3.11" - target: aarch64-apple-darwin - args: --release --out dist --interpreter python --compatibility pypi - - os: macos-14 - python-version: "3.12" - target: aarch64-apple-darwin - args: --release --out dist --interpreter python --compatibility pypi - - os: macos-14 - python-version: "3.13" - target: aarch64-apple-darwin - args: --release --out dist --interpreter python --compatibility pypi - os: windows-latest python-version: "3.10" target: x86_64-pc-windows-msvc args: --release --out dist --interpreter python --compatibility pypi - - os: windows-latest - python-version: "3.11" - target: x86_64-pc-windows-msvc - args: --release --out dist --interpreter python --compatibility pypi - - os: windows-latest - python-version: "3.12" - target: x86_64-pc-windows-msvc - args: --release --out dist --interpreter python --compatibility pypi - - os: windows-latest - python-version: "3.13" - target: x86_64-pc-windows-msvc - args: --release --out dist --interpreter python --compatibility pypi steps: - name: Check out repository @@ -117,7 +81,7 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }}-${{ matrix.python-version }} + name: wheels-${{ matrix.os }} path: dist/* publish: diff --git a/Cargo.toml b/Cargo.toml index 8734326..5914208 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib"] [dependencies] hangulang-engine = { package = "hangulang", path = "vendor/hangulang", features = ["serde"] } -pyo3 = { version = "0.23.5", features = ["extension-module"] } +pyo3 = { version = "0.23.5", features = ["extension-module", "abi3-py310"] } serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/pyproject.toml b/pyproject.toml index f44e89e..4302e53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ Issues = "https://github.com/myeolinmalchi/hangulang-python/issues" [tool.maturin] python-source = "python" module-name = "hangulang._native" -features = ["pyo3/extension-module"] +features = ["pyo3/extension-module", "pyo3/abi3-py310"] [tool.pytest.ini_options] testpaths = ["tests"]