fix(deps): update dependency pydot to v2 #1279
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.4.2
->^2.0.0
Release Notes
pydot/pydot (pydot)
v2.0.0
Compare Source
Changed:
Broken parsing caused by
pyparsing
updates fixed. (#296)With this, the pydot project rises from the dead.
(Internal) CI revived by @ferdnyc. (#302)
Modernized and clarified the development process.
Testing is done against multiple Python versions.
Reorganized package/module structure. (#230)
The
pydot
package is installed as a directory now instead of astwo modules:
This is mostly an internal change that should go unnoticed by most
users, especially those upgrading through
pip
or a softwaredistribution.
import pydot
should work as it did before.Special cases:
import dot_parser
no longer works. Change it tofrom pydot import dot_parser
or see if you can use the wrapperspydot.graph_from_dot_data()
orpydot.graph_from_dot_file()
.USER FEEDBACK REQUESTED
We assume pydot users do not often directly
import dot_parser
.If you do, please report your reasons, so that we can consider
making it available again before the final releashttps://github.com/pydot/pydot/issues/230m/Restructure package and module organization pydot/pydot#230
If you use pydot from a (cloned) pydot source tree:
subdirectory
src/pydot/
.PYTHONPATH
environment variable: Append/src
,e.g.
PYTHONPATH=~/Development/pydot/src
. If you need to switchbetween pydot 1.x and pydot 2.x, add both, e.g.
PYTHONPATH=~/Development/pydot/src:~/Development/pydot
pip install -e .
from the top directory of the source tree toupdate the links.
For users of the test suite:
source tree.
--no-check
redundant. It hasno effect except for printing a deprecation warning. It will be
removed in a future major release (pydot 3 or higher), then
leading to an error.
Reorganized exception hierarchy: (#230)
PydotException
, derived from Python'sException
.Error
exception class is now derived fromPydotException
instead of from Python's built-in
Exception
directly. Existinghandlers should not be affected.
InvocationException
was removed. It has not beenraised by pydot since 2016 (v1.2.0).
API (minor): Renamed the first parameter of the parser functions
listed below from
str
tos
. These functions primarily exist forinternal use and would normally be called using positional arguments,
so few users should be affected. (#229)
push_top_graph_stmt(s, loc, toks)
push_graph_stmt(s, loc, toks)
push_subgraph_stmt(s, loc, toks)
push_default_stmt(s, loc, toks)
push_attr_list(s, loc, toks)
push_edge_stmt(s, loc, toks)
Deprecated:
--no-check
. See "Reorganized package/modulestructure" above.
Removed:
USER FEEDBACK REQUESTED
~~We are considering if pydot 2.0 should drop support for Python 3.5
and 3.6 as well. If this would affect you, please leave a cohttps://github.com/pydot/pydot/issues/268ot/issues/268.~~
EDIT: This was decided to be done, with a lot of time passed since this entry.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.