From 17056dc1d669a056ebfb13bcb2bd060e7c0fceec Mon Sep 17 00:00:00 2001 From: "Apricot S." <152096077+Apricot-S@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:00:49 +0900 Subject: [PATCH 1/4] chore: Update dependencies (#17) --- Cargo.lock | 60 +++++++++++++++++++++++++------------------------- Cargo.toml | 2 +- pyproject.toml | 6 ++--- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b079032..8ea2923 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,9 +10,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "cc" -version = "1.2.1" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" dependencies = [ "shlex", ] @@ -35,9 +35,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.130" +version = "1.0.135" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45dc1c88d0fdac57518a9b1f6c4f4fb2aca8f3c30c0d03d7d8518b47ca0bcea6" +checksum = "66fd8f17ad454fc1e4f4ab83abffcc88a532e90350d3ffddcb73030220fcbd52" dependencies = [ "cc", "codespan-reporting", @@ -61,9 +61,9 @@ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" [[package]] name = "libc" -version = "0.2.164" +version = "0.2.169" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" [[package]] name = "memoffset" @@ -82,24 +82,24 @@ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "portable-atomic" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" +checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" [[package]] name = "proc-macro2" -version = "1.0.89" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] [[package]] name = "pyo3" -version = "0.23.1" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ebb0c0cc0de9678e53be9ccf8a2ab53045e6e3a8be03393ceccc5e7396ccb40" +checksum = "e484fd2c8b4cb67ab05a318f1fd6fa8f199fcc30819f08f07d200809dba26c15" dependencies = [ "cfg-if", "indoc", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.23.1" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e3ce69c4ec34476534b490e412b871ba03a82e35604c3dfb95fcb6bfb60c09" +checksum = "dc0e0469a84f208e20044b98965e1561028180219e35352a2afaf2b942beff3b" dependencies = [ "once_cell", "target-lexicon", @@ -125,9 +125,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.23.1" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b09f311c76b36dfd6dd6f7fa6f9f18e7e46a1c937110d283e80b12ba2468a75" +checksum = "eb1547a7f9966f6f1a0f0227564a9945fe36b90da5a93b3933fc3dc03fae372d" dependencies = [ "libc", "pyo3-build-config", @@ -135,9 +135,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.23.1" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd4f74086536d1e1deaff99ec0387481fb3325c82e4e48be0e75ab3d3fcb487a" +checksum = "fdb6da8ec6fa5cedd1626c886fc8749bdcbb09424a86461eb8cdf096b7c33257" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -147,9 +147,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.23.1" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e77dfeb76b32bbf069144a5ea0a36176ab59c8db9ce28732d0f06f096bbfbc8" +checksum = "38a385202ff5a92791168b1136afae5059d3ac118457bb7bc304c197c2d33e7d" dependencies = [ "heck", "proc-macro2", @@ -181,9 +181,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "syn" -version = "2.0.87" +version = "2.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" +checksum = "d53cbcb5a243bd33b7858b1d7f4aca2153490815872d86d955d6ea29f743c035" dependencies = [ "proc-macro2", "quote", @@ -207,18 +207,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.3" +version = "2.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +checksum = "f072643fd0190df67a8bab670c20ef5d8737177d6ac6b2e9a236cb096206b2cc" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.3" +version = "2.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +checksum = "7b50fa271071aae2e6ee85f842e2e28ba8cd2c5fb67f11fcb1fd70b276f9e7d4" dependencies = [ "proc-macro2", "quote", @@ -227,9 +227,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-width" @@ -327,8 +327,8 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "xiangting" -version = "2.0.1" -source = "git+https://github.com/Apricot-S/xiangting.git#592dcf93cb2e1834e37bfb69a02161a985cc3389" +version = "2.0.2" +source = "git+https://github.com/Apricot-S/xiangting.git#8f7497b9b82b6d6f47e16ba17cc5e2f1e5394a8e" dependencies = [ "cxx-build", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index 0c6af78..dee294e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,5 +25,5 @@ name = "xiangting" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.23.0", features = ["extension-module"] } +pyo3 = { version = "0.23.3", features = ["extension-module"] } xiangting = { git = "https://github.com/Apricot-S/xiangting.git", version = "2.0.1" } diff --git a/pyproject.toml b/pyproject.toml index 62f248d..0f00ede 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dev = [ { include-group = "build" }, ] lint = [ - "ruff>=0.7.1,<0.8", + "ruff>=0.8.4,<0.9", ] test = [ "pytest>=8.3.3,<9", @@ -50,7 +50,7 @@ typing = [ "mypy>=1.13.0,<2", ] build = [ - "maturin>=1.7.1", + "maturin>=1.7.8", ] [tool.maturin] @@ -73,8 +73,6 @@ ignore = [ # "C901", # complex-structure "ANN002", # missing-type-args "ANN003", # missing-type-kwargs - "ANN101", # missing-type-self - "ANN102", # missing-type-cls "TD002", # missing-todo-author "TD003", # missing-todo-link "PLR0911", # too-many-return-statements From 11c48c33ed5ffdb11abcd142002797a637595a11 Mon Sep 17 00:00:00 2001 From: "Apricot S." <152096077+Apricot-S@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:11:10 +0900 Subject: [PATCH 2/4] feat: Update xiangting to v2.0.2 (#18) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dee294e..9a6a074 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,4 +26,4 @@ crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.23.3", features = ["extension-module"] } -xiangting = { git = "https://github.com/Apricot-S/xiangting.git", version = "2.0.1" } +xiangting = { git = "https://github.com/Apricot-S/xiangting.git", version = "2.0.2" } From 61201cc89ae2b1d2525c5337a4ebefcbad7cf3d9 Mon Sep 17 00:00:00 2001 From: "Apricot S." <152096077+Apricot-S@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:17:37 +0900 Subject: [PATCH 3/4] docs: Add a note to the README about the calculated values (#19) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8d13ee8..ed6d9a8 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ The hand is represented by the number of each tile in an array of `list[int]`. T | ----- | --------- | ---------- | --------- | ---------- | ---------- | ---------- | -------- | | Tile | East (1z) | South (2z) | West (3z) | North (4z) | White (5z) | Green (6z) | Red (7z) | +Calculates the replacement number, which is equal to the deficiency number (a.k.a. xiangting number, 向聴数) + 1. + ```python from xiangting import calculate_replacement_number From a30bb774c59ddeeba62746b0cb77af213d833ebf Mon Sep 17 00:00:00 2001 From: Apricot-S Date: Sun, 22 Dec 2024 12:25:29 +0000 Subject: [PATCH 4/4] chore: Bump up version to v2.0.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- docs/conf.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ea2923..eedc1c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -336,7 +336,7 @@ dependencies = [ [[package]] name = "xiangting-py" -version = "2.0.1" +version = "2.0.2" dependencies = [ "pyo3", "xiangting", diff --git a/Cargo.toml b/Cargo.toml index 9a6a074..9c3d833 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xiangting-py" -version = "2.0.1" +version = "2.0.2" description = "Python bindings for xiangting" authors = ["Apricot S."] edition = "2021" diff --git a/docs/conf.py b/docs/conf.py index d6a9315..2ca9a95 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,7 +9,7 @@ project = "xiangting" copyright = "2024, Apricot S." author = "Apricot S." -release = "2.0.1" +release = "2.0.2" version = release diff --git a/pyproject.toml b/pyproject.toml index 0f00ede..a584b24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "xiangting" -version = "2.0.1" +version = "2.0.2" description = "Python bindings for xiangting" authors = [{ name = "Apricot S." }] license = { text = "MIT License" }