diff options
| author | Crucible <crucible@localhost> | 2026-10-15 17:23:01 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-15 17:23:01 -0500 |
| commit | 5087f37a4d9063896fce9cf625aa2479bc540b94 (patch) | |
| tree | ba40439cb50c33940edaf2c7ea4801889a838fed /dev-python/zope-interface/zope-interface-8.7.ebuild | |
| parent | 12d66102ecbcb4a4eef51d1b7f06abe9080be243 (diff) | |
| download | srcux-5087f37a4d9063896fce9cf625aa2479bc540b94.tar.gz srcux-5087f37a4d9063896fce9cf625aa2479bc540b94.tar.xz srcux-5087f37a4d9063896fce9cf625aa2479bc540b94.zip | |
Publish srcux candidate 0000000660-20261015-172104
Diffstat (limited to 'dev-python/zope-interface/zope-interface-8.7.ebuild')
| -rw-r--r-- | dev-python/zope-interface/zope-interface-8.7.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/zope-interface/zope-interface-8.7.ebuild b/dev-python/zope-interface/zope-interface-8.7.ebuild new file mode 100644 index 000000000000..b3b5480ac141 --- /dev/null +++ b/dev-python/zope-interface/zope-interface-8.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN/-/.} +PYPI_VERIFY_REPO="https://github.com/zopefoundation/zope.interface" +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Interfaces for Python" +HOMEPAGE=" + https://github.com/zopefoundation/zope.interface/ + https://pypi.org/project/zope.interface/ +" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="+native-extensions test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-testing[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # force failure if extension build fails + sed -i -e "/'build_ext':/d" setup.py || die + if ! use native-extensions; then + sed -i -e '/ext_modules=/d' setup.py || die + fi +} + +python_test() { + local -x PURE_PYTHON=0 + if ! use native-extensions || [[ ${EPYTHON} == pypy3* ]]; then + PURE_PYTHON=1 + fi + + eunittest -s "${BUILD_DIR}/install$(python_get_sitedir)/zope" +} |
