diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-27 11:30:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-27 11:30:42 +0100 |
commit | ddb6fbc11e863756a24e1dc866c63dec00eac6fa (patch) | |
tree | 697bafc13819641c0cb81d469945e2a773adca86 /dev-python/cffi | |
parent | e466209c898f09389f2308d193286ff62b46c1dc (diff) |
gentoo auto-resync : 27:09:2023 - 11:30:42
Diffstat (limited to 'dev-python/cffi')
-rw-r--r-- | dev-python/cffi/Manifest | 6 | ||||
-rw-r--r-- | dev-python/cffi/cffi-1.15.1-r3.ebuild | 3 | ||||
-rw-r--r-- | dev-python/cffi/cffi-1.16.0_rc2.ebuild | 72 | ||||
-rw-r--r-- | dev-python/cffi/metadata.xml | 1 |
4 files changed, 80 insertions, 2 deletions
diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest index 475e2b4101fc..7c6ab969369a 100644 --- a/dev-python/cffi/Manifest +++ b/dev-python/cffi/Manifest @@ -4,5 +4,7 @@ AUX cffi-1.15.1-py312.patch 9546 BLAKE2B 877a82b69ff99a523ff1b392b52d1d115643a32 AUX cffi-1.15.1-python3.11-tests.patch 3023 BLAKE2B e25bd9d22b81187b0eab65073930980a2975eec3086462396cfc4796fd5273edab9af2324884c2e55880825ddd046b7ebc5054adfe57574ee691f0fa2145dcd2 SHA512 4d202f8c943bf33ea359f47aa3e53e007bc3dbeb3320a6efa302b1b1ec309b2dde72f6cfe1a591c594f3321ed5c65d61e9f79a03ba3107cd7008699686719497 DIST cffi-1.15.1-drop-deprecated-py.patch.xz 31244 BLAKE2B 7c8a6ca1166335fbd385de35ebb636f21049a4dd9c52171ec58da08a61dc64c271b4afa2d69bf8b877a8c9747dfae6a8529615bbed69f5a8ab30ba5fc99c61f4 SHA512 9aba4b172b070a1a1719de2c35667abe4c7b27208b8ca3ecbf90bf168ed694f4524154e69fada5ff6f141a94b8a438db16239ba353fa9914b318b77e41dfd920 DIST cffi-1.15.1.tar.gz 508501 BLAKE2B accc317385d9af7dbed3397afde63fbab63bfc935376d951802055c63796863ed102a940f192789924480b9b16751c8cf3d21caf9b262c479c61ffc977aac83c SHA512 e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5 -EBUILD cffi-1.15.1-r3.ebuild 2086 BLAKE2B 9451333f77d9dc309da92b2430dda2e562a5052d53fa1c8c391d1ae3fe98213197fc436ad121cf7951ae96cf19fd0de2c41ff8090dc338f9a78aeecac3e4b0cd SHA512 2192a6623e2cdec4316a5998689d91e6ddf0a6d2265ef2ec89b9901cdb9444fd34b490cfe4a7287181755d0afdd1c9ade40b1b184eb077c24b4113c4fbccabec -MISC metadata.xml 318 BLAKE2B f914459fac4ae3d8ac9273fb721c52494513b932676f570f02cc4cfb2283705d8cfc761806ffed23c6f31c95a967398edee01c1536547c1830def5ca4144c003 SHA512 ec451f8c535f0d01dc7bcd248c002745947982cd469a02ac247d0d34f4d7a33374fa10c28d8f074932f0548dc500c3270b499dd08b18acbb9d308777bcc7e4f0 +DIST cffi-1.16.0rc2.tar.gz 512927 BLAKE2B 5bb3f9728971a113d0c939bf4127bf541eaed3730486e9b4ba57432fa8c626d7688166f431db090a1248c2d3ddeaeee18fdf940dc08d7a4d3b7fda18d2d99861 SHA512 39d0a13a1f05b8f7f2d697e2324396f34588eabf226f6de5bf50a4931671827148ed25cb2f8003d0d3f4882580d71e6e1f485a63b964dd85e17c9e8b268213e6 +EBUILD cffi-1.15.1-r3.ebuild 2132 BLAKE2B 702a49e286d5d7ff6f2dc8a7791482ec3adad7b28018c33b4194521ee9f755dff5a152c9d8b8d03dc7bc6e7df86a9146af21c13cb01efeb101bb6239ab61ba79 SHA512 591922229d5babcd4710cd7f7a97d6788e6000a6b7be51a347dec4ea807f58b70f5c4ae5a934e41b7d35684e63d21853c0663195ce85dc6104f8ea7f647c4b56 +EBUILD cffi-1.16.0_rc2.ebuild 1746 BLAKE2B 2bbca063c022adcddd61da7ed5f654c15092a2d0b28c84711d2fa93a08ebb127911dc8701ba8766eed189b59341881525640e03d81ba8c00aee327ae4f82f8a6 SHA512 84773c8764bec9b3fef2a6ac0f41576e00f07e2491be762904d16219a20c92ab09121682c2d1a97fcb650abf9b18d5e95cdccc98e9858ccc4d388fa0883ee356 +MISC metadata.xml 376 BLAKE2B 869698c9756447929b5607d37c334442d76fef960c109ebe3b807de5019339de4ce19009d70b2eba506ee2608db9454c277cfb07ea025a39be6ea65b2ed93f74 SHA512 84c109a295e6f272c03107b69431f213dff9042a7e5c784dc725728aeb3a60dbf9c860551aae6260e5fc2dadeaa6eb27488186abe1d108bb21145d736de7e5b6 diff --git a/dev-python/cffi/cffi-1.15.1-r3.ebuild b/dev-python/cffi/cffi-1.15.1-r3.ebuild index 63865aebb8a4..84db58f7f227 100644 --- a/dev-python/cffi/cffi-1.15.1-r3.ebuild +++ b/dev-python/cffi/cffi-1.15.1-r3.ebuild @@ -37,6 +37,9 @@ RDEPEND=" BDEPEND=" ${RDEPEND} virtual/pkgconfig + test? ( + dev-python/py[${PYTHON_USEDEP}] + ) " distutils_enable_sphinx doc/source diff --git a/dev-python/cffi/cffi-1.16.0_rc2.ebuild b/dev-python/cffi/cffi-1.16.0_rc2.ebuild new file mode 100644 index 000000000000..8269ab390919 --- /dev/null +++ b/dev-python/cffi/cffi-1.16.0_rc2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 8 -- sys-apps/portage dep +EAPI=8 + +# py3.12 support is experimental, expect problems in revdeps +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +# DO NOT ADD pypy to PYTHON_COMPAT +# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 toolchain-funcs pypi + +DESCRIPTION="Foreign Function Interface for Python calling C code" +HOMEPAGE=" + https://cffi.readthedocs.io/ + https://pypi.org/project/cffi/ +" + +LICENSE="MIT" +SLOT="0/${PV}" +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" + +# Needs recent libffi for HPPA fixes +DEPEND=" + >=dev-libs/libffi-3.4.4-r1:= +" +# setuptools as a modern distutils provider +RDEPEND=" + ${DEPEND} + dev-python/pycparser[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + virtual/pkgconfig + test? ( + dev-python/py[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx doc/source +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch +) + +src_prepare() { + if [[ ${CHOST} == *darwin* ]] ; then + # Don't obsessively try to find libffi + sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die + fi + distutils-r1_src_prepare +} + +src_configure() { + tc-export PKG_CONFIG +} + +python_test() { + local EPYTEST_IGNORE=( + # these tests call pip + testing/cffi0/test_zintegration.py + ) + + "${EPYTHON}" -c "import _cffi_backend as backend" || die + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest src/c testing +} diff --git a/dev-python/cffi/metadata.xml b/dev-python/cffi/metadata.xml index 0919203c19f9..6480813148bc 100644 --- a/dev-python/cffi/metadata.xml +++ b/dev-python/cffi/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="pypi">cffi</remote-id> + <remote-id type="github">python-cffi/cffi</remote-id> </upstream> </pkgmetadata> |