Debian Codegraph @

CHANGELOG.rst

raw
1 2.1.2 (2025-11-11)
2 ------------------
3
4 * `#376 <https://github.com/pytest-dev/execnet/issues/376>`__ fix artifact building - pin minimal version of hatch.
5
6
7 2.1.1 (2024-04-08)
8 ------------------
9
10 * `#267 <https://github.com/pytest-dev/execnet/issue/267>`__ Fixed regression
11 in 2.1.0 where the ``strconfig`` argument to ``load``/``loads`` is ignored.
12
13 2.1.0 (2024-04-05)
14 ------------------
15
16 * `#243 <https://github.com/pytest-dev/execnet/pull/243>`__: Added ``main_thread_only``
17 execmodel which is derived from the thread execmodel and only executes ``remote_exec``
18 calls in the main thread.
19
20 Callers of ``remote_exec`` must use the returned channel to wait for a task to complete
21 before they call remote_exec again, otherwise the ``remote_exec`` call will fail with a
22 ``concurrent remote_exec would cause deadlock`` error. The main_thread_only execmodel
23 provides solutions for `#96 <https://github.com/pytest-dev/execnet/issues/96>`__ and
24 `pytest-dev/pytest-xdist#620 <https://github.com/pytest-dev/pytest-xdist/issues/620>`__
25 (pending a new `pytest-xdist` release).
26
27 Also fixed ``init_popen_io`` to use ``closefd=False`` for shared stdin and stdout file
28 descriptors, preventing ``Bad file descriptor`` errors triggered by test_stdouterrin_setnull.
29 * The library is now typed and the typing is exposed to type-checkers.
30 * Re-exported ``Gateway``, ``Channel``, ``DumpError`` and ``LoadError`` from
31 ``execnet``. The constructors are private.
32 * Fixed ``GatewayBase.join()`` timeout argument getting ignored.
33 * Removed support for Python 3.7.
34 * Added official support for Python 3.12.
35
36
37 2.0.2 (2023-07-09)
38 ------------------
39
40 * Re-release without code changes, just to include ``tox.ini`` into the source distribution.
41
42 2.0.1 (2023-07-08)
43 ------------------
44
45 * Re-release without code changes, just to include docs and tests into the source distribution.
46
47 2.0.0 (2023-07-06)
48 ------------------
49
50 * Removed support for Python < 3.7.
51
52 - Applied ``pyupgrade --py37-plus``.
53 - Minimal ``mypy`` fixes and dropped Python 2 support code.
54
55 * Migrated packaging to ``hatch``.
56 * Dropped deprecated APIs of old makegateway names.
57 * Removed ``py`` testing dependency.
58 * Explicitly pass ``encoding`` when opening files in the gateway to get rid of warnings when using ``PYTHONWARNDEFAULTENCODING=1`` (#195).
59 * Fixed error when loading source code files from a path containing non-ascii characters.
60
61
62 1.9.0 (2021-06-13)
63 ------------------
64
65 * Removed the ``apipkg`` dependency.
66
67 1.8.1 (2021-05-27)
68 ------------------
69
70 * Update calls of `threading.Event.isSet()` to `threading.Event.is_set()`, which avoids a deprecation warning with Python 3.10.
71
72 1.8.0 (2021-01-27)
73 ------------------
74
75 * Dropped support for Python 3.4.
76
77 * `#118 <https://github.com/pytest-dev/execnet/pull/118>`__: Fixed internal leak that should make
78 ``execnet`` execute remote code in the main thread more often; previously it would sometimes
79 spawn a thread to execute a ``remote_exec`` call, even when the caller
80 didn't issue multiple ``remote_exec`` calls at the same time. Some frameworks require code
81 to execute in the main thread, so the previous behavior would break them on occasion (see
82 `pytest-dev/pytest-xdist#620 <https://github.com/pytest-dev/pytest-xdist/issues/620>`__
83 for an example).
84
85 * `#115 <https://github.com/pytest-dev/execnet/pull/115>`__: Current working directory is now
86 restored when calling ``script/socketserver.py``. The script now also loops by default
87 when called from the command-line.
88
89 1.7.1 (2019-08-28)
90 ------------------
91
92 * `#108 <https://github.com/pytest-dev/execnet/issues/108>`__: Revert ``linecache`` optimization introduced in ``1.7.0`` which
93 broke remote execution.
94
95 1.7.0 (2019-08-08)
96 ------------------
97
98 * `#102 <https://github.com/pytest-dev/execnet/pull/102>`__: Show paths in stack traces
99 generated by ``remote_exec()``.
100
101 * `#100 <https://github.com/pytest-dev/execnet/pull/100>`__: Fix flaky hangs in ``workerpool.waitall``.
102
103 1.6.1 (2019-07-22)
104 ------------------
105
106 * `#98 <https://github.com/pytest-dev/execnet/pull/98>`__: Internal change to avoid
107 using deprecated ``funcargs`` name in pytest 5+.
108
109 1.6.0 (2019-03-31)
110 ------------------
111
112 * ``execnet`` no longer supports Python 2.6 and 3.3 (#85). Users of those Python versions
113 using a recent enough ``pip`` should not be affected, as ``pip`` will only install
114 ``1.5.0`` for them.
115
116 * Update test suite to support ``pytest>4``.
117
118 1.5.0 (2017-10-16)
119 ------------------
120
121 - support shell escaping in python pathnames of popen.
122
123 Eugene Ciurana discovered that execnet breaks if you use
124 pathnames with spaces in a "python=" part of a spec.
125 We now use shlex.split to split the string. There is a
126 potential for regressions if you used quote or escape
127 sequences as part of your python command.
128
129 - Only insert importdir into sys.path if it is not already in the path.
130
131 This prevents a bug when using enum34 with python 3.6 and
132 pytest-xdist.
133
134 The issue is that enum34 installs an 'enum' module in site-packages
135 which is normally shadowed by the stdlib version of enum, however in
136 gateway_bootstrap.py site-packages is added at the front the the
137 search path. This means on the workers enum34 is hit for import enum
138 which in turn causes import re to fail (as it makes use of the new
139 enum features in 3.6).
140
141 - fix #49 - use inspect.getfullargspec if possible to avoid deprecationwarnings
142
143 - fix #56 - use partials in safe_terminate to avoid a bad carried binding
144
145 - fix spec parsing on Windows due to path containing '\' characters.
146
147 1.4.1 (2015-09-02)
148 ------------------
149
150 - fix a regression of the Serializer created by the implied opcode ordering
151 which resulted in a incompatible opcode mapping
152
153 *warning* stored serialized objects created with 1.4.0 are incompatible
154 with previous versions and future versions
155 additionally stored serialized objects containing complex objects will
156 have a incompatible opcode when read with execnet < 1.4.0
157 and won't be loadable with execnet 1.4.0 either
158
159 its strongly suggested to avoid using the Serializer of execnet 1.4.0
160 this affects devpi and the external pytest-cache plugin
161
162 1.4
163 ----
164
165 - de-vendor apipkg and use the pypi dependency instead
166 (this also fixes the bpython interaction issues)
167
168 - Fix issue38: provide ability to connect to Vagrant VMs easily
169 using :code:`vagrant_ssh=default` or :code:`vagrant_ssh=machinename`
170 this feature is experimental and will be refined in future releases.
171 Thanks Christian Theune for the discussion and the initial pull request.
172
173 - add support for serializing the "complex" type. Thanks Sebastian
174 Koslowski.
175
176
177 1.3
178 --------------------------------
179
180 - fix issue33: index.txt to correctly mention MIT instead of GPL.
181
182 - fix issue35: adapt some doctests, fix some channel tests for py3.
183
184 - use subprocess32 when available for python < 3.
185
186 - try to be a bit more careful when interpreter is shutting down
187 to avoid random exceptions, thanks Alfredo Deza.
188
189 - ignore errors on orphan file removal when rsyncing
190
191 - fix issue34: limit use of import based bootstrap
192
193 1.2
194 --------------------------------
195
196 - fix issue22 -- during interpreter shutdown don't throw
197 an exception when we can't send a termination sequence
198 anymore as we are about to die anyway.
199
200 - fix issue24 -- allow concurrent creation of gateways
201 by guarding automatic id creation by a look.
202 Thanks tlecomte.
203
204 - majorly refactor internal thread and IO handling.
205 execnet can now operate on different thread models,
206 defaults to "thread" but allows for eventlet and
207 gevent if it is installed.
208
209 - gateway.remote_exec() will now execute in multiple
210 threads on the other side by default. The previous
211 necessity of running "gateway.remote_init_threads()"
212 to allow for such concurrency is gone. The latter
213 method is now a no-op and will be removed in future
214 versions of execnet.
215
216 - fix issue20: prevent AttributError at interpreter shutdown
217 by not trying to send close/last_message messages if the
218 world around is half destroyed.
219
220 - fix issue21: allow to create local gateways with sudo aka
221 makegateway("popen//python=sudo python").
222 Thanks Alfredo Deza for the PR.
223
224 - streamline gateway termination and simplify proxy
225 implementation. add more internal tracing.
226
227 - if execution hangs in computation, we now try to
228 send a SIGINT to ourselves on Unix platforms
229 instead of just calling thread.interrupt_main()
230
231 - change license from GPL to MIT
232
233 - introduce execnet.dump/load variants of dumps/loads
234 serializing/unserializing mechanism.
235
236 - improve channel.receive() communication latency on python2
237 by changing the default timeout of the underlying Queue.get
238 to a regular None instead of the previous default -1
239 which caused an internal positive timeout value
240 (a hack probably introduced to allow CTRL-C to pass
241 through for <python2.5 versions).
242
243 - extended ssh-syntax to allow passing of command line args,
244 e.g. "ssh= -p 50 hostname". The options are passed to
245 the underlying ssh client binary. Thanks tundish.
246
247 - fix issue15: interoperability with inspect.getstack().
248 Thanks Peter Feiner.
249
250 - fix issue10 : skip PYTHONDONTWRITEBYTECODE test if
251 it we are running with PYTHONDONTWRITEBYTECODE set.
252
253 - dont try the jython pid fixup on a RemoteIO
254
255 - avoid accidentally setting exc_info() in gateway_base.py
256
257 1.1
258 --------------------------------
259
260 - introduce execnet.dumps/loads providing serialization between
261 python interpreters.
262
263 - group.remote_exec now supports kwargs as well
264
265 - support per channel string coercion configuration
266
267 - Popen2IO.read now reads correct amounts of bytes from nonblocking fd's
268
269 - added a ``dont_write_bytecode`` option to Popen gateways, this sets the
270 ``sys.dont_write_bytecode`` flag on the spawned process, this only works on
271 CPython 2.6 and higher. Thanks to Alex Gaynor.
272
273 - added a pytest --broken-isp option to skip tests that assume
274 DNS queries for unknown hosts actually are resolved as such (Thanks
275 Alex Gaynor)
276
277 - fix issue 1 - decouple string coercion of channels and gateway
278
279 - fix issue #2 - properly reconfigure the channels string coercion for rsync,
280 so it can send from python2 to python3
281
282 - fix issue #9 - properly terminate the worker threadpools in safe_terminate
283 - fix issue #8 - no longer kill remote pids locally on jython ssh gateways
284
285 - refactor socketserver, so it can be directly remote_exec'd for starting a socket gateway on a remote
286
287
288 1.0.9
289 --------------------------------
290
291 - add gw.reconfigure() to configure per gateway options. Currently supported:
292 py2str_as_py3str and py3str_as_py2str to configure string deserialization
293
294 - channel.makefile() objects now have a isatty() returning False
295
296 - group.allocate_id(spec) allows to early-determine an (automatic) id
297
298 - internal refactorings and cleanups (thanks Ronny Pfannschmidt):
299 - refactor message types into received handler functions
300 - refactor b(chr(opcode)) to bchr(opcode)
301 - reorder Message ctor args, rename msgtype to msgcode
302 - refactor gateway.send to take message's init args instead of a message
303 - inline and remove Message.writeto/readfrom
304 - refactor collection loading to avoid the indirection over tuple
305 - remove the unused NamedThreadPool
306
307
308 1.0.8
309 --------------------------------
310
311 - new ``gateway.remote_exec(func, **kwargs)`` style for executing
312 a pure function with parameters. The function on the remote
313 side also needs to accept a ``channel`` which allows it to
314 communicate back and forth. Thanks to Ronny Pfannschmidt
315 for implementing it with special kudos to Maciej Fijalkowski
316 for writing a "pure-function" checker so that on Python2.6
317 onwards non-pure functions will be rejected.
318
319 - enhance rsyncing to also sync permissions (stat().st_mode)
320 of directories and files.
321 (should also resolve http://bitbucket.org/hpk42/py-trunk/issue/68/)
322
323 - fix rsyncing of symlinks, thanks to Charles Solar
324 (should also resolve http://bitbucket.org/hpk42/py-trunk/issue/70/)
325
326 - update internal usage of apipkg to 1.0b6
327
328 - remote_exec(module) now makes sure that the linecache is updated
329 before reading and sending the source. thanks Ronny, Matt.
330
331 - removed all trailing whitespace from source files
332
333 1.0.7
334 --------------------------------
335
336 - try to avoid a random KeyboardInterrupt Error when threads
337 are ending.
338
339 - extend xspec syntax to allow for one or multiple "env:NAME=value"
340 environment variable settings which will be set on the remote side.
341 (thanks Jakub Gustak)
342
343 1.0.6
344 --------------------------------
345
346 - fix jython/windows interactions
347 - fix waitclose/callback-with-endmarker race condition
348 - fix race condition where multiple threads sending data over channels
349 would crash the serializer and process
350
351 1.0.5
352 --------------------------------
353
354 - more care during receiver-thread finalization during interp-shutdown,
355 should get rid of annoying and meaningless exceptions
356 - fix glitch in ssh-fileserver example
357 - experimentally add "setup.py test" support - will run py.test
358
359 1.0.4
360 --------------------------------
361
362 - try to deal more cleanly with interpreter shutdown setting globals to
363 None. this avoids (hopefully) some bogus tracebacks at process exit.
364
365 1.0.3
366 --------------------------------
367
368 - refine termination some more: CTRL-C and gateway.exit will
369 now try harder to interrupt remote execution. this
370 helps to avoid left-over ssh-processes.
371 - fix read-on-non-blocking-files issue probably related to jython only:
372 the low-level read on subprocess pipes may be non-blocking, returning
373 less bytes than requested - so we now loop.
374 - Windows/python2.4: fix bug that killing subprocesses would fail
375 - make RemoteError and TimeoutError available directly on execnet namespace
376
377 - fix some doc and test issues (thanks thm and ronny), add ssh_fileserver example
378 - update internal copy of apipkg
379 - always skip remote tests if no ssh specs given
380
381 1.0.2
382 --------------------------------
383
384 - generalize channel-over-channel sending: you can now have channels
385 anywhere in a data structure (i.e. as an item of a container type).
386 Add according examples.
387
388 - automatically close a channel when a remote callback raises
389 an exception, makes communication more robust because until
390 now failing callbacks rendered the receiverthread unusable
391 leaving the remote side in-accessible.
392
393 - internally split socket gateways, speeds up popen-gateways
394 by 10% (now at <50 milliseconds per-gateway on a 1.5 GHZ machine)
395
396 - fix bug in channel.receive() that would wrongly raise a TimeoutError
397 after 1000 seconds (thanks Ronny Pfannschmidt)
398
399 1.0.1
400 --------------------------------
401
402 - revamp and better structure documentation
403
404 - new method: gateway.hasreceiver() returns True
405 if the gateway is still receive-active. remote_status
406 now only carries information about remote execution status.
407
408 - new: execnet.MultiChannel provides basic iteration/contain interface
409
410 - new: execnet.Group can be indexed by integer
411
412 - new: group.makegateway() uses group.default_spec if no spec is given
413 and the execnet.default_group uses ``popen`` as a default spec.
414
415 - have popen-gateways use imports instead of source-strings,
416 also improves debugging/tracebacks, as a side effect
417 popen-gateway startup can be substantially faster (>30%)
418
419 - refine internal gateway exit/termination procedure
420 and introduce group.terminate(timeout) which will
421 attempt to kill all subprocesses that did not terminate
422 within time.
423
424 - EOFError on channel.receive/waitclose if the other
425 side unexpectedly went away. When a gateway exits
426 it now internally sends an explicit termination message
427 instead of abruptly closing.
428
429 - introduce a timeout parameter to channel.receive()
430 and default to periodically internally wake up
431 to let KeyboardInterrupts pass through.
432
433 - EXECNET_DEBUG=2 will cause tracing to go to stderr,
434 which with popen worker gateways will relay back
435 tracing to the instantiator process.
436
437
438 1.0.0
439 --------------------------------
440
441 * introduce execnet.Group for managing gateway creation
442 and termination. Introduce execnet.default_group through which
443 all "global" calls are routed. cleanup gateway termination.
444 All Gateways get an id through which they can be
445 retrieved from a group object.
446
447 * deprecate execnet.XYZGateway in favour of direct makegateway() calls.
448
449 * refine socketserver-examples, experimentally introduce a
450 way to indirectly setup a socket server ("installvia")
451 through a gateway url.
452
453 * refine and automatically test documentation examples
454
455 1.0.0b3
456 --------------------------------
457
458 * fix EXECNET_DEBUG to work with win32
459 * add support for serializing longs, sets and frozensets (thanks
460 Benjamin Peterson)
461 * introduce remote_status() method which on the low level gives
462 information about the remote side of a gateway
463 * disallow explicit close in remote_exec situation
464 * perform some more detailed tracing with EXECNET_DEBUG
465
466 1.0.0b2
467 --------------------------------
468
469 * make internal protocols more robust against serialization failures
470
471 * fix a serialization bug with nested tuples containing empty tuples
472 (thanks to ronny for discovering it)
473
474 * setting the environment variable EXECNET_DEBUG will generate per
475 process trace-files for debugging
476
477 1.0.0b1
478 ----------------------------
479
480 * added new examples for NumPy, Jython, IronPython
481 * improved documentation
482 * include apipkg.py for lazy-importing
483 * integrated new serializer code from Benjamin Peterson
484 * improved support for Jython-2.5.1
485
486 1.0.0alpha2
487 ----------------------------
488
489 * improve documentation, new website
490
491 * use sphinx for documentation, added boilerplate files and setup.py
492
493 * fixes for standalone usage, adding boilerplate files
494
495 * imported py/execnet and made it work standalone