From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41CC2138335 for ; Sun, 17 Nov 2019 14:24:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AB21E086E; Sun, 17 Nov 2019 14:24:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F14DCE086C for ; Sun, 17 Nov 2019 14:24:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4E53934CF04 for ; Sun, 17 Nov 2019 14:24:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0297B888 for ; Sun, 17 Nov 2019 14:23:59 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1574000632.b723f4331e032ac59ca2502b738838d35f01c394.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cryptography/Manifest dev-python/cryptography/cryptography-2.8.ebuild X-VCS-Directories: dev-python/cryptography/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b723f4331e032ac59ca2502b738838d35f01c394 X-VCS-Branch: master Date: Sun, 17 Nov 2019 14:23:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8c18a7d2-69c2-4d96-b3c6-28a163e849c0 X-Archives-Hash: 8da316fb6ec8434ab5e5ee161fd15de0 commit: b723f4331e032ac59ca2502b738838d35f01c394 Author: Michał Górny gentoo org> AuthorDate: Sun Nov 17 14:22:14 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Nov 17 14:23:52 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b723f433 dev-python/cryptography: Inline cryptography_vectors Closes: https://bugs.gentoo.org/700342 Signed-off-by: Michał Górny gentoo.org> dev-python/cryptography/Manifest | 1 + dev-python/cryptography/cryptography-2.8.ebuild | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index ee134edad07..e95ee2ffaf8 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -1,2 +1,3 @@ DIST cryptography-2.6.1.tar.gz 491580 BLAKE2B b81114b57e9973c80fe999a63a3b1269d6289ac67851fedc263927b74e9e5ec4f35356cf5d46e4a27a994d5a3b2b3b599fea264b3ebce3a0cac27abfde3ef046 SHA512 f14319e24d9dca52e74548cada5b78a6235f089ef875dbff4799e862f94da8b087f1b6e03e84dcef9fc7d7693c4a349c5f0cd54b8535806da777420ce8757d39 DIST cryptography-2.8.tar.gz 504516 BLAKE2B 3a853bf59a752acee9e9607f3f35f3815701c6068a1ffa5b6604ec648a31a5d4e31f13a1b19f3156c703313800242d8b06dd71a54a4eb0cc68481dea894002f3 SHA512 bf3ca44123c693b0602be19445925f9efebd46c469909e47b7907d57141fb6bd99268c33e1fe3f42a08ab8b4edd4f98f21b6a682f530352313334dfd31ba91e7 +DIST cryptography_vectors-2.8.tar.gz 35102030 BLAKE2B 8e98e12bab31a2097a72c849f52ee93b9b684a8923c140722419154471bd695c6287ff4498c9fe326662c7d9a9f5d9ebaa55dc4d5a0d8180a6827ae244464006 SHA512 d328082d3a65b8036d396172d7e42c753c842e9310850a77c6ccd99c9905d48bbc3e3319d216013c1370b8439f0f8056749ae94b1abf9a5b7088435acdeed7fb diff --git a/dev-python/cryptography/cryptography-2.8.ebuild b/dev-python/cryptography/cryptography-2.8.ebuild index 0a68d221c48..777545258fb 100644 --- a/dev-python/cryptography/cryptography-2.8.ebuild +++ b/dev-python/cryptography/cryptography-2.8.ebuild @@ -8,14 +8,17 @@ PYTHON_REQ_USE="threads(+)" inherit distutils-r1 flag-o-matic +VEC_P=cryptography_vectors-${PV} DESCRIPTION="Library providing cryptographic recipes and primitives" HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" LICENSE="|| ( Apache-2.0 BSD )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="libressl idna" +IUSE="libressl idna test" +RESTRICT="!test? ( test )" # the openssl 1.0.2l-r1 needs to be updated again :( # It'd theb be able to go into the || section again @@ -43,19 +46,22 @@ DEPEND="${RDEPEND} $(python_gen_cond_dep '>=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]' 'python*') $(python_gen_cond_dep '!~dev-python/cffi-1.11.3[${PYTHON_USEDEP}]' 'python*') test? ( - ~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}] dev-python/pretend[${PYTHON_USEDEP}] dev-python/iso8601[${PYTHON_USEDEP}] dev-python/pytz[${PYTHON_USEDEP}] >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}] !~dev-python/hypothesis-3.79.2[${PYTHON_USEDEP}] dev-python/pyasn1-modules[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] )" DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) -distutils_enable_tests pytest - python_configure_all() { append-cflags $(test-flags-CC -pthread) } + +python_test() { + local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} + pytest -vv || die "Tests fail with ${EPYTHON}" +}