* [gentoo-commits] repo/gentoo:master commit in: dev-python/whirlpool/files/, dev-python/whirlpool/
@ 2018-01-06 10:13 Mikle Kolyada
0 siblings, 0 replies; only message in thread
From: Mikle Kolyada @ 2018-01-06 10:13 UTC (permalink / raw
To: gentoo-commits
commit: fb968a717836a9c27da811b488873258d73c7d4a
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 6 10:11:21 2018 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Sat Jan 6 10:13:01 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb968a71
dev-python/whirlpool: remove last rited package
Closes: https://bugs.gentoo.org/635732
dev-python/whirlpool/Manifest | 1 -
dev-python/whirlpool/files/tests.py | 96 ----------------------------
dev-python/whirlpool/metadata.xml | 12 ----
dev-python/whirlpool/whirlpool-0.3-r1.ebuild | 37 -----------
4 files changed, 146 deletions(-)
diff --git a/dev-python/whirlpool/Manifest b/dev-python/whirlpool/Manifest
deleted file mode 100644
index 52ddc2322d8..00000000000
--- a/dev-python/whirlpool/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST Whirlpool-0.3.tar.gz 34508 BLAKE2B df489d96dbfad58487669605781a6f46108710ca2974120dc2535c4ed9468e7ce6589987e493fad56b3a3b97cc8427b33bef42b07e834c76b2b1b3672f90f83a SHA512 d9fed84ff0af885534e70f537c0c17f19ad46d31b2b1d77749328e6cba37a805bb8e178539d09a479b0d7a7e93d11f69858db5b3fdc6c3fad9a89fc727004770
diff --git a/dev-python/whirlpool/files/tests.py b/dev-python/whirlpool/files/tests.py
deleted file mode 100644
index 521148b33ed..00000000000
--- a/dev-python/whirlpool/files/tests.py
+++ /dev/null
@@ -1,96 +0,0 @@
-import unittest
-
-import whirlpool
-
-from binascii import b2a_hex
-
-
-results = {
- 'empty' : '19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3',
- 'tqbfjotld' : 'b97de512e91e3828b40d2b0fdce9ceb3c4a71f9bea8d88e75c4fa854df36725fd2b52eb6544edcacd6f8beddfea403cb55ae31f03ad62a5ef54e42ee82c3fb35',
- 'tqbfjotle' : 'c27ba124205f72e6847f3e19834f925cc666d0974167af915bb462420ed40cc50900d85a1f923219d832357750492d5c143011a76988344c2635e69d06f2d38c',
- 'tqbf' : '317edc3c5172ea5987902aa9c4f1defedf4d5aa59209bdf7574cc6da0039852c24b8da70ecb07997ff83e86d32d2851215d3dcbd6bb9736bdef21c349d483e6d',
-}
-
-
-class TestWhirlpool(unittest.TestCase):
-
- def test_hash_empty(self):
- self.assertEqual(b2a_hex(whirlpool.hash('')), results['empty'])
-
- def test_hash_fox(self):
- self.assertEqual(
- b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy dog')),
- results['tqbfjotld'])
- self.assertEqual(
- b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy eog')),
- results['tqbfjotle'])
-
- def test_new_empty(self):
- wp = whirlpool.new()
- self.assertEqual(b2a_hex(wp.digest()), results['empty'])
- self.assertEqual(wp.hexdigest(), results['empty'])
-
- def test_new_fox(self):
- wp1 = whirlpool.new('The quick brown fox jumps over the lazy dog')
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld'])
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld'])
-
- wp2 = whirlpool.new('The quick brown fox jumps over the lazy eog')
- self.assertEqual(b2a_hex(wp2.digest()), results['tqbfjotle'])
- self.assertEqual(wp2.hexdigest(), results['tqbfjotle'])
-
- def test_update_copy(self):
- wp1 = whirlpool.new()
- wp2 = wp1.copy()
- wp1.update('The quick brown fox')
- wp3 = wp1.copy()
-
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbf'])
- self.assertEqual(wp1.hexdigest(), results['tqbf'])
-
- self.assertEqual(b2a_hex(wp2.digest()), results['empty'])
- self.assertEqual(wp2.hexdigest(), results['empty'])
-
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbf'])
- self.assertEqual(wp3.hexdigest(), results['tqbf'])
-
- wp1.update(' jumps over the lazy dog')
-
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld'])
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld'])
-
- self.assertEqual(b2a_hex(wp2.digest()), results['empty'])
- self.assertEqual(wp2.hexdigest(), results['empty'])
-
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbf'])
- self.assertEqual(wp3.hexdigest(), results['tqbf'])
-
- wp3.update(' jumps over the lazy eog')
-
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld'])
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld'])
-
- self.assertEqual(b2a_hex(wp2.digest()), results['empty'])
- self.assertEqual(wp2.hexdigest(), results['empty'])
-
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbfjotle'])
- self.assertEqual(wp3.hexdigest(), results['tqbfjotle'])
-
- def test_digest_size(self):
- wp = whirlpool.new()
- self.assertEqual(wp.digest_size, 64)
- with self.assertRaisesRegexp(AttributeError,
- 'digest_size.*not writable'):
- wp.digest_size = 32
-
- def test_block_size(self):
- wp = whirlpool.new()
- self.assertEqual(wp.block_size, 64)
- with self.assertRaisesRegexp(AttributeError,
- 'block_size.*not writable'):
- wp.block_size = 32
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/dev-python/whirlpool/metadata.xml b/dev-python/whirlpool/metadata.xml
deleted file mode 100644
index 1e7c21380a0..00000000000
--- a/dev-python/whirlpool/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>python@gentoo.org</email>
- <name>Python</name>
- </maintainer>
- <upstream>
- <remote-id type="pypi">Whirlpool</remote-id>
- <remote-id type="github">radiosilence/python-whirlpool</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/whirlpool/whirlpool-0.3-r1.ebuild b/dev-python/whirlpool/whirlpool-0.3-r1.ebuild
deleted file mode 100644
index 75d9969db99..00000000000
--- a/dev-python/whirlpool/whirlpool-0.3-r1.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1
-
-MY_PN="Whirlpool"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Bindings for whirlpool hash reference implementation"
-HOMEPAGE="https://pypi.python.org/pypi/Whirlpool https://github.com/radiosilence/python-whirlpool"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-
-SLOT="0"
-LICENSE="public-domain"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="test"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]"
-
-S="${WORKDIR}"/${MY_P}
-
-python_prepare_all() {
- sed \
- -e "/data_files/s:whirlpool:share/whirlpool:g" \
- -i setup.py || die
- distutils-r1_python_prepare_all
-}
-
-python_test() {
- ${PYTHON} "${FILESDIR}"/tests.py || die
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-06 10:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-06 10:13 [gentoo-commits] repo/gentoo:master commit in: dev-python/whirlpool/files/, dev-python/whirlpool/ Mikle Kolyada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox