Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cffi/
Date: Fri, 21 Feb 2020 16:44:15
Message-Id: 1582303442.368e9efd92c3e64678c674a8958b5b215a109256.mgorny@gentoo
1 commit: 368e9efd92c3e64678c674a8958b5b215a109256
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 21 14:25:17 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 21 16:44:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=368e9efd
7
8 dev-python/cffi: Bump to 1.14.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cffi/Manifest | 1 +
13 dev-python/cffi/cffi-1.14.0.ebuild | 43 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest
17 index f960a627812..7dd058f8387 100644
18 --- a/dev-python/cffi/Manifest
19 +++ b/dev-python/cffi/Manifest
20 @@ -4,4 +4,5 @@ DIST cffi-1.11.5.tar.gz 438498 BLAKE2B 2e22cf3c2d50d76f8f25b7ac31a77fac8a49e2b2f
21 DIST cffi-1.12.1.tar.gz 453584 BLAKE2B fb0fee63f5cc4dacd1055036ed6e7882452e848dfece99adadad7ebb1f0cc4171d1be5370fda5552da45127e374382b29cdc8e1f5122081d2551604630774cac SHA512 1863ad26d730d629e1397ba155bebd3f9edc881d661fda5301a5acb080c8e006925317c1b092f054c46834d693c437d6e91a687f379c9ab029223a9a159eaf48
22 DIST cffi-1.12.3.tar.gz 456340 BLAKE2B bac7265ed9b0858d791443572f39316fdf809c8e40b5a2557ccd667858d994cb44368b4b74655813833d3c5cd5c266fbb5227d777db8fcedc599917f31dab7ad SHA512 9070f5cfe543c9261a79f995548899c3e7539ee20f562ba91a4a909887745bd28448b0e38241031d6b2ab87286fd0ec91768b8bf6577716427612d41b0ed3b93
23 DIST cffi-1.13.2.tar.gz 460243 BLAKE2B 74603f2b1bde068a955e94912488fd7d8914267ec2d0cbd8574f62376fc24ef16d85d59e9fee7f6015e6d242726ea25235788faddedc68deb56ae71e627d6322 SHA512 2c57d9c06c39e95498a54408dc39940427190f3c03e1b8f1a3584140db08a5775dd12e6e67b03093429c130af579d01519b0fc868b99ba7a530068ed22d38522
24 +DIST cffi-1.14.0.tar.gz 463065 BLAKE2B 4d1e8a92241db801848ef8bd05ea15a31c7f61ea426ce4da184aff00df786348d2c76de9dc48898c814478aed9750b665868df24ad39435062cd7e1c84163e52 SHA512 4c5451eeede1d48a8f4b40e25b845ad1863b8bf3bd39624e6c693c2800d89a13efedc4c43b37e317a035613bffc2e3fd5f7e583c46cb283cb5cb930356f86253
25 DIST cffi-1.9.1.tar.gz 407108 BLAKE2B f95e99cbb7a10aacb714d6ddbe85755e24d4fbdebb9ada0ab87c95b58aa56b364df612fbdfbf6fcc3a9dfff6e96fe5e979ee37b1c6c9b62b6ba8d3a9565def2f SHA512 6e76f181b6b7b760a14ad70338edd104a8b8e2eac5680e336d3868e0bd031a1665608e29a65dc0c56806afb8a8c03811586f151f3acef11e54e60c1bfcf902e3
26
27 diff --git a/dev-python/cffi/cffi-1.14.0.ebuild b/dev-python/cffi/cffi-1.14.0.ebuild
28 new file mode 100644
29 index 00000000000..feadc3e9d35
30 --- /dev/null
31 +++ b/dev-python/cffi/cffi-1.14.0.ebuild
32 @@ -0,0 +1,43 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +# DO NOT ADD pypy to PYTHON_COMPAT
39 +# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
42 +
43 +inherit distutils-r1 toolchain-funcs
44 +
45 +DESCRIPTION="Foreign Function Interface for Python calling C code"
46 +HOMEPAGE="https://cffi.readthedocs.io/ https://pypi.org/project/cffi/"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0/${PV}"
51 +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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="test"
53 +RESTRICT="!test? ( test )"
54 +
55 +DEPEND="virtual/libffi:="
56 +RDEPEND="${DEPEND}
57 + dev-python/pycparser[${PYTHON_USEDEP}]"
58 +BDEPEND="${RDEPEND}
59 + virtual/pkgconfig
60 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
61 +
62 +distutils_enable_sphinx doc/source
63 +
64 +src_configure() {
65 + tc-export PKG_CONFIG
66 +}
67 +
68 +python_test() {
69 + "${EPYTHON}" -c "import _cffi_backend as backend" || die
70 + pytest -x -vv \
71 + --ignore testing/test_zintegration.py \
72 + --ignore testing/embedding \
73 + c/ testing/ \
74 + || die "Testing failed with ${EPYTHON}"
75 +}