summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-14 23:28:58 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-14 23:29:33 -0400
commitc6cc9a491e4fd9aa3f33bb7aca3e0a5dbfeba5e0 (patch)
tree2dfc17ba55c7d4bd6d8898be34976c3b5a822673 /dev-python/zope-interface
parentdev-python/zope-testing: sync keywords with zope-interface (diff)
downloadgentoo-c6cc9a491e4fd9aa3f33bb7aca3e0a5dbfeba5e0.tar.gz
gentoo-c6cc9a491e4fd9aa3f33bb7aca3e0a5dbfeba5e0.tar.bz2
gentoo-c6cc9a491e4fd9aa3f33bb7aca3e0a5dbfeba5e0.zip
dev-python/zope-interface: bump to 5.1.0
Package-Manager: Portage-2.3.99, Repoman-2.3.22_p29 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-python/zope-interface')
-rw-r--r--dev-python/zope-interface/Manifest1
-rw-r--r--dev-python/zope-interface/files/5.1.0-drop-coverage.patch24
-rw-r--r--dev-python/zope-interface/zope-interface-4.7.1.ebuild2
-rw-r--r--dev-python/zope-interface/zope-interface-5.1.0.ebuild51
4 files changed, 77 insertions, 1 deletions
diff --git a/dev-python/zope-interface/Manifest b/dev-python/zope-interface/Manifest
index 130d514997a9..84d792f65ea5 100644
--- a/dev-python/zope-interface/Manifest
+++ b/dev-python/zope-interface/Manifest
@@ -1 +1,2 @@
DIST zope.interface-4.7.1.tar.gz 151374 BLAKE2B 87900329d4634456287fe0fc78093df02f9b0e27fe2fd9f6dc039253f5814f2a00936e0f49e6001754c192eed323cfad068cf863d3e52ed31bad6352d83e1d0e SHA512 cb99cdf9733cdd2fb6637163167da0073145db1ed1788ae147098a23a9cafb4d661368a1780a44a231a2ea9f1adfa4fd6acac423a4a8d9cf026ee3a603ca7767
+DIST zope.interface-5.1.0.tar.gz 225400 BLAKE2B 6ad412bbf3c0327d2b8f37899c1e71fe4bf63c3840c9f2c7e776e3208ec8999c4812aaae89cb9a78724b40ef3dd883323b00eeccab44714eabef6c33c171be48 SHA512 be8319913222ada47a22559e22322ec12dff3adf17f45335d007c5aa3509d84a7d0a7e6c113967b91810b3613344b5c60e002eb740af2bbb454b2807de8dad98
diff --git a/dev-python/zope-interface/files/5.1.0-drop-coverage.patch b/dev-python/zope-interface/files/5.1.0-drop-coverage.patch
new file mode 100644
index 000000000000..c3861ce826ff
--- /dev/null
+++ b/dev-python/zope-interface/files/5.1.0-drop-coverage.patch
@@ -0,0 +1,24 @@
+From 56fc9c6c650d4016c15f8fcf5e12a0c7ce5fb6a0 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Tue, 14 Apr 2020 23:19:47 -0400
+Subject: [PATCH] Drop coverage dep for testing
+
+---
+ setup.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index fb32743..1c9ef83 100644
+--- a/setup.py
++++ b/setup.py
+@@ -81,7 +81,6 @@ else:
+ tests_require = [
+ # The test dependencies should NOT have direct or transitive
+ # dependencies on zope.interface.
+- 'coverage >= 5.0.3',
+ 'zope.event',
+ 'zope.testing',
+ ]
+--
+2.26.0
+
diff --git a/dev-python/zope-interface/zope-interface-4.7.1.ebuild b/dev-python/zope-interface/zope-interface-4.7.1.ebuild
index be40b01d7739..3e1a770841bb 100644
--- a/dev-python/zope-interface/zope-interface-4.7.1.ebuild
+++ b/dev-python/zope-interface/zope-interface-4.7.1.ebuild
@@ -19,7 +19,7 @@ SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}]"
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+BDEPEND="<dev-python/setuptools-46.0.0[${PYTHON_USEDEP}]
test? ( dev-python/zope-event[${PYTHON_USEDEP}] )"
S="${WORKDIR}/${MY_P}"
diff --git a/dev-python/zope-interface/zope-interface-5.1.0.ebuild b/dev-python/zope-interface/zope-interface-5.1.0.ebuild
new file mode 100644
index 000000000000..62422c2df659
--- /dev/null
+++ b/dev-python/zope-interface/zope-interface-5.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+
+inherit distutils-r1 flag-o-matic
+
+MY_PN=${PN/-/.}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Interfaces for Python"
+HOMEPAGE="https://pypi.org/project/zope.interface/ https://github.com/zopefoundation/zope.interface"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="ZPL"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/zope-event[${PYTHON_USEDEP}]
+ dev-python/zope-testing[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/5.1.0-drop-coverage.patch
+)
+
+distutils_enable_tests setup.py
+
+python_compile() {
+ if ! python_is_python3; then
+ local CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+ append-flags -fno-strict-aliasing
+ fi
+
+ distutils-r1_python_compile
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ # remove .pth files since dev-python/namespace-zope handles the ns
+ find "${D}" -name '*.pth' -delete || die
+}