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
->==3.0.2
Release Notes
pydot/pydot (pydot)
v3.0.2
Compare Source
Added:
to_string()
methods now accept anindent
keyword argument, which can beeither a number or a string.
indentation=4
will indent each level of theoutput with four spaces.
indentation=" "
will indent each level by that manyspaces. Other whitespace is also valid, e.g. indent="\t" for tab indents. (#359)
Changed:
all cases, even when exceptions are raised or things exit unexpectedly. (#394)
release as expected. (#392)
v3.0.1
Compare Source
This is a bugfix release to correct a critical error introduced in 3.0.0.
Changed:
Edge.to_string()
. (#384)v3.0.0
Compare Source
Removed:
It was already dropped, but now it's official.
Removed syntax rules that were never implemented in graphviz's own parser.
Pydot will preserve the original order of attributes as defined.
.create_attribute_methods()
from classes (#318).Setters and getters for attributes are now added to class definitions
by calls to
pydot.core.__generate_attribute_methods()
immediatelyafter the class is defined, for better compatibility with type-checking
and introspection.
Changed:
Pydot now always stores values as they were originally input, and only performs
quoting on output.
Previously, when a graph element was created with a name that contained a space
or otherwise required quoting, the quotes would be added immediately, making it
more difficult to retrieve the element using the
.get_*()
lookup methods.If a name requiring quotes was later set using
.set_name()
, no quotes would beadded, causing the graph definition to become invalid.
(Thanks to @tusharsadhwani for initially pointing out the name-quoting issues.)
Attribute values containing comma-separated strings will now be quoted correctly.
Added:
Graphviz keywords like "graph" or "subgraph" will now be properly quoted
when used as attribute values or as names, where appropriate.
pydot
. Fordetails, see the new section on Troubleshooting in README.md.
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 9:00 on Monday,at 9:00 on Tuesday,at 9:00 on Wednesday,at 9:00 on Thursday,at 9:00 on Friday" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.