+++ /dev/null
-From 8ee72903bc714725fbcfdcc38b9228772758b890 Mon Sep 17 00:00:00 2001
-From: Tim Harder <radhermit@gmail.com>
-Date: Fri, 27 Jan 2017 11:54:39 -0500
-Subject: [PATCH] test: fix delayed instantiation tests for py3.6
-
----
- snakeoil/test/test_obj.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/snakeoil/test/test_obj.py b/snakeoil/test/test_obj.py
-index abcad55..f8aafd2 100644
---- a/snakeoil/test/test_obj.py
-+++ b/snakeoil/test/test_obj.py
-@@ -29,7 +29,7 @@ def test_simple(self):
-
- def test_descriptor_awareness(self):
- def assertKls(cls, ignores=(),
-- default_ignores=("__new__", "__init__",
-+ default_ignores=("__new__", "__init__", "__init_subclass__",
- "__getattribute__", "__class__",
- "__getnewargs__", "__doc__")):
- required = set(x for x in dir(cls)
-@@ -53,7 +53,7 @@ def test_BaseDelayedObject(self):
- # assert that all methods/descriptors of object
- # are covered via the base.
- o = set(dir(object)).difference("__%s__" % x for x in [
-- "class", "getattribute", "new", "init", "doc"])
-+ "class", "getattribute", "new", "init", "init_subclass", "doc"])
- diff = o.difference(obj.base_kls_descriptors)
- self.assertFalse(diff, msg=(
- "base delayed instantiation class should cover all of object, but "
+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
-PYTHON_REQ_USE="threads(+)"
-inherit distutils-r1
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/pkgcore/snakeoil.git"
- inherit git-r3
-else
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
- SRC_URI="https://github.com/pkgcore/${PN}/releases/download/v${PV}/${P}.tar.gz"
-fi
-
-DESCRIPTION="misc common functionality and useful optimizations"
-HOMEPAGE="https://github.com/pkgcore/snakeoil"
-
-LICENSE="BSD"
-SLOT="0"
-
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-
-PATCHES=(
- "${FILESDIR}/${P}-test.patch"
-)
-
-python_configure_all() {
- # disable snakeoil 2to3 caching
- unset PY2TO3_CACHEDIR
-}
-
-python_test() {
- esetup.py test
-}
+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
-PYTHON_REQ_USE="threads(+)"
-inherit distutils-r1
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/pkgcore/snakeoil.git"
- inherit git-r3
-else
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-fi
-
-DESCRIPTION="misc common functionality and useful optimizations"
-HOMEPAGE="https://github.com/pkgcore/snakeoil"
-
-LICENSE="BSD"
-SLOT="0"
-IUSE="test"
-
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( dev-python/mock[${PYTHON_USEDEP}] )"
-[[ ${PV} == 9999 ]] && DEPEND+=" $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python3*')"
-
-python_configure_all() {
- # disable snakeoil 2to3 caching
- unset PY2TO3_CACHEDIR
-}
-
-python_test() {
- esetup.py test
-}