From 4770a567db6ca0e5f5a4d9974b35fbfe39689c9b Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 22 Feb 2024 15:10:13 -0500 Subject: [PATCH] Prepare 0.14.1 release (#1111) * Prepare 0.14.1 release This commit prepares for a 0.14.1 release which just includes #1109 to fix ppc64le builds and #1096 to fix the overhead of `__getitem__` on custom sequence return types. * Update releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com> * Update version in docs config too --------- Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com> --- Cargo.lock | 4 +-- Cargo.toml | 4 +-- docs/source/conf.py | 4 +-- .../prepare-0.14.1-e5065553a44eb035.yaml | 28 +++++++++++++++++++ setup.py | 2 +- 5 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml diff --git a/Cargo.lock b/Cargo.lock index 45e870a59..8677c62ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -593,7 +593,7 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustworkx" -version = "0.14.0" +version = "0.14.1" dependencies = [ "ahash", "fixedbitset", @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "rustworkx-core" -version = "0.14.0" +version = "0.14.1" dependencies = [ "ahash", "fixedbitset", diff --git a/Cargo.toml b/Cargo.toml index c5bc86d93..75733c260 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ members = [ ] [workspace.package] -version = "0.14.0" +version = "0.14.1" edition = "2021" rust-version = "1.64" authors = ["Matthew Treinish "] @@ -57,7 +57,7 @@ rand_pcg.workspace = true rayon.workspace = true serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -rustworkx-core = { path = "rustworkx-core", version = "=0.14.0" } +rustworkx-core = { path = "rustworkx-core", version = "=0.14.1" } [dependencies.pyo3] version = "0.20.2" diff --git a/docs/source/conf.py b/docs/source/conf.py index 5b0af9ec3..c5ed5fe12 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -24,9 +24,9 @@ docs_url_prefix = "" # The short X.Y version. -version = '0.14.0' +version = '0.14' # The full version, including alpha/beta/rc tags. -release = '0.14.0' +release = '0.14.1' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', diff --git a/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml b/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml new file mode 100644 index 000000000..e841f65de --- /dev/null +++ b/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml @@ -0,0 +1,28 @@ +--- +prelude: > + The rustworkx 0.14.1 release is a small bug fix release that fixes two issues, + firstly it address a performance regression that was introduced in 0.12.0 + for accessing items of custom sequence return types such as + :class:`.NodeIndices`. Secondly, it fixes a build configuration issue for + Linux ppc64le with Python 3.12 and 3.8 which prevented publishing wheels in + 0.14.0. + +fixes: + - | + Fixed an performance issue with the custom sequence return type classes' + ``__getitem__`` method (used for element access and iteration). When support + for slice access was added to these classes in rustworkx 0.12.0 this was + previously implemented in a way that added unnecessary overhead to index + based access, which has been corrected. This fix applies to ``__getitem__`` + on: + + * :class:`.BFSSuccessors` + * :class:`.BFSPredecessors` + * :class:`.NodeIndices` + * :class:`.EdgeIndices` + * :class:`.EdgeList` + * :class:`.WeightedEdgeList` + * :class:`.Chains` + + See `#1090 `__ for more + details. diff --git a/setup.py b/setup.py index cb8f99872..ea4811345 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def readme(): graphviz_extras = ["pillow>=5.4"] PKG_NAME = os.getenv("RUSTWORKX_PKG_NAME", "rustworkx") -PKG_VERSION = "0.14.0" +PKG_VERSION = "0.14.1" PKG_PACKAGES = ["rustworkx", "rustworkx.visualization"] PKG_INSTALL_REQUIRES = ["numpy>=1.16.0,<2"] RUST_EXTENSIONS = [RustExtension("rustworkx.rustworkx", "Cargo.toml",