./graphics/py-graphviz, Create and render graph descriptions in DOT language

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.20.3, Package name: py312-graphviz-0.20.3, Maintainer: pkgsrc-users

This package facilitates the creation and rendering of graph descriptions in
the DOT language of the Graphviz graph drawing software (master repo) from
Python.

Create a graph object, assemble the graph by adding nodes and edges, and
retrieve its DOT source code string. Save the source code to a file and render
it with the Graphviz installation of your system.


Required to run:
[graphics/graphviz] [devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 250.444 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-03-23 17:34:07 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-graphviz: updated to 0.20.3

Version 0.20.3
--------------

Revert improvements to the internal ``tools.deprecate_positional_args()``
decorator that caused false positive
``PendingDeprecationWarning: The signature of ... will be reduced``
warnings that have been misinterpreted in the 0.20.2 release process.

Version 0.20.2
--------------

Drop Python 3.7 support (end of life 27 Jun 2023).

Tag Python 3.11 and 3.12 support.

Add caveat about ``labe`` escaping/quoting to ``.node()`` and ``.render()``
API docs.

Document that ``doctest_skip_exe()`` lines in doctest should be ignored.

Improve internal ``tools.deprecate_positional_args()`` decorator
and fix incorect test assertion.

Update GitHub actions.

Pin ``pytest`` test dependency to ``<8.1`` as a workaround
for ``import file mismatch error`` related to ``conftest.py`` files,
in ``pytest 8.1.1``, see https://github.com/pytest-dev/pytest/issues/12123.
   2022-10-31 16:40:38 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-graphviz: updated to 0.20.1

Version 0.20.1
--------------
Fix documentation building: upgrade to Sphinx 5.0.

Fix broken user guide links in API documentation.

Version 0.20
------------
Add keyword-only ``neato_no_op`` argument to ``.render()``, ``.pipe()``,
and stand-alone ``graphviz.render()`` and ``graphviz.pipe()``.

When building a ``Graph`` or ``Digraph``,
warn about an expected DOT syntax error in rendering
when passing a string that ends with an odd number of backslashes
(e.g. invalid ``dot.node('spam', label='\\')``
instead of correct ``..., label=r'\\'``
for a node labled as a backslash).

Increase visibility of ``graphviz.escape()`` in the documentation.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-12-30 22:20:14 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-graphviz: updated to 0.19.1

Version 0.19.1

Fix undecoded CalledProcessError.stdout and .stderr when .pipe() call with an \ 
encoding different from self.encoding fails.

Fix missing project root conftest.py in source distribution.

Extend examples/graphviz-escapes.ipynb.

Improve test coverage.

Increase build scripts verbosity.

Version 0.19

Add PendingDeprecationWarning to calls using positional arguments that will be \ 
deprecated in a later version. The future API will allow from one to three \ 
positional arguments depending on the method or function. Keyword-only arguments \ 
where not around when this library was created. This signals dependents and in \ 
general users to start updating or pinning to the wanted version (or range). \ 
Crucially, this helps new users with a safer API that allows to avoid some \ 
common mistakes. Warnings reported in tests.

Add keyword-only outfile argument to .render() and stand-alone \ 
graphviz.render(). Allows to override the rendered output file name: \ 
.render(filename='spam.gv', outfile='spam.pdf') Allows to derive the format and \ 
the filename from the rendered outfile name: .render(outfile='spam.svg') Tries \ 
to infer default format from the outfile suffix. You can override by setting \ 
format explicitly. Warns with a graphviz.FormatSuffixMismatchWarning if there is \ 
a mismatch between given format and the inferred format from outfile suffix. \ 
Warns with a graphviz.UnknownSuffixWarning if format is given and outfile uses a \ 
suffix that cannot be mapped to a supported format.

Add graphviz.set_jupyter_format() to set the output format used by the Jupyter \ 
visualization of graphviz.Graph, graphviz.Digraph, and graphviz.Source \ 
(supported formats: 'svg', 'png', 'jpeg'). Replace _repr_svg_() internally with \ 
_repr_mimebundle_(include, exclude) returning a mimebundle {'image/svg+xml', \ 
'<?xml version=...'} by default. Adds support for \ 
IPython.display.display_png(). Adds support for IPython.display.display_jpeg().

Add keyword-only raise_if_result_exists argument to .render() and stand-alone \ 
graphviz.render(). Raises graphviz.FileExistsError if the rendered file already \ 
exists.

Add support to for .render() and stand-alone .render() to overwrite the input \ 
source file with the rendered output when using the outfile keyword-only \ 
argument. This probably only makes sense for text-based Graphviz formats such as \ 
dot or plain. You need to specify overwrite_filepath=True to enable this.

Add graphviz.CalledProcessError derived from subprocess.CalledProcessError so \ 
users can choose either one in their excepts.

Add graphviz.FileExistsError derived from FileExistsError so users can choose \ 
either one in their excepts.

Add --only-exe flag to run-tests.py (overrides --skip-exe).

Add --no-open and --open flags to build-docs.py.

Add lint-code.py and use in build job.

Increase doctest coverage.

Extend type annotations. Accept path-like objects for filename, directory, and \ 
filepath.

Extend and improve documentation.

Improve build tests.
   2021-10-26 12:47:26 by Nia Alarie | Files touched by this commit (800)
Log message:
graphics: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:13:27 by Nia Alarie | Files touched by this commit (800)
Log message:
graphics: Remove SHA1 hashes for distfiles
   2021-10-06 21:16:45 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-graphviz: updated to 0.17

Version 0.17
------------

Drop Python 2 support. Tag Python 3.10 support.

Migrate CI to GitHub actions. Add ``pypy3`` to matrix.

Tests: implement ``--skip-exe`` via custom ``pytest`` marker.

Documentation: point Anaconda users to ``conda-forge/python-graphviz``.

Move type hints from docstrings to type annotations. Improve doctests.

Examples: standardize import convention and modernize.

Re-render example notebooks with Graphviz 2.46.1.