From ef6123d1e1b35e351edcf5194c6e85b0010943f3 Mon Sep 17 00:00:00 2001 From: folkengine Date: Mon, 6 Apr 2026 16:22:32 -0700 Subject: [PATCH 1/2] bumping before pub --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 28eec34..ccbdaf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pkpy" -version = "0.0.36" +version = "0.0.38" edition = "2021" description = "Python bindings for pkcore, a high-performance poker analysis library" license = "GPL-3.0-or-later" @@ -11,7 +11,7 @@ crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.28", features = ["extension-module"] } -pkcore = "0.0.37" +pkcore = "0.0.38" [profile.release] lto = true From d3134dc4eb3b5e8ba208041ec408ffb9aa845d94 Mon Sep 17 00:00:00 2001 From: folkengine Date: Mon, 6 Apr 2026 16:35:42 -0700 Subject: [PATCH 2/2] Adding pyproject.py file for publishing --- .github/workflows/publish.yml | 93 +++++++++++++++++++++++++++++++++++ pyproject.toml | 10 ++++ 2 files changed, 103 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6a188e0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,93 @@ +name: Publish to PyPI + +on: + push: + tags: + - "v*" + +permissions: + id-token: write # required for PyPI trusted publishing + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + target: [x86_64, aarch64] + steps: + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: "true" + manylinux: auto + - uses: actions/upload-artifact@v4 + with: + name: wheels-linux-${{ matrix.target }} + path: dist + + macos: + runs-on: macos-latest + strategy: + matrix: + target: [x86_64, aarch64] + steps: + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: "true" + - uses: actions/upload-artifact@v4 + with: + name: wheels-macos-${{ matrix.target }} + path: dist + + windows: + runs-on: windows-latest + strategy: + matrix: + target: [x86_64] + steps: + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: "true" + - uses: actions/upload-artifact@v4 + with: + name: wheels-windows-${{ matrix.target }} + path: dist + + sdist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: PyO3/maturin-action@v1 + with: + command: sdist + args: --out dist + - uses: actions/upload-artifact@v4 + with: + name: wheels-sdist + path: dist + + publish: + name: Publish to PyPI + runs-on: ubuntu-latest + needs: [linux, macos, windows, sdist] + environment: + name: pypi + url: https://pypi.org/project/pkpy/ + steps: + - uses: actions/download-artifact@v4 + with: + pattern: wheels-* + merge-multiple: true + path: dist + - uses: PyO3/maturin-action@v1 + with: + command: upload + args: --non-interactive --skip-existing dist/* diff --git a/pyproject.toml b/pyproject.toml index 0bf4f43..1792d66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,15 +6,25 @@ build-backend = "maturin" name = "pkpy" version = "0.1.0" description = "Python bindings for pkcore, a high-performance poker analysis library" +readme = "README.md" license = { text = "GPL-3.0-or-later" } requires-python = ">=3.8" +authors = [ + { name = "folkengine", email = "gaoler@electronicpanopticon.com"}, +] classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Games/Entertainment", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", ] +[project.urls] +Homepage = "https://github.com/ImperialBower/pkpy" +Repository = "https://github.com/ImperialBower/pkpy" +"Bug Tracker" = "https://github.com/ImperialBower/pkpy/issues" + [tool.maturin] features = ["pyo3/extension-module"] python-source = "python"