public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/execnet/files/, dev-python/execnet/
@ 2017-05-03  9:26 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-05-03  9:26 UTC (permalink / raw
  To: gentoo-commits

commit:     ec2fc2782323bca475342a9c25e5495fcff473d1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 08:03:43 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May  3 09:26:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec2fc278

dev-python/execnet: Clean old versions up

 dev-python/execnet/Manifest                |   1 -
 dev-python/execnet/execnet-1.2.0-r2.ebuild |  48 ------------
 dev-python/execnet/files/1.2.0-tests.patch | 115 -----------------------------
 3 files changed, 164 deletions(-)

diff --git a/dev-python/execnet/Manifest b/dev-python/execnet/Manifest
index fdf1a65c218..aa51fef73b9 100644
--- a/dev-python/execnet/Manifest
+++ b/dev-python/execnet/Manifest
@@ -1,2 +1 @@
-DIST execnet-1.2.0.tar.gz 163876 SHA256 951714caa0ae80237f4ffc1f08450e9e2e5f8f902beaf1ad294020875d6f8c2c SHA512 bf4eb1c07832628863f3d315510628343bc4504050311a277a86100a825df8ed5f6b65f58db28ea6733f3886b6007eae7fd33586721374f9ffb3687e9b95d5c4 WHIRLPOOL 898d9427d55e316f2cdfe06d8dadd0f40d8d2374802b419c9b7aac279eed36919f8dc0084c9c253b3b3d75e9dd50ec2748ef2227e803bf900d7d8b0d5395c45e
 DIST execnet-1.4.1.tar.gz 171041 SHA256 f66dd4a7519725a1b7e14ad9ae7d3df8e09b2da88062386e08e941cafc0ef3e6 SHA512 e8c0c32e873f8585ff4d4da3b9cbd40046479370f5653f67a98c9029d4535a619731d1b825332fe4af4dc5ebc9ab11ee879ef45df07f08943b1e1685f2255790 WHIRLPOOL 487c31617b78e4eeed9dc75ae8f01ade33aad35f7547677ec007b688071dd56e69c4f4b92cf9355dee7cea97bf6eac09f508099f104cf52d6c9fe3860e4fd3c9

diff --git a/dev-python/execnet/execnet-1.2.0-r2.ebuild b/dev-python/execnet/execnet-1.2.0-r2.ebuild
deleted file mode 100644
index ac4cc1275ea..00000000000
--- a/dev-python/execnet/execnet-1.2.0-r2.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_7,3_4} pypy )
-
-inherit distutils-r1
-
-DESCRIPTION="Rapid multi-Python deployment"
-HOMEPAGE="http://codespeak.net/execnet/ https://pypi.python.org/pypi/execnet/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="doc test"
-
-RDEPEND=""
-DEPEND="
-	dev-python/setuptools[${PYTHON_USEDEP}]
-	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
-
-PATCHES=( "${FILESDIR}"/1.2.0-tests.patch )
-
-python_prepare_all() {
-	# Remove doctest that access an i'net site
-	rm doc/example/test_info.txt || die
-
-	distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
-	use doc && emake -C doc html
-}
-
-python_test() {
-	# https://bitbucket.org/hpk42/execnet/issue/10
-	unset PYTHONDONTWRITEBYTECODE
-	py.test testing || die "Tests fail with ${EPYTHON}"
-}
-
-python_install_all() {
-	use doc && local HTML_DOCS=( doc/_build/html/. )
-
-	distutils-r1_python_install_all
-}

