From cceb57bb855ed3e4c9fdf22c3223bd9ecaf6a89715f099b9f33668de942e4c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 22 Aug 2018 14:51:02 +0000 Subject: [PATCH] osc copypac from project:devel:languages:python package:python-execnet revision:14 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-execnet?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + execnet-1.5.0.tar.gz | 3 + fix_apipkg.patch | 29 +++++++++ python-execnet.changes | 141 +++++++++++++++++++++++++++++++++++++++++ python-execnet.spec | 75 ++++++++++++++++++++++ 6 files changed, 272 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 execnet-1.5.0.tar.gz create mode 100644 fix_apipkg.patch create mode 100644 python-execnet.changes create mode 100644 python-execnet.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/execnet-1.5.0.tar.gz b/execnet-1.5.0.tar.gz new file mode 100644 index 0000000..3e799c2 --- /dev/null +++ b/execnet-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a +size 168497 diff --git a/fix_apipkg.patch b/fix_apipkg.patch new file mode 100644 index 0000000..69b3a89 --- /dev/null +++ b/fix_apipkg.patch @@ -0,0 +1,29 @@ +From a59f30af7cfbeed4666cc978913dfde66ca9f571 Mon Sep 17 00:00:00 2001 +From: Anthony Sottile +Date: Thu, 5 Jul 2018 15:14:35 -0700 +Subject: [PATCH] Don't copy apipkg into the test dir -- it isn't a single file + any more + +--- + testing/test_termination.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/testing/test_termination.py b/testing/test_termination.py +index 7320cdf..ae905d4 100644 +--- a/testing/test_termination.py ++++ b/testing/test_termination.py +@@ -1,6 +1,5 @@ + import pytest + import execnet +-import apipkg + import subprocess + import py + import sys +@@ -76,7 +75,6 @@ def test_close_initiating_remote_no_error(testdir, anypython): + print ("termination") + execnet.default_group.terminate() + """) +- testdir.makepyfile(apipkg=apipkg) + popen = subprocess.Popen( + [str(anypython), str(p), str(execnetdir)], + stdout=None, stderr=subprocess.PIPE,) diff --git a/python-execnet.changes b/python-execnet.changes new file mode 100644 index 0000000..7307800 --- /dev/null +++ b/python-execnet.changes @@ -0,0 +1,141 @@ +------------------------------------------------------------------- +Wed Aug 8 11:32:26 UTC 2018 - mimi.vx@gmail.com + +- add fix_apipkg.patch -- fixes tests with apipkg > 1.4.0 + +------------------------------------------------------------------- +Sun Jul 15 23:10:06 UTC 2018 - mimi.vx@gmail.com + +- drop -doc subpackage - causes circular dependency with python-requests -> + python-hypothesis -> python-Babel + +------------------------------------------------------------------- +Sat Nov 11 17:20:57 UTC 2017 - arun@gmx.de + +- specfile + * CHANGELOG -> CHANGELOG.rst + * README.txt -> README.rst + +- update to version 1.5.0: + * support shell escaping in python pathnames of popen. + Eugene Ciurana discovered that execnet breaks if you use pathnames + with spaces in a "python=" part of a spec. We now use shlex.split + to split the string. There is a potential for regressions if you + used quote or escape sequences as part of your python command. + * Only insert importdir into sys.path if it is not already in the + path. + This prevents a bug when using enum34 with python 3.6 and + pytest-xdist. + The issue is that enum34 installs an 'enum' module in + site-packages which is normally shadowed by the stdlib version of + enum, however in gateway_bootstrap.py site-packages is added at + the front the the search path. This means on the workers enum34 is + hit for import enum which in turn causes import re to fail (as it + makes use of the new enum features in 3.6). + +------------------------------------------------------------------- +Fri Apr 21 20:01:07 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Enabled tests + +------------------------------------------------------------------- +Wed Feb 24 10:48:05 UTC 2016 - osynge@suse.com + +- Added depenedency on python-apipkg + +------------------------------------------------------------------- +Mon Feb 22 17:27:02 UTC 2016 - osynge@suse.com + +- Update to version 1.4.1: + * fix issue33 -- index.txt to correctly mention MIT instead of GPL. + * fix issue35 -- adapt some doctests, fix some channel tests for py3. + * use subprocess32 when available for python < 3. + * try to be a bit more careful when interpreter is shutting down + to avoid random exceptions, thanks Alfredo Deza. + * ignore errors on orphan file removal when rsyncing + * fix issue34 -- limit use of import based bootstrap + * de-vendor apipkg and use the pypi dependency instead + (this also fixes the bpython interaction issues) + * Fix issue38: provide ability to connect to Vagrant VMs easily + using :code:`vagrant_ssh=defaut` or :code:`vagrant_ssh=machinename` + this feature is experimental and will be refined in future releases. + Thanks Christian Theune for the discussion and the initial pull request. + * add support for serializing the "complex" type. Thanks Sebastian + Koslowski. + * fix a regression of the Serializer created by the implied opcode ordering + which resulted in a incompatible opcode mapping + +------------------------------------------------------------------- +Fri Dec 12 20:06:01 UTC 2014 - tbechtold@suse.com + +- Update to version 1.2: + * fix issue22 -- during interpreter shutdown don't throw + an exception when we can't send a termination sequence + anymore as we are about to die anyway. + * fix issue24 -- allow concurrent creation of gateways + by guarding automatic id creation by a look. + Thanks tlecomte. + * majorly refactor internal thread and IO handling. + execnet can now operate on different thread models, + defaults to "thread" but allows for eventlet and + gevent if it is installed. + * gateway.remote_exec() will now execute in multiple + threads on the other side by default. The previous + neccessity of running "gateway.remote_init_threads()" + to allow for such concurrency is gone. The latter + method is now a no-op and will be removed in future + versions of execnet. + * fix issue20: prevent AttributError at interpreter shutdown + by not trying to send close/last_message messages if the + world around is half destroyed. + * fix issue21: allow to create local gateways with sudo aka + makegateway("popen//python=sudo python"). + Thanks Alfredo Deza for the PR. + * streamline gateway termination and simplify proxy + implementation. add more internal tracing. + * if execution hangs in computation, we now try to + send a SIGINT to ourselves on Unix platforms + instead of just calling thread.interrupt_main() + * change license from GPL to MIT + * introduce execnet.dump/load variants of dumps/loads + serializing/unserializing mechanism. + * improve channel.receive() communication latency on python2 + by changing the default timeout of the underlying Queue.get + to a regular None instead of the previous default -1 + which caused an internal positive timeout value + (a hack probably introduced to allow CTRL-C to pass + through for