+++ /dev/null
-DIST encore-0.5.1.tar.gz 71248 BLAKE2B f50c42fa4aad56cfa4f9440bb249812fdee575dd65178091aaf4cb7a381439b797709bc3857db04cdd0cb8afcf397070a895bf7d5909857f5cb8dd8670cd55eb SHA512 410d37bd326ac5b8433dd5896c3e167387e83380cc55efa7405b4c3f918108cee60e6d3c78c3ff41aa2b1f46939cb3c4e2e495b9f77a9c2483a77e1973bd2d17
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 pypy )
-
-inherit distutils-r1
-
-DESCRIPTION="Enthought Tool Suite: collection of core-level utility modules"
-HOMEPAGE="https://github.com/enthought/encore"
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="test"
-
-RDEPEND="virtual/python-futures[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]"
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( ${RDEPEND}
- dev-python/nose[${PYTHON_USEDEP}]
- dev-python/mock[${PYTHON_USEDEP}] )"
-
-PATCHES=( "${FILESDIR}"/${P}-pypy-tests.patch )
-
-python_test() {
- "${PYTHON}" -m unittest discover ./${PN}/events || die
- # PYTHONPATH goes astray & '-m unittest discover' loses its way. nose works
- # https://github.com/enthought/encore/issues/84
- # tests for storage simply aren't written to cater to pypy
- if [[ "${EPYTHON}" == python2.7 ]]; then
- nosetests ./${PN}/storage || die
- fi
-}
+++ /dev/null
-diff -ur encore-0.5.1.orig/encore/events/tests/test_event_manager.py encore-0.5.1/encore/events/tests/test_event_manager.py
---- encore/events/tests/test_event_manager.py 2014-01-06 22:40:24.000000000 +0800
-+++ encore/events/tests/test_event_manager.py 2014-05-05 17:56:16.606026933 +0800
-@@ -10,7 +10,7 @@
- import mock
- import weakref
- import threading
--
-+import sys
- # Local imports.
- from encore.events.event_manager import EventManager, BaseEvent
- from encore.events.api import (get_event_manager, set_event_manager,
-@@ -429,6 +429,7 @@
- self.evt_mgr.emit(BaseEvent())
- self.assertEqual(data, [1])
-
-+ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "test written for py2 garbage collection methods")
- def test_method_weakref(self):
- """ Test if methods do not prevent garbage collection of objects.
- """
-@@ -464,6 +465,7 @@
- self.evt_mgr.emit(obj)
- self.assertEqual(data, [1, 2])
-
-+ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "test written for py2 garbage collection methods")
- def test_method_collect(self):
- """ Test if object garbage collection disconnects listener method.
- """
-@@ -481,6 +483,7 @@
- self.assertEqual(data, [])
- self.assertEqual(len(list(self.evt_mgr.get_listeners(BaseEvent))), 0)
-
-+ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "test written for py2 garbage collection methods")
- def test_method_disconnect(self):
- """ Test if method disconnect works.
- """
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <longdescription lang="en">
- This package consists of a collection of core utility packages
- useful for building Python applications. This package is intended to
- be at the bottom of the software stack and have zero required
- external dependencies aside from the Python Standard Library.
-</longdescription>
- <upstream>
- <remote-id type="pypi">encore</remote-id>
- <remote-id type="github">enthought/encore</remote-id>
- </upstream>
-</pkgmetadata>