Revisions of python-trio

Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1199467 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 19)
- update to 0.26.2:
  * Remove remaining hash usage and fix test configuration issue
    that prevented it from being caught.
  * Switched attrs usage off of hash, which is now deprecated.
  * Use PyPI's Trusted Publishers to make releases.
  * Added an interactive interpreter python -m trio. This makes
    it easier to try things and experiment with trio in the a
    Python repl. Use the await keyword without needing to call
    trio.run()  $ python -m trio Trio 0.21.0+dev, Python 3.10.6
    Use "await" directly instead of "trio.run()". Type "help",
    "copyright", "credits" or "license" for more information. >>>
    import trio >>> await trio.sleep(1); print("hi")  # prints
    after one second hi  See :ref:`interactive debugging` for
    further detail. (#2972)
  * :class:`trio.testing.RaisesGroup` can now catch an unwrapped
    exception with unwrapped=True. This means that the behaviour
    of :ref:`except* <except_star>` can be fully replicated in
    combination with flatten_subgroups=True (formerly
    strict=False). (#2989)
  * Fixed a bug where :class:`trio.testing.RaisesGroup(...,
    strict=False) <trio.testing.RaisesGroup>` would check the
    number of exceptions in the raised ExceptionGroup before
    flattening subgroups, leading to incorrectly failed matches.
    It now properly supports end ($) regex markers in the match
    message, by no longer including " (x sub-exceptions)" in the
    string it matches against.
  * Deprecated strict parameter from
    :class:`trio.testing.RaisesGroup`, previous functionality of
    strict=False is now in flatten_subgroups=True.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1182980 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 18)
Automatic submission by obs-autosubmit
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1160629 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 17)
Forwarded request #1160593 from mcalabkova

- Update to 0.25.0
    * New helper classes: RaisesGroup and Matcher.
    * MultiError has been fully removed, and all relevant trio 
      functions now raise ExceptionGroups instead.
    * The strict_exception_groups parameter now defaults to True 
      in trio.run and trio.lowlevel.start_guest_run.
    * Add trio.testing.wait_all_threads_completed, which blocks 
      until no threads are running tasks.
    * Path is now a subclass of pathlib.PurePath, allowing it to 
      interoperate with other standard pathlib types.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1112325 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 15)
- remove buildrequires that are not used on sle15

  * If you want to use Trio, but are stuck with some other event loop
    memory channels slightly smaller and faster.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1045129 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 13)
Forwarded request #1045068 from bnavigator

- Try again with 0.22.0 and a fixed httpcore

  - go back to 0.21.0 as it breaks httpcore
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1037176 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 12)
- Fix rpmlint error python-tests-in-package.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1005914 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 11)
- update to 0.21.0:
  * Trio now supports Python 3.11.
  * Remove support for Python 3.6.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 841142 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 7)
- Remove hashbang and tests in runtime package
- Disable test test_close_at_bad_time_for_send_all due to failure on PPC
- Update to v0.17.0
  * trio.open_tcp_stream has a new local_address= keyword argument
    that can be used on machines with multiple IP addresses to
    control which IP is used for the outgoing connection
  * If you pass a raw IP address into sendto, it no longer spends
    any time trying to resolve the hostname. If you're using UDP,
    this should substantially reduce your per-packet overhead
  * trio.lowlevel.checkpoint is now much faster
  * new, lower-overhead data structure to track upcoming timeouts,
    which should make your programs faster
  * Trio can now be imported when sys.excepthook is a functools.partial
    instance, which might occur in a pytest-qt test function
  * The thread cache didn't release its reference to the previous job
  * Remove wait_socket_*, notify_socket_closing, notify_fd_closing,
    run_sync_in_worker_thread and current_default_worker_thread_limiter
  * When using "instruments", you now only "pay for what you use":
    if there are no instruments installed that override a particular
    hook such as `abc.Instrument.before_task_step`, then Trio doesn't
    waste any effort on checking its instruments when the event
    corresponding to that hook occurs.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 812800 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 5)
- Update to 0.15.1:
  * Added a helpful error message if an async function is passed to
    trio.from_thread.run_sync or a sync function to trio.from_thread.run. (#1244)
  * Previously, when trio.run_process was cancelled, it always killed the subprocess immediately. Now, on Unix, it first gives the process a chance to clean up by sending SIGTERM, and only escalates to SIGKILL if the process is still running after 5 seconds. But if you prefer the old behavior, or want to adjust the timeout, then don't worry: you can now pass a custom deliver_cancel= argument to define your own process killing policy. (#1104)
  * It turns out that creating a subprocess can block the parent process for a surprisingly long time. So trio.open_process now uses a worker thread to avoid blocking the event loop. (#1109)
  * On Linux kernels v5.3 or newer, trio.Process.wait now uses the pidfd API to track child processes. This shouldn't have any user-visible change, but it makes working with subprocesses faster and use less memory. (#1241)
  * The trio.Process.returncode attribute is now automatically updated as needed, instead of only when you call ~trio.Process.poll or ~trio.Process.wait. Also, repr(process_object) now always contains up-to-date information about the process status. (#1315)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 763378 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 4)
- update to 0.13.0
 * Use slots for memory channel state and statistics which should make
    memory channels slightly smaller and faster. 
 * OpenSSL has a bug in its handling of TLS 1.3 session tickets that can cause
    deadlocks or data loss in some rare edge cases. These edge cases most frequently
    happen during tests.
 * Trio now uses signal.set_wakeup_fd on all platforms.
 * Trio no longer crashes when an async function is implemented in C or Cython
    and then passed directly to trio.run or nursery.start_soon.
 * When a Trio task makes improper use of a non-Trio async library, Trio nowi
    causes an exception to be raised within the task at the point of the error,
    rather than abandoning the task and raising an error in its parent.
    This improves debuggability and resolves the TrioInternalError that would
    sometimes result from the old strategy. (#552)
 * In 0.12.0 we deprecated trio.run_sync_in_worker_thread in favor
    of trio.to_thread.run_sync. But, the deprecation message listed the wrong
    name for the replacement.
 * Fix regression introduced with cancellation changes in 0.12.0, where
    a trio.CancelScope which isn't cancelled could catch a propagating
    trio.Cancelled exception if shielding were changed while the cancellation
    was propagating.
 * Fix a crash that could happen when using MockClock with autojump enabled
    and a non-zero rate.
 * If you nest >1000 cancel scopes within each other, Trio now handles that
    gracefully instead of crashing with a RecursionError.
 * Fixed the hash behavior of trio.Path to match pathlib.Path. Previously
    trio.Path's hash was inherited from object instead of from pathlib.PurePath.
Displaying all 19 revisions
openSUSE Build Service is sponsored by