diff --git a/dev-python/execnet/files/1.2.0-tests.patch b/dev-python/execnet/files/1.2.0-tests.patch
deleted file mode 100644
index 13bed5d5960..00000000000
--- a/dev-python/execnet/files/1.2.0-tests.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-# HG changeset patch
-# User holger krekel <holger@merlinux.eu>
-# Date 1412585605 -7200
-# Node ID c9303c302995a4fb844553d4977c55abc72e2020
-# Parent  47ff3652b0aed191f7bafc741c211d1415f65224
-fix issue35: adapt some doctests, fix some channel tests for py3.
-Also modernize tox.ini a bit.
---rebased
-diff -ur execnet-1.2.0.orig/doc/example/test_group.txt execnet-1.2.0/doc/example/test_group.txt
---- doc/example/test_group.txt	2014-01-29 19:50:22.000000000 +0800
-+++ doc/example/test_group.txt	2014-10-10 19:51:00.108828123 +0800
-@@ -14,7 +14,7 @@
-     >>> group
-     <Group ['gw0', 'gw1']>
-     >>> list(group)
--    [<PopenGateway id='gw0' receive-live, 0 active channels>, <PopenGateway id='gw1' receive-live, 0 active channels>]
-+    [<Gateway id='gw0' receive-live, thread model, 0 active channels>, <Gateway id='gw1' receive-live, thread model, 0 active channels>]
-     >>> 'gw0' in group and 'gw1' in group
-     True
-     >>> group['gw0'] == group[0]
-@@ -37,7 +37,7 @@
-     >>> gw = group.makegateway("popen//id=sub1")
-     >>> assert gw.id == "sub1"
-     >>> group['sub1']
--    <PopenGateway id='sub1' receive-live, 0 active channels>
-+    <Gateway id='sub1' receive-live, thread model, 0 active channels>
- 
- Getting (auto) IDs before instantiation
- ------------------------------------------------------
-diff -ur execnet-1.2.0.orig/doc/example/test_proxy.txt execnet-1.2.0/doc/example/test_proxy.txt
---- doc/example/test_proxy.txt	2014-01-29 19:50:22.000000000 +0800
-+++ doc/example/test_proxy.txt	2014-10-10 19:16:50.380156509 +0800
-@@ -18,10 +18,10 @@
-     >>> group.defaultspec = 'popen//via=master'
-     >>> master = group.makegateway('popen//id=master')
-     >>> master
--    <Gateway id='master' receive-live, 0 active channels>
-+    <Gateway id='master' receive-live, thread model, 0 active channels>
-     >>> slave = group.makegateway()
-     >>> slave
--    <Gateway id='gw0' receive-live, 0 active channels>
-+    <Gateway id='gw0' receive-live, thread model, 0 active channels>
-     >>> group
-     <Group ['master', 'gw0']>
- 
-diff -ur execnet-1.2.0.orig/testing/test_channel.py execnet-1.2.0/testing/test_channel.py
---- testing/test_channel.py	2014-01-29 19:50:22.000000000 +0800
-+++ testing/test_channel.py	2014-10-10 19:21:00.943955387 +0800
-@@ -68,25 +68,19 @@
- 
-     def test_channel_error_reporting(self, gw):
-         channel = gw.remote_exec('def foo():\n  return foobar()\nfoo()\n')
--        try:
--            channel.receive()
--        except channel.RemoteError:
--            e = sys.exc_info()[1]
--            assert str(e).startswith('Traceback (most recent call last):')
--            assert str(e).find('NameError: global name \'foobar\' '
--                               'is not defined') > -1
--        else:
--            pytest.fail('No exception raised')
-+        excinfo = pytest.raises(channel.RemoteError, channel.receive)
-+        msg = str(excinfo.value)
-+        assert msg.startswith('Traceback (most recent call last):')
-+        assert "NameError" in msg
-+        assert "foobar" in msg
- 
-     def test_channel_syntax_error(self, gw):
-         # missing colon
-         channel = gw.remote_exec('def foo()\n return 1\nfoo()\n')
--        try:
--            channel.receive()
--        except channel.RemoteError:
--            e = sys.exc_info()[1]
--            assert str(e).startswith('Traceback (most recent call last):')
--            assert str(e).find('SyntaxError') > -1
-+        excinfo = pytest.raises(channel.RemoteError, channel.receive)
-+        msg = str(excinfo.value)
-+        assert msg.startswith('Traceback (most recent call last):')
-+        assert "SyntaxError" in msg
- 
-     def test_channel_iter(self, gw):
-         channel = gw.remote_exec("""
-diff -ur execnet-1.2.0.orig/tox.ini execnet-1.2.0/tox.ini
---- tox.ini	2014-01-29 19:50:22.000000000 +0800
-+++ tox.ini	2014-10-10 20:14:22.806301771 +0800
-@@ -1,16 +1,11 @@
- [tox]
--envlist=py26,py27,py32,py33,pypy,flakes
--distshare={homedir}/.tox/distshare
--
--[tox:hudson]
--distshare={toxworkdir}/distshare
--sdistsrc={distshare}/execnet-*
-+envlist=py26,py27,py33,py34,pypy,flakes
- 
- [testenv]
- changedir=testing
- deps=pytest
-      pytest-timeout
--commands=py.test -rsfxX --junitxml={envlogdir}/junit-{envname}.xml []
-+commands=py.test -rsfxX {posargs}
- 
- [testenv:flakes]
- changedir=
-@@ -26,8 +21,7 @@
- deps=sphinx
-      pytest
- commands=
--    py.test \
--        -rsfxX -v --junitxml={envlogdir}/junit-{envname}.xml check_sphinx.py
-+    py.test  -rsfxX -v check_sphinx.py
- 
- [pytest]
- timeout = 20


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/execnet/files/, dev-python/execnet/
@ 2019-11-23  3:10 Patrick McLean
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick McLean @ 2019-11-23  3:10 UTC (permalink / raw
  To: gentoo-commits

commit:     cf23c46489f5dd943b48bea751f002a9e6dd44d2
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Sat Nov 23 03:08:42 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 03:09:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf23c464

dev-python/execne-1.7.1: Version bump, add py38

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/execnet/Manifest                        |   1 +
 dev-python/execnet/execnet-1.7.1.ebuild            |  65 ++++++
 dev-python/execnet/files/execnet-1.7.1-tests.patch | 224 +++++++++++++++++++++
 3 files changed, 290 insertions(+)

diff --git a/dev-python/execnet/Manifest b/dev-python/execnet/Manifest
index c1c0443486e..b35040d60c5 100644
--- a/dev-python/execnet/Manifest
+++ b/dev-python/execnet/Manifest
@@ -1,2 +1,3 @@
 DIST execnet-1.4.1.tar.gz 171041 BLAKE2B 7e51320969b0203a8ff55d69364c3fa69d747d67f5dd3a3aaeab7700192d63918bbc11ae29a1e26e466078f1ca87ea00ddcfe0f98132921bacfc95671c3ad7c7 SHA512 e8c0c32e873f8585ff4d4da3b9cbd40046479370f5653f67a98c9029d4535a619731d1b825332fe4af4dc5ebc9ab11ee879ef45df07f08943b1e1685f2255790
 DIST execnet-1.5.0.tar.gz 168497 BLAKE2B 1777f3a72cbf75e5bdef90cdda956a5d8101980f299a1bade6d6faeec52e1026a18a87c8b6b08c8d27073acedacd38473f68c6823908701816b4725edd3d9fb0 SHA512 ca2b571fafdf8f68b3cc7a04ee326e3255828d4cde28ead65d0cef325569c3a6dee09359e525152248038de65326ffc6b75c8362f53aa5c0b3f736eb596cb2d9
+DIST execnet-1.7.1.tar.gz 174157 BLAKE2B 0c2f7b8918bdd5a3cd1fdc49607e571874e20bd26a4806a6ec1a11359b912ed09244afb781670ff24fbee752516d59ab2bba7f662bbcddb802e7e6efd2c544ef SHA512 375748c03f8d955bd8fca90d5c6308073c31a978fd7a604257512e0a710f899dec5db8a91d5bb5f16de9b0656e1742da9ab513827a1a065a5125bafcf1e63a70

diff --git a/dev-python/execnet/execnet-1.7.1.ebuild b/dev-python/execnet/execnet-1.7.1.ebuild
new file mode 100644
index 00000000000..e691e40e3ad
--- /dev/null
+++ b/dev-python/execnet/execnet-1.7.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Rapid multi-Python deployment"
+HOMEPAGE="http://codespeak.net/execnet/ https://pypi.org/project/execnet/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-python/apipkg-1.4[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	doc? ( $(python_gen_any_dep '
+			dev-python/sphinx[${PYTHON_USEDEP}]
+		')
+	)"
+
+PATCHES=(
+	"${FILESDIR}/execnet-1.7.1-tests.patch"
+)
+
+distutils_enable_tests pytest
+
+python_check_deps() {
+	use doc || return 0
+	has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
+python_prepare_all() {
+	# Remove doctest that access an i'net site
+	rm doc/example/test_info.rst || die
+
+	sed -i -r 's:(,[[:space:]]*|)"eventlet":: ; s:(,[[:space:]]*|)"gevent"(,|)::' \
+		testing/conftest.py || die
+
+	# get rid of setuptools_scm dep
+	sed -i -r "s:use_scm_version=.+,:version='${PV}',: ; s:\"setuptools_scm\"::" \
+		setup.py || die
+
+	printf -- '__version__ = "%s"\nversion = "%s"\n' "${PV}" "${PV}" > \
+		execnet/_version.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+	if use doc; then
+		sed -i -e 's:^intersphinx_mapping:disabled_&:' \
+			doc/conf.py || die
+
+		sphinx-build -b html -d doc/_build/doctrees doc \
+			doc/_build/html || die
+
+		HTML_DOCS+=( "doc/_build/html/." )
+	fi
+}

diff --git a/dev-python/execnet/files/execnet-1.7.1-tests.patch b/dev-python/execnet/files/execnet-1.7.1-tests.patch
new file mode 100644
index 00000000000..5144201d2a1
--- /dev/null
+++ b/dev-python/execnet/files/execnet-1.7.1-tests.patch
@@ -0,0 +1,224 @@
+diff --git a/testing/test_channel.py b/testing/test_channel.py
+index 017abb0..0983bae 100644
+--- a/testing/test_channel.py
++++ b/testing/test_channel.py
+@@ -3,6 +3,7 @@
+ mostly functional tests of gateways.
+ """
+ import time
++import platform
+ 
+ import py
+ import pytest
+@@ -362,6 +363,7 @@ class TestChannelFile:
+         s = f.read(5)
+         assert s == ""
+ 
++    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
+     def test_channel_file_readline_remote(self, gw):
+         channel = gw.remote_exec(
+             """
+@@ -382,7 +384,7 @@ class TestChannelFile:
+ 
+ 
+ class TestStringCoerce:
+-    @pytest.mark.skipif('sys.version>="3.0"')
++    @pytest.mark.skip(reason="trying to run stuff under different impls")
+     def test_2to3(self, makegateway):
+         python = _find_version("3")
+         gw = makegateway("popen//python=%s" % python)
+@@ -410,7 +412,7 @@ class TestStringCoerce:
+         assert isinstance(res, str)
+         gw.exit()
+ 
+-    @pytest.mark.skipif('sys.version<"3.0"')
++    @pytest.mark.skip(reason="trying to run stuff under different impls")
+     def test_3to2(self, makegateway):
+         python = _find_version("2")
+         gw = makegateway("popen//python=%s" % python)
+diff --git a/testing/test_gateway.py b/testing/test_gateway.py
+index fc1cf6a..b06a18d 100644
+--- a/testing/test_gateway.py
++++ b/testing/test_gateway.py
+@@ -5,6 +5,7 @@ mostly functional tests of gateways.
+ import os
+ import socket
+ import subprocess
++import platform
+ import sys
+ from textwrap import dedent
+ 
+@@ -153,6 +154,7 @@ class TestBasicGateway:
+ 
+         assert result is True
+ 
++    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
+     def test_remote_exec_module_with_traceback(self, gw, tmpdir, monkeypatch):
+         remotetest = tmpdir.join("remotetest.py")
+         remotetest.write(
+@@ -233,6 +235,7 @@ class TestBasicGateway:
+         assert result == 42
+ 
+     @needs_osdup
++    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
+     def test_confusion_from_os_write_stdout(self, gw):
+         channel = gw.remote_exec(
+             """
+@@ -250,6 +253,7 @@ class TestBasicGateway:
+         assert res == 42
+ 
+     @needs_osdup
++    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
+     def test_confusion_from_os_write_stderr(self, gw):
+         channel = gw.remote_exec(
+             """
+@@ -355,6 +359,7 @@ class TestPopenGateway:
+         )
+         py.test.raises(channel.RemoteError, channel.receive)
+ 
++    @pytest.mark.skip(reason="fails if bytecode writing is on")
+     def test_dont_write_bytecode(self, makegateway):
+         check_sys_dont_write_bytecode = """
+             import sys
+@@ -498,7 +503,7 @@ class TestTracing:
+ 
+ 
+ class TestStringCoerce:
+-    @py.test.mark.skipif('sys.version>="3.0"')
++    @pytest.mark.skip(reason="trying to run stuff under different impls")
+     def test_2to3(self, makegateway):
+         python = _find_version("3")
+         gw = makegateway("popen//python=%s" % python)
+@@ -515,7 +520,7 @@ class TestStringCoerce:
+         assert isinstance(res, str)
+         gw.exit()
+ 
+-    @py.test.mark.skipif('sys.version<"3.0"')
++    @pytest.mark.skip(reason="trying to run stuff under different impls")
+     def test_3to2(self, makegateway):
+         python = _find_version("2")
+         gw = makegateway("popen//python=%s" % python)
+diff --git a/testing/test_rsync.py b/testing/test_rsync.py
+index 995f229..a3f69a3 100644
+--- a/testing/test_rsync.py
++++ b/testing/test_rsync.py
+@@ -230,6 +230,7 @@ class TestRSync:
+         assert len(dest.listdir()) == 1
+         assert len(source.listdir()) == 1
+ 
++    @pytest.mark.skip(reason="tries to run other python impls")
+     @py.test.mark.skipif("sys.version_info >= (3,)")
+     def test_2_to_3_bridge_can_send_binary_files(self, tmpdir, makegateway):
+         python = _find_version("3")
+diff --git a/testing/test_serializer.py b/testing/test_serializer.py
+index 892e474..2f7f2f7 100644
+--- a/testing/test_serializer.py
++++ b/testing/test_serializer.py
+@@ -146,6 +146,7 @@ simple_tests = [
+ ]
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ @py.test.mark.parametrize(["tp_name", "repr"], simple_tests)
+ def test_simple(tp_name, repr, dump, load):
+     p = dump(repr)
+@@ -154,6 +155,7 @@ def test_simple(tp_name, repr, dump, load):
+     assert v == repr
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_set(py2, py3, dump):
+     p = dump("set((1, 2, 3))")
+     tp, v = py2.load(p)
+@@ -176,6 +178,7 @@ def test_set(py2, py3, dump):
+     assert v == "set()"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_frozenset(py2, py3, dump):
+     p = dump("frozenset((1, 2, 3))")
+     tp, v = py2.load(p)
+@@ -193,6 +196,7 @@ def test_frozenset(py2, py3, dump):
+     assert v == "frozenset()"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_long(py2, py3):
+     really_big = "9223372036854775807324234"
+     p = py2.dump(really_big)
+@@ -211,6 +215,7 @@ def test_long(py2, py3):
+     assert v == really_big + "L"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_small_long(py2, py3):
+     p = py2.dump("123L")
+     tp, s = py2.load(p)
+@@ -219,6 +224,7 @@ def test_small_long(py2, py3):
+     assert s == "123"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_bytes(py2, py3):
+     p = py3.dump("b'hi'")
+     tp, v = py2.load(p)
+@@ -229,6 +235,7 @@ def test_bytes(py2, py3):
+     assert v == "b'hi'"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_str(py2, py3):
+     p = py2.dump("'xyz'")
+     tp, s = py2.load(p)
+@@ -242,6 +249,7 @@ def test_str(py2, py3):
+     assert tp == "bytes"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_unicode(py2, py3):
+     p = py2.dump("u'hi'")
+     tp, s = py2.load(p)
+@@ -260,6 +268,7 @@ def test_unicode(py2, py3):
+     assert s == "u'hi'"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_bool(py2, py3):
+     p = py2.dump("True")
+     tp, s = py2.load(p)
+@@ -273,12 +282,14 @@ def test_bool(py2, py3):
+     assert s == "False"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_none(dump, load):
+     p = dump("None")
+     tp, s = load(p)
+     assert s == "None"
+ 
+ 
++@pytest.mark.skip(reason="trying to run stuff under different impls")
+ def test_tuple_nested_with_empty_in_between(py2):
+     p = py2.dump("(1, (), 3)")
+     tp, s = py2.load(p)
+diff --git a/testing/test_threadpool.py b/testing/test_threadpool.py
+index d469436..a473e4a 100644
+--- a/testing/test_threadpool.py
++++ b/testing/test_threadpool.py
+@@ -3,6 +3,7 @@ from __future__ import with_statement
+ 
+ import os
+ import sys
++import platform
+ 
+ import py
+ import pytest
+@@ -29,7 +30,7 @@ def test_simple(pool):
+     reply = pool.spawn(lambda: 42)
+     assert reply.get() == 42
+ 
+-
++@pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
+ def test_some(pool, execmodel):
+     q = execmodel.queue.Queue()
+     num = 4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/execnet/files/, dev-python/execnet/
@ 2021-03-02  8:33 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2021-03-02  8:33 UTC (permalink / raw
  To: gentoo-commits

commit:     63ca91b1428b202c1b5060cb8df79995808a5644
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  2 08:29:42 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar  2 08:29:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63ca91b1

dev-python/execnet: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/execnet/Manifest                        |   1 -
 dev-python/execnet/execnet-1.7.1-r1.ebuild         |  45 -----
 dev-python/execnet/files/execnet-1.7.1-tests.patch | 224 ---------------------
 3 files changed, 270 deletions(-)

diff --git a/dev-python/execnet/Manifest b/dev-python/execnet/Manifest
index 0583cb20fd2..248028e983c 100644
--- a/dev-python/execnet/Manifest
+++ b/dev-python/execnet/Manifest
@@ -1,2 +1 @@
-DIST execnet-1.7.1.tar.gz 174157 BLAKE2B 0c2f7b8918bdd5a3cd1fdc49607e571874e20bd26a4806a6ec1a11359b912ed09244afb781670ff24fbee752516d59ab2bba7f662bbcddb802e7e6efd2c544ef SHA512 375748c03f8d955bd8fca90d5c6308073c31a978fd7a604257512e0a710f899dec5db8a91d5bb5f16de9b0656e1742da9ab513827a1a065a5125bafcf1e63a70
 DIST execnet-1.8.0.tar.gz 173765 BLAKE2B c6334a98b0e9dc7eb5e83fef05b795371edd0f85a6cbad9dc80d14f2e944204812c58419afebe5e70514f41d5ee7507b6a224a94e8cee2544607bc28ef5b175d SHA512 a0ca76002270daa5cbfa00563a51a3412008f893f755a1eb84f53e228dd61a82bdc94fe6152e30d471b4caff3059c662bb9de82100ec2c96df4d014836452698

diff --git a/dev-python/execnet/execnet-1.7.1-r1.ebuild b/dev-python/execnet/execnet-1.7.1-r1.ebuild
deleted file mode 100644
index e7ac3f87bd7..00000000000
--- a/dev-python/execnet/execnet-1.7.1-r1.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Rapid multi-Python deployment"
-HOMEPAGE="https://codespeak.net/execnet/
-	https://pypi.org/project/execnet/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-macos"
-
-RDEPEND=">=dev-python/apipkg-1.4[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-	dev-python/setuptools[${PYTHON_USEDEP}]"
-
-PATCHES=(
-	"${FILESDIR}/execnet-1.7.1-tests.patch"
-)
-
-distutils_enable_sphinx doc
-distutils_enable_tests pytest
-
-python_prepare_all() {
-	# Remove doctest that access an i'net site
-	rm doc/example/test_info.rst || die
-
-	sed -i -r 's:(,[[:space:]]*|)"eventlet":: ; s:(,[[:space:]]*|)"gevent"(,|)::' \
-		testing/conftest.py || die
-
-	# get rid of setuptools_scm dep
-	sed -i -r "s:use_scm_version=.+,:version='${PV}',: ; s:\"setuptools_scm\"::" \
-		setup.py || die
-
-	printf -- '__version__ = "%s"\nversion = "%s"\n' "${PV}" "${PV}" > \
-		execnet/_version.py || die
-
-	distutils-r1_python_prepare_all
-}

diff --git a/dev-python/execnet/files/execnet-1.7.1-tests.patch b/dev-python/execnet/files/execnet-1.7.1-tests.patch
deleted file mode 100644
index 5144201d2a1..00000000000
--- a/dev-python/execnet/files/execnet-1.7.1-tests.patch
+++ /dev/null
@@ -1,224 +0,0 @@
-diff --git a/testing/test_channel.py b/testing/test_channel.py
-index 017abb0..0983bae 100644
---- a/testing/test_channel.py
-+++ b/testing/test_channel.py
-@@ -3,6 +3,7 @@
- mostly functional tests of gateways.
- """
- import time
-+import platform
- 
- import py
- import pytest
-@@ -362,6 +363,7 @@ class TestChannelFile:
-         s = f.read(5)
-         assert s == ""
- 
-+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
-     def test_channel_file_readline_remote(self, gw):
-         channel = gw.remote_exec(
-             """
-@@ -382,7 +384,7 @@ class TestChannelFile:
- 
- 
- class TestStringCoerce:
--    @pytest.mark.skipif('sys.version>="3.0"')
-+    @pytest.mark.skip(reason="trying to run stuff under different impls")
-     def test_2to3(self, makegateway):
-         python = _find_version("3")
-         gw = makegateway("popen//python=%s" % python)
-@@ -410,7 +412,7 @@ class TestStringCoerce:
-         assert isinstance(res, str)
-         gw.exit()
- 
--    @pytest.mark.skipif('sys.version<"3.0"')
-+    @pytest.mark.skip(reason="trying to run stuff under different impls")
-     def test_3to2(self, makegateway):
-         python = _find_version("2")
-         gw = makegateway("popen//python=%s" % python)
-diff --git a/testing/test_gateway.py b/testing/test_gateway.py
-index fc1cf6a..b06a18d 100644
---- a/testing/test_gateway.py
-+++ b/testing/test_gateway.py
-@@ -5,6 +5,7 @@ mostly functional tests of gateways.
- import os
- import socket
- import subprocess
-+import platform
- import sys
- from textwrap import dedent
- 
-@@ -153,6 +154,7 @@ class TestBasicGateway:
- 
-         assert result is True
- 
-+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
-     def test_remote_exec_module_with_traceback(self, gw, tmpdir, monkeypatch):
-         remotetest = tmpdir.join("remotetest.py")
-         remotetest.write(
-@@ -233,6 +235,7 @@ class TestBasicGateway:
-         assert result == 42
- 
-     @needs_osdup
-+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
-     def test_confusion_from_os_write_stdout(self, gw):
-         channel = gw.remote_exec(
-             """
-@@ -250,6 +253,7 @@ class TestBasicGateway:
-         assert res == 42
- 
-     @needs_osdup
-+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
-     def test_confusion_from_os_write_stderr(self, gw):
-         channel = gw.remote_exec(
-             """
-@@ -355,6 +359,7 @@ class TestPopenGateway:
-         )
-         py.test.raises(channel.RemoteError, channel.receive)
- 
-+    @pytest.mark.skip(reason="fails if bytecode writing is on")
-     def test_dont_write_bytecode(self, makegateway):
-         check_sys_dont_write_bytecode = """
-             import sys
-@@ -498,7 +503,7 @@ class TestTracing:
- 
- 
- class TestStringCoerce:
--    @py.test.mark.skipif('sys.version>="3.0"')
-+    @pytest.mark.skip(reason="trying to run stuff under different impls")
-     def test_2to3(self, makegateway):
-         python = _find_version("3")
-         gw = makegateway("popen//python=%s" % python)
-@@ -515,7 +520,7 @@ class TestStringCoerce:
-         assert isinstance(res, str)
-         gw.exit()
- 
--    @py.test.mark.skipif('sys.version<"3.0"')
-+    @pytest.mark.skip(reason="trying to run stuff under different impls")
-     def test_3to2(self, makegateway):
-         python = _find_version("2")
-         gw = makegateway("popen//python=%s" % python)
-diff --git a/testing/test_rsync.py b/testing/test_rsync.py
-index 995f229..a3f69a3 100644
---- a/testing/test_rsync.py
-+++ b/testing/test_rsync.py
-@@ -230,6 +230,7 @@ class TestRSync:
-         assert len(dest.listdir()) == 1
-         assert len(source.listdir()) == 1
- 
-+    @pytest.mark.skip(reason="tries to run other python impls")
-     @py.test.mark.skipif("sys.version_info >= (3,)")
-     def test_2_to_3_bridge_can_send_binary_files(self, tmpdir, makegateway):
-         python = _find_version("3")
-diff --git a/testing/test_serializer.py b/testing/test_serializer.py
-index 892e474..2f7f2f7 100644
---- a/testing/test_serializer.py
-+++ b/testing/test_serializer.py
-@@ -146,6 +146,7 @@ simple_tests = [
- ]
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- @py.test.mark.parametrize(["tp_name", "repr"], simple_tests)
- def test_simple(tp_name, repr, dump, load):
-     p = dump(repr)
-@@ -154,6 +155,7 @@ def test_simple(tp_name, repr, dump, load):
-     assert v == repr
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_set(py2, py3, dump):
-     p = dump("set((1, 2, 3))")
-     tp, v = py2.load(p)
-@@ -176,6 +178,7 @@ def test_set(py2, py3, dump):
-     assert v == "set()"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_frozenset(py2, py3, dump):
-     p = dump("frozenset((1, 2, 3))")
-     tp, v = py2.load(p)
-@@ -193,6 +196,7 @@ def test_frozenset(py2, py3, dump):
-     assert v == "frozenset()"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_long(py2, py3):
-     really_big = "9223372036854775807324234"
-     p = py2.dump(really_big)
-@@ -211,6 +215,7 @@ def test_long(py2, py3):
-     assert v == really_big + "L"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_small_long(py2, py3):
-     p = py2.dump("123L")
-     tp, s = py2.load(p)
-@@ -219,6 +224,7 @@ def test_small_long(py2, py3):
-     assert s == "123"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_bytes(py2, py3):
-     p = py3.dump("b'hi'")
-     tp, v = py2.load(p)
-@@ -229,6 +235,7 @@ def test_bytes(py2, py3):
-     assert v == "b'hi'"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_str(py2, py3):
-     p = py2.dump("'xyz'")
-     tp, s = py2.load(p)
-@@ -242,6 +249,7 @@ def test_str(py2, py3):
-     assert tp == "bytes"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_unicode(py2, py3):
-     p = py2.dump("u'hi'")
-     tp, s = py2.load(p)
-@@ -260,6 +268,7 @@ def test_unicode(py2, py3):
-     assert s == "u'hi'"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_bool(py2, py3):
-     p = py2.dump("True")
-     tp, s = py2.load(p)
-@@ -273,12 +282,14 @@ def test_bool(py2, py3):
-     assert s == "False"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_none(dump, load):
-     p = dump("None")
-     tp, s = load(p)
-     assert s == "None"
- 
- 
-+@pytest.mark.skip(reason="trying to run stuff under different impls")
- def test_tuple_nested_with_empty_in_between(py2):
-     p = py2.dump("(1, (), 3)")
-     tp, s = py2.load(p)
-diff --git a/testing/test_threadpool.py b/testing/test_threadpool.py
-index d469436..a473e4a 100644
---- a/testing/test_threadpool.py
-+++ b/testing/test_threadpool.py
-@@ -3,6 +3,7 @@ from __future__ import with_statement
- 
- import os
- import sys
-+import platform
- 
- import py
- import pytest
-@@ -29,7 +30,7 @@ def test_simple(pool):
-     reply = pool.spawn(lambda: 42)
-     assert reply.get() == 42
- 
--
-+@pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
- def test_some(pool, execmodel):
-     q = execmodel.queue.Queue()
-     num = 4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-02  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-03  9:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/execnet/files/, dev-python/execnet/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2019-11-23  3:10 Patrick McLean
2021-03-02  8:33 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox