Skip to content

Commit 312a70b

Browse files
Prepare 0.15.1 release (#1231)
* Prepare 0.15.1 release This commit prepares for a 0.15.1 release to fix an inadvertant breaking api change in graphviz_draw() that is causing issues for existing users of the visualizer. * Release note fixes * Fix typos in 0.15.0 release notes This commit fixes typos in the 0.15.0 release notes that were missed during that release. While technically unrelated to preparing 0.15.1 this is a good opportunity to fix them since we'll be rebuilding the docs as part of the new release. * Fix spelling in prelude * Apply suggestions from code review Co-authored-by: Jake Lishman <jake@binhbar.com> * Move new release notes --------- Co-authored-by: Jake Lishman <jake@binhbar.com>
1 parent af5a6ba commit 312a70b

File tree

8 files changed

+84
-71
lines changed

8 files changed

+84
-71
lines changed

Cargo.lock

Lines changed: 63 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ members = [
1616
]
1717

1818
[workspace.package]
19-
version = "0.15.0"
19+
version = "0.15.1"
2020
edition = "2021"
2121
rust-version = "1.70"
2222
authors = ["Matthew Treinish <mtreinish@kortar.org>"]
@@ -59,7 +59,7 @@ rayon.workspace = true
5959
serde = { version = "1.0", features = ["derive"] }
6060
serde_json = "1.0"
6161
smallvec = { version = "1.0", features = ["union"] }
62-
rustworkx-core = { path = "rustworkx-core", version = "=0.15.0" }
62+
rustworkx-core = { path = "rustworkx-core", version = "=0.15.1" }
6363

6464
[dependencies.pyo3]
6565
version = "0.21.2"

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version.
2727
version = '0.15'
2828
# The full version, including alpha/beta/rc tags.
29-
release = '0.15.0'
29+
release = '0.15.1'
3030

3131
extensions = ['sphinx.ext.autodoc',
3232
'sphinx.ext.autosummary',
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
22
features:
33
- |
4-
Added a function ``~rustworkx_core.dag_algo::layers`` in rustworkx-core to
5-
get the layers of a directed acyclic graph. This is equivalent to the
4+
Added a new function ``rustworkx_core::dag_algo::layers`` to rustworkx-core
5+
to get the layers of a directed acyclic graph. This is equivalent to the
66
:func:`.layers` function that existed in the Python API but now exposes it
77
for Rust users too.
88
fix:
99
- |
10-
When calling ``~rustworkx_core.dag_algo::layers``if the provided graph has
11-
a cycle, the function will throw a ``DAGHasCycle`` error instance.
10+
When calling :func:`~.layers` with a graph containing a cycle, the
11+
function will throw a ``DAGHasCycle`` error instance now. Previously, the
12+
function would get stuck in an infinite loop if a graph with a cycle was
13+
passed to the function.

releasenotes/notes/fix-graphviz-escaping-39a2d1cebb586eca.yaml renamed to releasenotes/notes/0.15/fix-graphviz-escaping-39a2d1cebb586eca.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ fixes:
44
Fixed an issue in the :func:`~.graphviz_draw`, :meth:`.PyGraph.to_dot`, and
55
:meth:`.PyDiGraph.to_dot` which was incorrectly escaping strings when
66
upgrading to 0.15.0. In earlier versions of rustworkx if you manually
7-
placed quotes in a string for an attr callback get that to pass through to
8-
the output dot file this was incorrectly being converted in rustworkx 0.15.0
9-
to duplicate the quotes and escape them. For example, if you defined a
10-
callback like::
7+
placed quotes in a string for an attr callback to get that to pass through
8+
to the output dot file, this was incorrectly being converted in rustworkx
9+
0.15.0 to duplicate the quotes and escape them. For example, if you defined
10+
a callback like::
1111
1212
def color_node(_node):
1313
return {
1414
"color": '"#422952"'
1515
}
1616
1717
to set the color attribute in the output dot file with the string
18-
`"#422952"` (with the quotes) this was incorrectly being converted to
19-
`\"#422952\"`. This no longer occurs, in rustworkx 0.16.0 there will likely
20-
be additional options exposed in :func:`~.graphviz_draw`,
18+
``"#422952"`` (with the quotes), this was incorrectly being converted to
19+
``"\"#422952\""``. This no longer occurs, in rustworkx 0.16.0 there will
20+
likely be additional options exposed in :func:`~.graphviz_draw`,
2121
:meth:`.PyGraph.to_dot`, and :meth:`.PyDiGraph.to_dot` to expose further
2222
options around this.

releasenotes/notes/hexagonal-lattice-graph-fixes-1cd4aa88f1591701.yaml renamed to releasenotes/notes/0.15/hexagonal-lattice-graph-fixes-1cd4aa88f1591701.yaml

File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
prelude: >
3+
This release is a bugfix patch release that fixes an inadvertent breaking
4+
API change for the :func:`.graphviz_draw` function in the 0.15.0 release.

0 commit comments

Comments
 (0)