Skip to content

Commit

Permalink
Prepare 0.15.1 release (#1231)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mtreinish and jakelishman committed Jun 28, 2024
1 parent af5a6ba commit 312a70b
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 71 deletions.
119 changes: 63 additions & 56 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ members = [
]

[workspace.package]
version = "0.15.0"
version = "0.15.1"
edition = "2021"
rust-version = "1.70"
authors = ["Matthew Treinish <mtreinish@kortar.org>"]
Expand Down Expand Up @@ -59,7 +59,7 @@ rayon.workspace = true
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
smallvec = { version = "1.0", features = ["union"] }
rustworkx-core = { path = "rustworkx-core", version = "=0.15.0" }
rustworkx-core = { path = "rustworkx-core", version = "=0.15.1" }

[dependencies.pyo3]
version = "0.21.2"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version.
version = '0.15'
# The full version, including alpha/beta/rc tags.
release = '0.15.0'
release = '0.15.1'

extensions = ['sphinx.ext.autodoc',
'sphinx.ext.autosummary',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
features:
- |
Added a function ``~rustworkx_core.dag_algo::layers`` in rustworkx-core to
get the layers of a directed acyclic graph. This is equivalent to the
Added a new function ``rustworkx_core::dag_algo::layers`` to rustworkx-core
to get the layers of a directed acyclic graph. This is equivalent to the
:func:`.layers` function that existed in the Python API but now exposes it
for Rust users too.
fix:
- |
When calling ``~rustworkx_core.dag_algo::layers``if the provided graph has
a cycle, the function will throw a ``DAGHasCycle`` error instance.
When calling :func:`~.layers` with a graph containing a cycle, the
function will throw a ``DAGHasCycle`` error instance now. Previously, the
function would get stuck in an infinite loop if a graph with a cycle was
passed to the function.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ fixes:
Fixed an issue in the :func:`~.graphviz_draw`, :meth:`.PyGraph.to_dot`, and
:meth:`.PyDiGraph.to_dot` which was incorrectly escaping strings when
upgrading to 0.15.0. In earlier versions of rustworkx if you manually
placed quotes in a string for an attr callback get that to pass through to
the output dot file this was incorrectly being converted in rustworkx 0.15.0
to duplicate the quotes and escape them. For example, if you defined a
callback like::
placed quotes in a string for an attr callback to get that to pass through
to the output dot file, this was incorrectly being converted in rustworkx
0.15.0 to duplicate the quotes and escape them. For example, if you defined
a callback like::
def color_node(_node):
return {
"color": '"#422952"'
}
to set the color attribute in the output dot file with the string
`"#422952"` (with the quotes) this was incorrectly being converted to
`\"#422952\"`. This no longer occurs, in rustworkx 0.16.0 there will likely
be additional options exposed in :func:`~.graphviz_draw`,
``"#422952"`` (with the quotes), this was incorrectly being converted to
``"\"#422952\""``. This no longer occurs, in rustworkx 0.16.0 there will
likely be additional options exposed in :func:`~.graphviz_draw`,
:meth:`.PyGraph.to_dot`, and :meth:`.PyDiGraph.to_dot` to expose further
options around this.
4 changes: 4 additions & 0 deletions releasenotes/notes/0.15/prepare-0.15.1-6d729ee825aaeefe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
prelude: >
This release is a bugfix patch release that fixes an inadvertent breaking
API change for the :func:`.graphviz_draw` function in the 0.15.0 release.
Loading

0 comments on commit 312a70b

Please sign in to comment.