diff options
Diffstat (limited to 'dev-python/pydot')
-rw-r--r-- | dev-python/pydot/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pydot/files/pydot-1.4.1-unittest.patch | 74 | ||||
-rw-r--r-- | dev-python/pydot/pydot-1.4.1.ebuild | 36 | ||||
-rw-r--r-- | dev-python/pydot/pydot-1.4.2.ebuild | 2 |
4 files changed, 2 insertions, 115 deletions
diff --git a/dev-python/pydot/Manifest b/dev-python/pydot/Manifest index 8d16f3a3135e..c4770bfd4746 100644 --- a/dev-python/pydot/Manifest +++ b/dev-python/pydot/Manifest @@ -1,6 +1,3 @@ -AUX pydot-1.4.1-unittest.patch 3496 BLAKE2B d5aa063d1700836c2aa967c0856c4b693f0820f1c3ecf41de444781a29f4ff4fde6d8d2cbb30458364efe47154fb6ad50c545fc45fff6fd27864483ab4bef2e6 SHA512 0204de6a767d062e4074344ce093da6789145407c7aab3706abc72d15e655489b7e43f1038b8d5951ac9a107aa0ca8a399e119826100d05433d13b537ae48cdb -DIST pydot-1.4.1.tar.gz 264987 BLAKE2B 61db2b6dbeab582981bf96054686c927d8d4548ac19a6c197ab1725f92c87e973c2dcd84d4c6c04cb2ca76b8f40814cfee1d5a53e4952065a538fc271e75d2a0 SHA512 b5f16b59908586df61cd415cb1a3e242fb69c39674a82b171862beff1f3727f47cba39bdd806901cb56bc8a6888783a53d112b1b70044e124ea992789d77f938 DIST pydot-1.4.2.tar.gz 272678 BLAKE2B 966f2c4ef3e26a63cc50ab89b5b6b5b413aabdfeddf994f2d5ba9dedaa1ed3152dd8060186e7380c3e768b783f7bfe1971cd600c18d1b73f7ac63db08ee3ace9 SHA512 caa8051561710129b5164fd1392da941829fd977092a6ec8b00efe7a199d2d60bc7ef13cb0e51615f384550f0fb80190d0f56b83d8d80d1fe372efb5dbbd3632 -EBUILD pydot-1.4.1.ebuild 921 BLAKE2B 9fe83e9bc4769bf75bc0148e04b2e45ca2d5a349fa84aa590505651a3ec85564662e2a15d070fe906df251b7777312d760fa7ac9a61eee2b4be39d3709ebb91d SHA512 eee5e4069681e0a24116d919d77f0c0e1158edd9ad7aec3f5e9a3e24fa4a7f1ffb09e03cebe69b35a0a0ac860813b8577381966c0979f3cc6f06bc5edac7a4f7 -EBUILD pydot-1.4.2.ebuild 865 BLAKE2B e476e66b3dc8a7f572d7af6a167f8c83efdff364720b3f026d79c72d3cb37c3f3bacc2953a7dedd9804291e4a8c08e3351ff0d306cf42af996dae7f56d2d47e2 SHA512 bb8d272bcd1d97e2fc3be32cc5b9b39e5560db435127113e0ac6b5014ac147a716ebecf44fcb9ff9651e128cb614d0aca26f9c281b6d238eb94ef836bf29f398 +EBUILD pydot-1.4.2.ebuild 864 BLAKE2B b5f7baacef1ee780c2659dd2df9437a837458ae8c2eacf404fa8dc7dc1dd391b67c4fb80d03628b47e46b1d5e2f729a27e9315aa44083dc9e380847a0e002089 SHA512 a401cef3578978ac2244208f117ff74f4b82d54b0dc7740748a7dbc6105f8d5918cfc1afd53a2964ab10d7a71b8499faa79175ab0ae544c1b2f05f1eb78ab42f MISC metadata.xml 371 BLAKE2B 2593c34d4b9be527091b66e955309dbf0212067a131283eb68fdde7d9b46e124eccf9d0b492a777ebae61d65b2ae72ed79f2729b51a2512af05a6b6e42f94588 SHA512 00e92e9c7ecbaf0e53463ba97ea63973786cd9948cdfce8fc3f4fdf5cfa3973b6a6433d5369c1d956085b44675a5abd994b193b66a07c09ec1a5eb2f78aadb1a diff --git a/dev-python/pydot/files/pydot-1.4.1-unittest.patch b/dev-python/pydot/files/pydot-1.4.1-unittest.patch deleted file mode 100644 index b3c0d0e426b5..000000000000 --- a/dev-python/pydot/files/pydot-1.4.1-unittest.patch +++ /dev/null @@ -1,74 +0,0 @@ -From a10ced4d132361027a545a471af4541dea8c5cf5 Mon Sep 17 00:00:00 2001 -From: Peter Nowee <peter@peternowee.com> -Date: Wed, 26 Jun 2019 15:43:38 +0800 -Subject: [PATCH] Fix multi.dot Graphviz regression test - -Commit d6602ad of 2018-12-01 fixed the regression test broken by commit -2d55978 of 2016-07-01. This revealed that `test/graphs/multi.dot` was -failing. - -`multi.dot` was introduced in commit 2b3f088 of 2010-11-07 together -with many of the other tests still here today. It has not been touched -since. It is a DOT-file containing two digraphs. The regression test -compares the JPEG images rendered from the DOT-file by pydot with those -rendered by Graphviz's dot directly. - -Commit 66734d2 of 2016-07-01 is the actual cause of the failure. It -changed one of the render methods of the regression test, -`_render_with_pydot`, from calculating a single hash for all the JPEG -images to calculating separate hashes for each JPEG image and then -concatenating those hashes in one long string. The other render method, -`_render_with_graphviz`, still calculates a single hash over all data. -For DOT-files that generate only one image the end result is the same, -but because `multi.dot` has two graphs, it produces two images and this -leads to comparing a string of two hashes with one single hash. - -I do not think the change in generating the hash was intentional, for -the following reasons: -- Commit 66734d2 states that its purpose was to adapt the test to an - API change in pydot. It does not mention a deliberate choice to - change the testing method. -- There was no effort to change `_render_with_graphviz` to also produce - multiple hashes. -- Except for easier debugging in case of a failing test with multiple - images (AFAICT, only `multi.dot`), I do not see much added benefit in - checking a concatenation of the hashes of all images vs. checking one - hash of all images together: In both cases the test will fail if one - or more images is rendered differently. -- Given that there were many commits authored that same hour, including - commit 2d55978 which broke the regression tests, I suspect the author - did not run the tests for each individual commit, but only at the end - of that batch, and was therefore also not alerted of this change by - the test suite. - -Assuming that the change was not intended, this commit will now revert -`_render_with_pydot` to the old behavior of calculating a single hash -from all JPEG image data. - -Tested with Debian 9.9, Graphviz 2.38.0-17, Python 2.7.13-2 and 3.5.3-1. - -Fixes https://github.com/pydot/pydot/issues/204. ---- - test/pydot_unittest.py | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/test/pydot_unittest.py b/test/pydot_unittest.py -index 881ee16..64aa856 100644 ---- a/test/pydot_unittest.py -+++ b/test/pydot_unittest.py -@@ -194,11 +194,11 @@ def _render_with_graphviz(self, filename, encoding): - - def _render_with_pydot(self, filename, encoding): - c = pydot.graph_from_dot_file(filename, encoding=encoding) -- sha = '' -+ jpe_data = bytearray() - for g in c: -- jpe_data = g.create(prog=TEST_PROGRAM, format='jpe', encoding=encoding) -- sha += sha256(jpe_data).hexdigest() -- return sha -+ jpe_data.extend(g.create(prog=TEST_PROGRAM, format='jpe', -+ encoding=encoding)) -+ return sha256(jpe_data).hexdigest() - - def test_my_regression_tests(self): - path = os.path.join(test_dir, TESTS_DIR_1) diff --git a/dev-python/pydot/pydot-1.4.1.ebuild b/dev-python/pydot/pydot-1.4.1.ebuild deleted file mode 100644 index 76013bf45132..000000000000 --- a/dev-python/pydot/pydot-1.4.1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) - -inherit distutils-r1 - -DESCRIPTION="Python interface to Graphviz's Dot language" -HOMEPAGE="https://github.com/erocarrera/pydot https://pypi.org/project/pydot/" -# pypi releases don't include tests -SRC_URI="https://github.com/erocarrera/pydot/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/pyparsing-2.1.4[${PYTHON_USEDEP}] - media-gfx/graphviz" -BDEPEND=" - test? ( - ${RDEPEND} - dev-python/chardet[${PYTHON_USEDEP}] - )" - -PATCHES=( - "${FILESDIR}"/${P}-unittest.patch -) - -python_test() { - cd test || die - "${PYTHON}" pydot_unittest.py || die "Test failed with ${EPYTHON}" -} diff --git a/dev-python/pydot/pydot-1.4.2.ebuild b/dev-python/pydot/pydot-1.4.2.ebuild index 8786e3683073..f50489b49e96 100644 --- a/dev-python/pydot/pydot-1.4.2.ebuild +++ b/dev-python/pydot/pydot-1.4.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/pydot/pydot/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris" IUSE="test" RESTRICT="!test? ( test )" |