pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/py-graphviz py-graphviz: updated to 0.19.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/c91dfce8a76d
branches: trunk
changeset: 771980:c91dfce8a76d
user: adam <adam%pkgsrc.org@localhost>
date: Thu Dec 30 21:20:13 2021 +0000
description:
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.
diffstat:
graphics/py-graphviz/Makefile | 6 +-
graphics/py-graphviz/PLIST | 107 ++++++++++++++++++++++++++++++++++++-----
graphics/py-graphviz/distinfo | 8 +-
3 files changed, 102 insertions(+), 19 deletions(-)
diffs (155 lines):
diff -r 496de5f17424 -r c91dfce8a76d graphics/py-graphviz/Makefile
--- a/graphics/py-graphviz/Makefile Thu Dec 30 21:19:26 2021 +0000
+++ b/graphics/py-graphviz/Makefile Thu Dec 30 21:20:13 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2021/10/06 19:16:45 adam Exp $
+# $NetBSD: Makefile,v 1.18 2021/12/30 21:20:13 adam Exp $
-DISTNAME= graphviz-0.17
+DISTNAME= graphviz-0.19.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/graphviz/}
@@ -12,6 +12,8 @@
LICENSE= mit
DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock>=1.8:../../devel/py-test-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
diff -r 496de5f17424 -r c91dfce8a76d graphics/py-graphviz/PLIST
--- a/graphics/py-graphviz/PLIST Thu Dec 30 21:19:26 2021 +0000
+++ b/graphics/py-graphviz/PLIST Thu Dec 30 21:20:13 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2021/10/06 19:16:45 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2021/12/30 21:20:13 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,18 +7,99 @@
${PYSITELIB}/graphviz/__init__.py
${PYSITELIB}/graphviz/__init__.pyc
${PYSITELIB}/graphviz/__init__.pyo
-${PYSITELIB}/graphviz/backend.py
-${PYSITELIB}/graphviz/backend.pyc
-${PYSITELIB}/graphviz/backend.pyo
+${PYSITELIB}/graphviz/_compat.py
+${PYSITELIB}/graphviz/_compat.pyc
+${PYSITELIB}/graphviz/_compat.pyo
+${PYSITELIB}/graphviz/_defaults.py
+${PYSITELIB}/graphviz/_defaults.pyc
+${PYSITELIB}/graphviz/_defaults.pyo
+${PYSITELIB}/graphviz/_tools.py
+${PYSITELIB}/graphviz/_tools.pyc
+${PYSITELIB}/graphviz/_tools.pyo
+${PYSITELIB}/graphviz/backend/__init__.py
+${PYSITELIB}/graphviz/backend/__init__.pyc
+${PYSITELIB}/graphviz/backend/__init__.pyo
+${PYSITELIB}/graphviz/backend/dot_command.py
+${PYSITELIB}/graphviz/backend/dot_command.pyc
+${PYSITELIB}/graphviz/backend/dot_command.pyo
+${PYSITELIB}/graphviz/backend/execute.py
+${PYSITELIB}/graphviz/backend/execute.pyc
+${PYSITELIB}/graphviz/backend/execute.pyo
+${PYSITELIB}/graphviz/backend/mixins.py
+${PYSITELIB}/graphviz/backend/mixins.pyc
+${PYSITELIB}/graphviz/backend/mixins.pyo
+${PYSITELIB}/graphviz/backend/piping.py
+${PYSITELIB}/graphviz/backend/piping.pyc
+${PYSITELIB}/graphviz/backend/piping.pyo
+${PYSITELIB}/graphviz/backend/rendering.py
+${PYSITELIB}/graphviz/backend/rendering.pyc
+${PYSITELIB}/graphviz/backend/rendering.pyo
+${PYSITELIB}/graphviz/backend/unflattening.py
+${PYSITELIB}/graphviz/backend/unflattening.pyc
+${PYSITELIB}/graphviz/backend/unflattening.pyo
+${PYSITELIB}/graphviz/backend/upstream_version.py
+${PYSITELIB}/graphviz/backend/upstream_version.pyc
+${PYSITELIB}/graphviz/backend/upstream_version.pyo
+${PYSITELIB}/graphviz/backend/viewing.py
+${PYSITELIB}/graphviz/backend/viewing.pyc
+${PYSITELIB}/graphviz/backend/viewing.pyo
+${PYSITELIB}/graphviz/base.py
+${PYSITELIB}/graphviz/base.pyc
+${PYSITELIB}/graphviz/base.pyo
+${PYSITELIB}/graphviz/copying.py
+${PYSITELIB}/graphviz/copying.pyc
+${PYSITELIB}/graphviz/copying.pyo
${PYSITELIB}/graphviz/dot.py
${PYSITELIB}/graphviz/dot.pyc
${PYSITELIB}/graphviz/dot.pyo
-${PYSITELIB}/graphviz/files.py
-${PYSITELIB}/graphviz/files.pyc
-${PYSITELIB}/graphviz/files.pyo
-${PYSITELIB}/graphviz/lang.py
-${PYSITELIB}/graphviz/lang.pyc
-${PYSITELIB}/graphviz/lang.pyo
-${PYSITELIB}/graphviz/tools.py
-${PYSITELIB}/graphviz/tools.pyc
-${PYSITELIB}/graphviz/tools.pyo
+${PYSITELIB}/graphviz/encoding.py
+${PYSITELIB}/graphviz/encoding.pyc
+${PYSITELIB}/graphviz/encoding.pyo
+${PYSITELIB}/graphviz/exceptions.py
+${PYSITELIB}/graphviz/exceptions.pyc
+${PYSITELIB}/graphviz/exceptions.pyo
+${PYSITELIB}/graphviz/graphs.py
+${PYSITELIB}/graphviz/graphs.pyc
+${PYSITELIB}/graphviz/graphs.pyo
+${PYSITELIB}/graphviz/jupyter_integration.py
+${PYSITELIB}/graphviz/jupyter_integration.pyc
+${PYSITELIB}/graphviz/jupyter_integration.pyo
+${PYSITELIB}/graphviz/parameters/__init__.py
+${PYSITELIB}/graphviz/parameters/__init__.pyc
+${PYSITELIB}/graphviz/parameters/__init__.pyo
+${PYSITELIB}/graphviz/parameters/base.py
+${PYSITELIB}/graphviz/parameters/base.pyc
+${PYSITELIB}/graphviz/parameters/base.pyo
+${PYSITELIB}/graphviz/parameters/engines.py
+${PYSITELIB}/graphviz/parameters/engines.pyc
+${PYSITELIB}/graphviz/parameters/engines.pyo
+${PYSITELIB}/graphviz/parameters/formats.py
+${PYSITELIB}/graphviz/parameters/formats.pyc
+${PYSITELIB}/graphviz/parameters/formats.pyo
+${PYSITELIB}/graphviz/parameters/formatters.py
+${PYSITELIB}/graphviz/parameters/formatters.pyc
+${PYSITELIB}/graphviz/parameters/formatters.pyo
+${PYSITELIB}/graphviz/parameters/mixins.py
+${PYSITELIB}/graphviz/parameters/mixins.pyc
+${PYSITELIB}/graphviz/parameters/mixins.pyo
+${PYSITELIB}/graphviz/parameters/renderers.py
+${PYSITELIB}/graphviz/parameters/renderers.pyc
+${PYSITELIB}/graphviz/parameters/renderers.pyo
+${PYSITELIB}/graphviz/piping.py
+${PYSITELIB}/graphviz/piping.pyc
+${PYSITELIB}/graphviz/piping.pyo
+${PYSITELIB}/graphviz/quoting.py
+${PYSITELIB}/graphviz/quoting.pyc
+${PYSITELIB}/graphviz/quoting.pyo
+${PYSITELIB}/graphviz/rendering.py
+${PYSITELIB}/graphviz/rendering.pyc
+${PYSITELIB}/graphviz/rendering.pyo
+${PYSITELIB}/graphviz/saving.py
+${PYSITELIB}/graphviz/saving.pyc
+${PYSITELIB}/graphviz/saving.pyo
+${PYSITELIB}/graphviz/sources.py
+${PYSITELIB}/graphviz/sources.pyc
+${PYSITELIB}/graphviz/sources.pyo
+${PYSITELIB}/graphviz/unflattening.py
+${PYSITELIB}/graphviz/unflattening.pyc
+${PYSITELIB}/graphviz/unflattening.pyo
diff -r 496de5f17424 -r c91dfce8a76d graphics/py-graphviz/distinfo
--- a/graphics/py-graphviz/distinfo Thu Dec 30 21:19:26 2021 +0000
+++ b/graphics/py-graphviz/distinfo Thu Dec 30 21:20:13 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2021/10/26 10:46:46 nia Exp $
+$NetBSD: distinfo,v 1.19 2021/12/30 21:20:13 adam Exp $
-BLAKE2s (graphviz-0.17.zip) = 3eef756b1a62ebd6298195460af355f7ff49b1619129a381511d255498c8dd8c
-SHA512 (graphviz-0.17.zip) = 02f5ef21f9e3bf3b609f43fe0d9cb51632ea43c878055746af62fda4dd55883f6ad58f69faecb6aba552100cc835901309c8c2ec833cd74c617619fce2d49600
-Size (graphviz-0.17.zip) = 193647 bytes
+BLAKE2s (graphviz-0.19.1.zip) = 02f0a389d5cf20c44c109e8bf57df7d552552126a33a3b8906895069c07e6093
+SHA512 (graphviz-0.19.1.zip) = 3aa078887458d7bcd173c46ee6e4d8dbdae0c9103755e61e5a027c18e5d8913990aa16a595e80228607c17db1aa9dffdb93e264cafafc8b6318bc3a87547bc5d
+Size (graphviz-0.19.1.zip) = 247779 bytes
Home |
Main Index |
Thread Index |
Old Index