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: Sat, 27 Aug 2022 23:05:07
Message-Id: 1661623934.34db44490bfb7966b867691a8f9f2028048fcf5a.mgorny@gentoo
1 commit: 34db44490bfb7966b867691a8f9f2028048fcf5a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 18:12:14 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 18:12:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34db4449
7
8 dev-python/cffi: Remove old
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.15.0-r1.ebuild | 72 -----------------------------------
14 2 files changed, 73 deletions(-)
15
16 diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest
17 index 764da7e5fa57..9418f03e5512 100644
18 --- a/dev-python/cffi/Manifest
19 +++ b/dev-python/cffi/Manifest
20 @@ -1,2 +1 @@
21 -DIST cffi-1.15.0.tar.gz 484058 BLAKE2B 0d2d470c7eb11b8a9526be816b153c4483a5cfb529d3d220a804842facae1f06e2a822aa2be9abb1b5648cb36a97033bffc1dd235d83bdf8c075d67a907aa7d9 SHA512 ee83efde6f77f4a0c5889088c4c208ed7b9071fe06dfc16a8d2396de07f78fe859e1e39866760198a9d700f3b7359e8715e8a3e4907feb81d3fc4b8dd0dbaca1
22 DIST cffi-1.15.1.tar.gz 508501 BLAKE2B accc317385d9af7dbed3397afde63fbab63bfc935376d951802055c63796863ed102a940f192789924480b9b16751c8cf3d21caf9b262c479c61ffc977aac83c SHA512 e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5
23
24 diff --git a/dev-python/cffi/cffi-1.15.0-r1.ebuild b/dev-python/cffi/cffi-1.15.0-r1.ebuild
25 deleted file mode 100644
26 index 56c019e4c357..000000000000
27 --- a/dev-python/cffi/cffi-1.15.0-r1.ebuild
28 +++ /dev/null
29 @@ -1,72 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
34 -EAPI=7
35 -
36 -DISTUTILS_USE_PEP517=setuptools
37 -# DO NOT ADD pypy to PYTHON_COMPAT
38 -# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
39 -PYTHON_COMPAT=( python3_{8..11} )
40 -
41 -inherit distutils-r1 toolchain-funcs
42 -
43 -DESCRIPTION="Foreign Function Interface for Python calling C code"
44 -HOMEPAGE="
45 - https://cffi.readthedocs.io/
46 - https://pypi.org/project/cffi/
47 -"
48 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 -
50 -LICENSE="MIT"
51 -SLOT="0/${PV}"
52 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
53 -
54 -DEPEND="
55 - dev-libs/libffi:=
56 -"
57 -RDEPEND="
58 - ${DEPEND}
59 - dev-python/pycparser[${PYTHON_USEDEP}]
60 -"
61 -BDEPEND="
62 - ${RDEPEND}
63 - virtual/pkgconfig
64 -"
65 -
66 -distutils_enable_sphinx doc/source
67 -distutils_enable_tests pytest
68 -
69 -PATCHES=(
70 - "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch
71 -)
72 -
73 -src_prepare() {
74 - if [[ ${CHOST} == *darwin* ]] ; then
75 - # Don't obsessively try to find libffi
76 - sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die
77 - fi
78 - distutils-r1_src_prepare
79 -}
80 -
81 -src_configure() {
82 - tc-export PKG_CONFIG
83 -}
84 -
85 -python_test() {
86 - local EPYTEST_DESELECT=()
87 - local EPYTEST_IGNORE=(
88 - # these tests call pip
89 - testing/cffi0/test_zintegration.py
90 - )
91 - if [[ ${EPYTHON} == python3.11 ]]; then
92 - EPYTEST_DESELECT+=(
93 - # exception printing format has changed
94 - c/test_c.py::test_callback_exception
95 - )
96 - fi
97 -
98 - "${EPYTHON}" -c "import _cffi_backend as backend" || die
99 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
100 - epytest c testing
101 -}