Diff cffi-1.15.1-r3 with a cffi-1.16.0
/usr/portage/dev-python/cffi/cffi-1.16.0.ebuild 2023-10-09 14:52:30.264368370 +0300 | ||
---|---|---|
18 | 18 |
https://cffi.readthedocs.io/ |
19 | 19 |
https://pypi.org/project/cffi/ |
20 | 20 |
" |
21 |
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-drop-deprecated-py.patch.xz" |
|
22 | 21 | |
23 | 22 |
LICENSE="MIT" |
24 | 23 |
SLOT="0/${PV}" |
25 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" |
|
24 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" |
|
26 | 25 | |
27 | 26 |
# Needs recent libffi for HPPA fixes |
28 | 27 |
DEPEND=" |
... | ... | |
47 | 46 | |
48 | 47 |
PATCHES=( |
49 | 48 |
"${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch |
50 |
"${FILESDIR}"/${P}-hppa.patch |
|
51 |
"${FILESDIR}"/${P}-python3.11-tests.patch |
|
52 |
"${WORKDIR}"/${P}-drop-deprecated-py.patch |
|
53 |
"${FILESDIR}"/${P}-py312.patch |
|
54 | 49 |
) |
55 | 50 | |
56 | 51 |
src_prepare() { |
... | ... | |
70 | 65 |
# these tests call pip |
71 | 66 |
testing/cffi0/test_zintegration.py |
72 | 67 |
) |
73 |
local EPYTEST_DESELECT=() |
|
74 |
if [[ ${EPYTHON} == python3.12 ]]; then |
|
75 |
EPYTEST_DESELECT+=( |
|
76 |
# TODO: these tests hang |
|
77 |
testing/embedding |
|
78 |
) |
|
79 |
fi |
|
80 | 68 | |
81 | 69 |
"${EPYTHON}" -c "import _cffi_backend as backend" || die |
82 | 70 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
83 |
epytest c testing |
|
71 |
epytest src/c testing |
|
84 | 72 |
} |