diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c594ba7..5cbad6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,44 +7,44 @@ 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: @@ -52,9 +52,11 @@ jobs: 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: diff --git a/Cargo.toml b/Cargo.toml index 30e6e2a..8a1ccc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/py.typed b/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index 48b318a..2103389 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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"