15
0
forked from pool/python-anyio

65 Commits

Author SHA256 Message Date
a21f740b65 Accepting request 1299192 from devel:languages:python
Should fix the build in Staging:C

- Skip flaky test_keyboardinterrupt_during_test, the timeout increase
  doesn't always help.
- Fix build for Leap

- Update to 4.10.0:
  + Added the feed_data() method to the BufferedByteReceiveStream
    class, allowing users to inject data directly into the buffer
  + Added various class methods to wrap existing sockets as
    listeners or socket streams
  + Added a hierarchy of connectable stream classes for
    transparently connecting to various remote or local endpoints
    for exchanging bytes or objects
  + Added context manager mix-in classes (anyio.ContextManagerMixin
    and anyio.AsyncContextManagerMixin) to help write classes that
    embed other context managers, particularly cancel scopes or
    task groups
  + Added the ability to specify the thread name in start_blocking
   _portal()
  + Added anyio.notify_closing to allow waking anyio.wait_readable
    and anyio.wait_writable before closing a socket. Among other
    things, this prevents an OSError on the ProactorEventLoop.
  + Incorporated several documentation improvements from the
    EuroPython 2025 sprint
  + Added a documentation page explaining why one might want to use
    AnyIO's APIs instead of asyncio's
  + Updated the to_interpreters module to use the public
    concurrent.interpreters API on Python 3.14 or later
  + Fixed anyio.Path.copy() and anyio.Path.copy_into() failing on
    Python 3.14.0a7
  + Fixed return annotation of __aexit__ on async context managers.

OBS-URL: https://build.opensuse.org/request/show/1299192
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=27
2025-08-13 14:23:33 +00:00
57f846e65f - Skip flaky test_keyboardinterrupt_during_test, the timeout increase
doesn't always help.
- Fix build for Leap

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=57
2025-08-13 06:27:22 +00:00
aabc50b179 Accepting request 1299049 from home:dimstar:Factory
Sadly. this still fails with glibc 2.42 on i586 :(

- Update to 4.10.0:
  + Added the feed_data() method to the BufferedByteReceiveStream
    class, allowing users to inject data directly into the buffer
  + Added various class methods to wrap existing sockets as
    listeners or socket streams
  + Added a hierarchy of connectable stream classes for
    transparently connecting to various remote or local endpoints
    for exchanging bytes or objects
  + Added context manager mix-in classes (anyio.ContextManagerMixin
    and anyio.AsyncContextManagerMixin) to help write classes that
    embed other context managers, particularly cancel scopes or
    task groups
  + Added the ability to specify the thread name in start_blocking
   _portal()
  + Added anyio.notify_closing to allow waking anyio.wait_readable
    and anyio.wait_writable before closing a socket. Among other
    things, this prevents an OSError on the ProactorEventLoop.
  + Incorporated several documentation improvements from the
    EuroPython 2025 sprint
  + Added a documentation page explaining why one might want to use
    AnyIO's APIs instead of asyncio's
  + Updated the to_interpreters module to use the public
    concurrent.interpreters API on Python 3.14 or later
  + Fixed anyio.Path.copy() and anyio.Path.copy_into() failing on
    Python 3.14.0a7
  + Fixed return annotation of __aexit__ on async context managers.
  + Fixed rollover boundary check in SpooledTemporaryFile so that
    rollover only occurs when the buffer size exceeds max_size
  + Migrated testing and documentation dependencies from extras to
    dependency groups

OBS-URL: https://build.opensuse.org/request/show/1299049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=56
2025-08-12 13:29:36 +00:00
1fb8e41e15 Accepting request 1298106 from devel:languages:python
- Increase timeout in in test_keyboardinterrupt_during_test, it helps
  with flaky tests in i586 arches.

OBS-URL: https://build.opensuse.org/request/show/1298106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=26
2025-08-08 13:09:55 +00:00
1b5c4a4565 - Increase timeout in in test_keyboardinterrupt_during_test, it helps
with flaky tests in i586 arches.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=54
2025-08-07 09:33:46 +00:00
052257cd28 Accepting request 1294656 from devel:languages:python
- Inject multibuild to break a build loop. 

- Update to 4.9.0:
  * Added async support for temporary file handling (#344; PR by @11kkw)
  * Added 4 new fixtures for the AnyIO pytest plugin:
    * free_tcp_port_factory: session scoped fixture returning a callable
      that generates unused TCP port numbers
    * free_udp_port_factory: session scoped fixture returning a callable
      that generates unused UDP port numbers
    * free_tcp_port: function scoped fixture that invokes the
      free_tcp_port_factory fixture to generate a free TCP port number
    * free_udp_port: function scoped fixture that invokes the
      free_udp_port_factory fixture to generate a free UDP port number
  * Added stdin argument to anyio.run_process() akin to what
    anyio.open_process(), asyncio.create_subprocess(), trio.run_process(),
    and subprocess.run() already accept (PR by @jmehnle)
  * Added the info property to anyio.Path on Python 3.14
  * Changed anyio.getaddrinfo() to ignore (invalid) IPv6 name resolution
    results when IPv6 support is disabled in Python
  * Changed EndOfStream raised from MemoryObjectReceiveStream.receive()
    to leave out the AttributeError from the exception chain which was
    merely an implementation detail and caused some confusion
  * Fixed traceback formatting growing quadratically with level of
    TaskGroup nesting on asyncio due to exception chaining when raising
    ExceptionGroups in TaskGroup.__aexit__ (#863; PR by @tapetersen)
  * Fixed anyio.Path.iterdir() making a blocking call in Python 3.13
    (#873; PR by @cbornet and @agronholm)
  * Fixed connect_tcp() producing cyclic references in tracebacks when
    raising exceptions (#809; PR by @graingert)
  * Fixed anyio.to_thread.run_sync() needlessly holding on to references

OBS-URL: https://build.opensuse.org/request/show/1294656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=25
2025-07-21 17:59:16 +00:00
ed724ac461 - Inject multibuild to break a build loop.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=52
2025-07-21 05:04:22 +00:00
302e3c293f Accepting request 1294357 from home:fstegmeier:branches:devel:languages:python
- Update to 4.9.0:
  * Added async support for temporary file handling (#344; PR by @11kkw)
  * Added 4 new fixtures for the AnyIO pytest plugin:
    * free_tcp_port_factory: session scoped fixture returning a callable
      that generates unused TCP port numbers
    * free_udp_port_factory: session scoped fixture returning a callable
      that generates unused UDP port numbers
    * free_tcp_port: function scoped fixture that invokes the
      free_tcp_port_factory fixture to generate a free TCP port number
    * free_udp_port: function scoped fixture that invokes the
      free_udp_port_factory fixture to generate a free UDP port number
  * Added stdin argument to anyio.run_process() akin to what
    anyio.open_process(), asyncio.create_subprocess(), trio.run_process(),
    and subprocess.run() already accept (PR by @jmehnle)
  * Added the info property to anyio.Path on Python 3.14
  * Changed anyio.getaddrinfo() to ignore (invalid) IPv6 name resolution
    results when IPv6 support is disabled in Python
  * Changed EndOfStream raised from MemoryObjectReceiveStream.receive()
    to leave out the AttributeError from the exception chain which was
    merely an implementation detail and caused some confusion
  * Fixed traceback formatting growing quadratically with level of
    TaskGroup nesting on asyncio due to exception chaining when raising
    ExceptionGroups in TaskGroup.__aexit__ (#863; PR by @tapetersen)
  * Fixed anyio.Path.iterdir() making a blocking call in Python 3.13
    (#873; PR by @cbornet and @agronholm)
  * Fixed connect_tcp() producing cyclic references in tracebacks when
    raising exceptions (#809; PR by @graingert)
  * Fixed anyio.to_thread.run_sync() needlessly holding on to references
    of the context, function, arguments and others until the next work
    item on asyncio (PR by @Wankupi)

OBS-URL: https://build.opensuse.org/request/show/1294357
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=51
2025-07-19 07:33:52 +00:00
67919f551d Accepting request 1244802 from devel:languages:python
- Update to 4.8.0:
  * Added experimental support for running functions in 
    subinterpreters on Python 3.13 and later
  * Added support for the copy(), copy_into(), move() and move_into() 
    methods in anyio.Path, available in Python 3.14
  * Changed TaskGroup on asyncio to always spawn tasks non-eagerly, 
    even if using a task factory created 
    via asyncio.create_eager_task_factory(), to preserve expected 
    Trio-like task scheduling semantics (PR by @agronholm and @graingert)
  * Configure SO_RCVBUF, SO_SNDBUF and TCP_NODELAY on the selector 
    thread waker socket pair (this should improve the performance of 
    wait_readable() and wait_writable() when using the ProactorEventLoop) 
    (#836; PR by @graingert)
  * Fixed AssertionError when using nest-asyncio (#840)
  * Fixed return type annotation of various context managers' 
    __exit__ method (#847; PR by @Enegg)
- from 4.7.0:
  * Updated TaskGroup to work with asyncio's eager task factories (#764)
  * Added the wait_readable() and wait_writable() functions which will 
    accept an object with a .fileno() method or an integer handle, and 
    deprecated their now obsolete versions (wait_socket_readable() and 
    wait_socket_writable()) (PR by @davidbrochart)
  * Changed EventAdapter (an Event with no bound async backend) to allow 
    set() to work even before an async backend is bound to it (#819)
  * Added support for wait_readable() and wait_writable() on 
    ProactorEventLoop (used on asyncio + Windows by default)
  * Fixed a misleading ValueError in the context of DNS failures 
    (#815; PR by @graingert)
  * Fixed the return type annotations of readinto() and readinto1() 
    methods in the anyio.AsyncFile class (#825)
  * Fixed TaskInfo.has_pending_cancellation() on asyncio returning 
    false positives in cleanup code on Python >= 3.11 
    (#832; PR by @gschaffner)
  * Fixed cancelled cancel scopes on asyncio calling 
    asyncio.Task.uncancel when propagating a CancelledError on exit 
    to a cancelled parent scope (#790; PR by @gschaffner)

OBS-URL: https://build.opensuse.org/request/show/1244802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=24
2025-02-11 20:21:06 +00:00
856dcb0c62 Accepting request 1244801 from home:mcalabkova:branches:devel:languages:python
typing_extensions is actually needed everywhere

OBS-URL: https://build.opensuse.org/request/show/1244801
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=49
2025-02-10 15:38:44 +00:00
9a12dfdfd0 Accepting request 1244708 from home:nkrapp:branches:devel:languages:python
- Update to 4.8.0:
  * Added experimental support for running functions in 
    subinterpreters on Python 3.13 and later
  * Added support for the copy(), copy_into(), move() and move_into() 
    methods in anyio.Path, available in Python 3.14
  * Changed TaskGroup on asyncio to always spawn tasks non-eagerly, 
    even if using a task factory created 
    via asyncio.create_eager_task_factory(), to preserve expected 
    Trio-like task scheduling semantics (PR by @agronholm and @graingert)
  * Configure SO_RCVBUF, SO_SNDBUF and TCP_NODELAY on the selector 
    thread waker socket pair (this should improve the performance of 
    wait_readable() and wait_writable() when using the ProactorEventLoop) 
    (#836; PR by @graingert)
  * Fixed AssertionError when using nest-asyncio (#840)
  * Fixed return type annotation of various context managers' 
    __exit__ method (#847; PR by @Enegg)

OBS-URL: https://build.opensuse.org/request/show/1244708
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=48
2025-02-10 13:47:37 +00:00
482ba65da9 Accepting request 1217080 from devel:languages:python
- update to 4.6.2:
  * Fixed regression caused by (\#807) that prevented the use
    of parametrized async fixtures
- update to 4.6.1:
  * Fixed TaskGroup and CancelScope producing cyclic references
    in tracebacks when raising exceptions (\#806) (PR by
    @graingert)

OBS-URL: https://build.opensuse.org/request/show/1217080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=23
2024-10-23 19:08:21 +00:00
4528cb6ee9 - update to 4.6.2:
* Fixed regression caused by (\#807) that prevented the use
    of parametrized async fixtures
- update to 4.6.1:
  * Fixed TaskGroup and CancelScope producing cyclic references
    in tracebacks when raising exceptions (\#806) (PR by
    @graingert)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=46
2024-10-22 16:01:01 +00:00
46449c0f57 Accepting request 1205309 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1205309
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=22
2024-10-03 16:00:37 +00:00
e804669b94 Accepting request 1205307 from home:alarrosa:branches:devel:languages:python
- update to 4.6.0:
  * Dropped support for Python 3.8 (as #698 cannot be resolved
    without cancel message support)
  * Fixed 100% CPU use on asyncio while waiting for an exiting task
    group to finish while said task group is within a cancelled
    cancel scope (#695)
  * Fixed cancel scopes on asyncio not propagating CancelledError
    on exit when the enclosing cancel scope has been effectively
    cancelled (#698)
  * Fixed asyncio task groups not yielding control to the event
    loop at exit if there were no child tasks to wait on
  * Fixed inconsistent task uncancellation with asyncio cancel
    scopes belonging to a task group when said task group has child
    tasks running
- update to 4.5.0:
  * Improved the performance of anyio.Lock and anyio.Semaphore on
    asyncio (even up to 50 %)
  * Added the fast_acquire parameter to anyio.Lock and
    anyio.Semaphore to further boost performance at the expense of
    safety (acquire() will not yield control back if there is no
    contention)
  * Added support for the from_uri(), full_match(), parser
    methods/properties in anyio.Path, newly added in Python 3.13
    (#737)
  * Added support for more keyword arguments for run_process() and
    open_process(): startupinfo, creationflags, pass_fds, user,
    group, extra_groups and umask (#742)
  * Improved the type annotations and support for PathLike in
    run_process() and open_process() to allow for path-like
    arguments, just like subprocess.Popen

OBS-URL: https://build.opensuse.org/request/show/1205307
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=44
2024-10-02 18:23:44 +00:00
c19058f4e9 Accepting request 1193842 from devel:languages:python
- update to 4.4.0:
  * Added the BlockingPortalProvider class to aid with
    constructing synchronous counterparts to asynchronous
    interfaces that would otherwise require multiple blocking
    portals
  * Added __slots__ to AsyncResource so that child classes can
    use __slots__
  * Added the TaskInfo.has_pending_cancellation() method
  * Fixed erroneous RuntimeError: called 'started' twice on the
    same task status when cancelling a task in a TaskGroup
    created with the start() method before the first checkpoint
    is reached after calling task_status.started()
  * Fixed two bugs with TaskGroup.start() on asyncio: Fixed
    erroneous RuntimeError: called 'started' twice on the same
    task status when cancelling a task in a TaskGroup created
    with the start() method before the first checkpoint is
    reached after calling task_status.started() (#706; PR by
    Dominik Schwabe) Fixed the entire task group being cancelled
    if a TaskGroup.start() call gets cancelled (#685, #710)
  * Fixed erroneous RuntimeError: called 'started' twice on the
    same task status when cancelling a task in a TaskGroup
    created with the start() method before the first checkpoint
    is reached after calling task_status.started()
  * Fixed the entire task group being cancelled if a
    TaskGroup.start() call gets cancelled
  * Fixed a race condition that caused crashes when multiple
    event loops of the same backend were running in separate
    threads and simultaneously attempted to use AnyIO for their
    first time
  * Fixed cancellation delivery on asyncio incrementing the wrong

OBS-URL: https://build.opensuse.org/request/show/1193842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=21
2024-08-15 07:57:34 +00:00
c0b1cee0f9 - update to 4.4.0:
* Added the BlockingPortalProvider class to aid with
    constructing synchronous counterparts to asynchronous
    interfaces that would otherwise require multiple blocking
    portals
  * Added __slots__ to AsyncResource so that child classes can
    use __slots__
  * Added the TaskInfo.has_pending_cancellation() method
  * Fixed erroneous RuntimeError: called 'started' twice on the
    same task status when cancelling a task in a TaskGroup
    created with the start() method before the first checkpoint
    is reached after calling task_status.started()
  * Fixed two bugs with TaskGroup.start() on asyncio: Fixed
    erroneous RuntimeError: called 'started' twice on the same
    task status when cancelling a task in a TaskGroup created
    with the start() method before the first checkpoint is
    reached after calling task_status.started() (#706; PR by
    Dominik Schwabe) Fixed the entire task group being cancelled
    if a TaskGroup.start() call gets cancelled (#685, #710)
  * Fixed erroneous RuntimeError: called 'started' twice on the
    same task status when cancelling a task in a TaskGroup
    created with the start() method before the first checkpoint
    is reached after calling task_status.started()
  * Fixed the entire task group being cancelled if a
    TaskGroup.start() call gets cancelled
  * Fixed a race condition that caused crashes when multiple
    event loops of the same backend were running in separate
    threads and simultaneously attempted to use AnyIO for their
    first time
  * Fixed cancellation delivery on asyncio incrementing the wrong

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=42
2024-06-12 09:21:15 +00:00
184b2a231c Accepting request 1157062 from devel:languages:python
- Update to 4.3.0:
  * Added support for the Python 3.12 ``walk_up`` keyword argument in
    ``anyio.Path.relative_to()``
  * Fixed passing ``total_tokens`` to ``anyio.CapacityLimiter()`` as a
    keyword argument not working on the ``trio`` backend
  * Fixed ``Process.aclose()`` not performing the minimum level of
    necessary cleanup when cancelled
  * Fixed ``Process.stdin.aclose()``, ``Process.stdout.aclose()``, and
    ``Process.stderr.aclose()``
- Add exceptiongroup to {Build,}Requires.

OBS-URL: https://build.opensuse.org/request/show/1157062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=20
2024-03-14 16:42:27 +00:00
ee39414b64 Correct BuildRequires for exceptiongroup, it is always required.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=40
2024-03-11 23:38:02 +00:00
87b4f920e6 - Update to 4.3.0:
* Added support for the Python 3.12 ``walk_up`` keyword argument in
    ``anyio.Path.relative_to()``
  * Fixed passing ``total_tokens`` to ``anyio.CapacityLimiter()`` as a
    keyword argument not working on the ``trio`` backend
  * Fixed ``Process.aclose()`` not performing the minimum level of
    necessary cleanup when cancelled
  * Fixed ``Process.stdin.aclose()``, ``Process.stdout.aclose()``, and
    ``Process.stderr.aclose()``
- Add exceptiongroup to {Build,}Requires.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=39
2024-03-11 06:15:59 +00:00
0d3c7168b6 Accepting request 1136274 from devel:languages:python
- update to 4.2.0:
  * Add support for byte-based paths in connect_unix,
    create_unix_listeners, create_unix_datagram_socket, and
    create_connected_unix_datagram_socket. (PR by Lura Skye)
  * Enabled the Event and CapacityLimiter classes to be
    instantiated outside an event loop thread
  * Broadly improved/fixed the type annotations. Among other
    things, many functions and methods that take variadic
    positional arguments now make use of PEP 646 TypeVarTuple to
    allow the positional arguments to be validated by static type
    checkers. These changes affected numerous methods and
    functions, including: * anyio.run() * TaskGroup.start_soon()
    * anyio.from_thread.run() * anyio.from_thread.run_sync() *
    anyio.to_thread.run_sync() * anyio.to_process.run_sync() *
    BlockingPortal.call() * BlockingPortal.start_task_soon() *
    BlockingPortal.start_task() (also resolves #560)
  * Fixed various type annotations of anyio.Path to match
    Typeshed: * anyio.Path.__lt__() * anyio.Path.__le__() *
    anyio.Path.__gt__() * anyio.Path.__ge__() *
    anyio.Path.__truediv__() * anyio.Path.__rtruediv__() *
    anyio.Path.hardlink_to() * anyio.Path.samefile() *
    anyio.Path.symlink_to() * anyio.Path.with_segments() (PR by
    Ganden Schaffner)
  * Fixed adjusting the total number of tokens in a
    CapacityLimiter on asyncio failing to wake up tasks waiting
    to acquire the limiter in certain edge cases (fixed with help
    from Egor Blagov)
  * Fixed loop_factory and use_uvloop options not being used on
    the asyncio backend
  * Fixed cancellation propagating on asyncio from a task group

OBS-URL: https://build.opensuse.org/request/show/1136274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=19
2024-01-21 22:07:33 +00:00
5bf63236e0 - update to 4.2.0:
* Add support for byte-based paths in connect_unix,
    create_unix_listeners, create_unix_datagram_socket, and
    create_connected_unix_datagram_socket. (PR by Lura Skye)
  * Enabled the Event and CapacityLimiter classes to be
    instantiated outside an event loop thread
  * Broadly improved/fixed the type annotations. Among other
    things, many functions and methods that take variadic
    positional arguments now make use of PEP 646 TypeVarTuple to
    allow the positional arguments to be validated by static type
    checkers. These changes affected numerous methods and
    functions, including: * anyio.run() * TaskGroup.start_soon()
    * anyio.from_thread.run() * anyio.from_thread.run_sync() *
    anyio.to_thread.run_sync() * anyio.to_process.run_sync() *
    BlockingPortal.call() * BlockingPortal.start_task_soon() *
    BlockingPortal.start_task() (also resolves #560)
  * Fixed various type annotations of anyio.Path to match
    Typeshed: * anyio.Path.__lt__() * anyio.Path.__le__() *
    anyio.Path.__gt__() * anyio.Path.__ge__() *
    anyio.Path.__truediv__() * anyio.Path.__rtruediv__() *
    anyio.Path.hardlink_to() * anyio.Path.samefile() *
    anyio.Path.symlink_to() * anyio.Path.with_segments() (PR by
    Ganden Schaffner)
  * Fixed adjusting the total number of tokens in a
    CapacityLimiter on asyncio failing to wake up tasks waiting
    to acquire the limiter in certain edge cases (fixed with help
    from Egor Blagov)
  * Fixed loop_factory and use_uvloop options not being used on
    the asyncio backend
  * Fixed cancellation propagating on asyncio from a task group

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=37
2024-01-02 20:52:48 +00:00
e684201f2d - update to 4.1.0:
* Adapted to API changes made in Trio v0.23
  * Removed a checkpoint when exiting a task group
  * Renamed the ``cancellable`` argument in
    ``anyio.to_thread.run_sync()`` to
  * ``abandon_on_cancel`` (and deprecated the old parameter name)
  * Added support for voluntary thread cancellation via
  * ``anyio.from_thread.check_cancelled()``
  * Bumped minimum version of trio to v0.23
  * Exposed the ``ResourceGuard`` class in the public API
  * Fixed ``RuntimeError: Runner is closed`` when running higher-
    scoped async generator fixtures in some cases
  * Fixed discrepancy between ``asyncio`` and ``trio`` where
    reraising a cancellation exception in an ``except*`` block
    would incorrectly bubble out of its cancel scope
  * Any exceptions raising out of a task groups are now nested
    inside an ``ExceptionGroup`` (or ``BaseExceptionGroup`` if one
    or more ``BaseException`` were included)
  * Fixed task group not raising a cancellation exception on
    asyncio at exit if no child tasks were spawned and an outer
    cancellation scope had been cancelled before
  * Ensured that exiting a ``TaskGroup`` always hits a yield
    point, regardless of whether there are running child tasks to
    be waited on
  * On asyncio, cancel scopes will defer cancelling tasks that
    are scheduled to resume with a finished future
  * On asyncio and Python 3.9/3.10, cancel scopes now only
    suppress cancellation exceptions if the cancel message matches
    the scope
  * Task groups on all backends now raise a single cancellation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=36
2023-12-01 16:55:19 +00:00
217940d961 Accepting request 1126958 from devel:languages:python
- update to 3.7.1:
  * Fixed sending large buffers via UNIX stream sockets on
    asyncio
  * Fixed several minor documentation issues (broken links to
    classes, missing classes or attributes)
  * Dropped support for Python 3.6
  * Improved type annotations:
  * Several functions and methods that were previously annotated
    as accepting ``Coroutine[Any, Any, Any]`` as the return type
    of the callable have been amended to accept ``Awaitable[Any]``
    instead, to allow a slightly broader set of coroutine-like
    inputs, like ``async_generator_asend`` objects returned from
    the ``asend()`` method of async generators, and to match
    the ``trio`` annotations:
    * ``anyio.run()``
    * ``anyio.from_thread.run()``
    * ``TaskGroup.start_soon()``
    * ``TaskGroup.start()``
    * ``BlockingPortal.call()``
    * ``BlockingPortal.start_task_soon()``
    * ``BlockingPortal.start_task()``
  * Changed ``TLSAttribute.shared_ciphers`` to match the
    documented semantics of ``SSLSocket.shared_ciphers``
    of always returning ``None`` for client-side streams
  * Fixed ``CapacityLimiter`` on the asyncio backend to order
    waiting tasks in the FIFO order (instead of LIFO)
  * Fixed ``CancelScope.cancel()`` not working on asyncio if
    called before entering the scope
  * Fixed ``open_signal_receiver()`` inconsistently yielding
    integers instead of ``signal.Signals`` instances on the

OBS-URL: https://build.opensuse.org/request/show/1126958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=18
2023-11-23 20:38:43 +00:00
6cc0fdae53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=34 2023-11-16 15:50:07 +00:00
1d74ee67c4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=33 2023-11-16 15:40:25 +00:00
c2964d40f8 - drop fix-failing-tls-tests.patch
support-trio-0.22.patch
  tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch: obsolete

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=32
2023-11-16 15:35:52 +00:00
fc8767e10e - update to 3.7.1:
* Fixed sending large buffers via UNIX stream sockets on
    asyncio
  * Fixed several minor documentation issues (broken links to
    classes, missing classes or attributes)
  * Dropped support for Python 3.6
  * Improved type annotations:
  * Several functions and methods that were previously annotated
    as accepting ``Coroutine[Any, Any, Any]`` as the return type
    of the callable have been amended to accept ``Awaitable[Any]``
    instead, to allow a slightly broader set of coroutine-like
    inputs, like ``async_generator_asend`` objects returned from
    the ``asend()`` method of async generators, and to match
    the ``trio`` annotations:
    * ``anyio.run()``
    * ``anyio.from_thread.run()``
    * ``TaskGroup.start_soon()``
    * ``TaskGroup.start()``
    * ``BlockingPortal.call()``
    * ``BlockingPortal.start_task_soon()``
    * ``BlockingPortal.start_task()``
  * Changed ``TLSAttribute.shared_ciphers`` to match the
    documented semantics of ``SSLSocket.shared_ciphers``
    of always returning ``None`` for client-side streams
  * Fixed ``CapacityLimiter`` on the asyncio backend to order
    waiting tasks in the FIFO order (instead of LIFO)
  * Fixed ``CancelScope.cancel()`` not working on asyncio if
    called before entering the scope
  * Fixed ``open_signal_receiver()`` inconsistently yielding
    integers instead of ``signal.Signals`` instances on the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=31
2023-11-16 15:34:42 +00:00
969486b212 Accepting request 1122669 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1122669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=17
2023-11-06 20:13:40 +00:00
3bb72dd601 Accepting request 1122463 from home:jirislaby:branches:devel:languages:python
- add tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch (kernel
  6.6 fix)

OBS-URL: https://build.opensuse.org/request/show/1122463
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=29
2023-11-02 12:31:00 +00:00
46e9675d48 Accepting request 1109337 from devel:languages:python
- Add patch support-trio-0.22.patch:

OBS-URL: https://build.opensuse.org/request/show/1109337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=16
2023-09-07 19:12:47 +00:00
651e32b550 - Add patch support-trio-0.22.patch:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=27
2023-09-06 20:23:02 +00:00
70eb884e45 Accepting request 1084544 from devel:languages:python
- Add patch fix-failing-tls-tests.patch:
  * Fix test failures with Python TLS changes.

OBS-URL: https://build.opensuse.org/request/show/1084544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=15
2023-05-19 09:55:05 +00:00
b74ade8ee7 - Add patch fix-failing-tls-tests.patch:
* Fix test failures with Python TLS changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=25
2023-05-04 07:30:14 +00:00
920d85b5f0 Accepting request 1082169 from devel:languages:python
Forwarded request #1081325 from dirkmueller

SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1082169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=14
2023-04-23 20:43:48 +00:00
86be3f0bba Accepting request 1081325 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081325
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=23
2023-04-22 06:22:18 +00:00
93a66b92d1 Accepting request 1069824 from devel:languages:python
- Add patc support-trio-0.22.patch:
  * Support trio >= 0.22 just enough for asyncclick.

OBS-URL: https://build.opensuse.org/request/show/1069824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=13
2023-03-08 13:51:18 +00:00
f09f600ddb - Add patc support-trio-0.22.patch:
* Support trio >= 0.22 just enough for asyncclick.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=21
2023-03-07 06:29:47 +00:00
02fd2926ac Accepting request 1043354 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1043354
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=12
2022-12-17 19:36:17 +00:00
d519806b6e Accepting request 1043350 from home:mcalabkova:branches:devel:languages:python
- Skip trio exception tests for now 
  * https://github.com/agronholm/anyio/issues/508
  * 787cb0c2e5

OBS-URL: https://build.opensuse.org/request/show/1043350
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=19
2022-12-16 15:19:18 +00:00
3144a32e90 Accepting request 1037186 from devel:languages:python
- update to 3.6.2:
  - Pinned Trio to < 0.22 to avoid incompatibility with AnyIO's ``ExceptionGroup`` class
    causing ``AttributeError: 'NonBaseMultiError' object has no attribute '_exceptions'``
    (AnyIO 4 is unaffected)
  - Fixed exception handler in the asyncio test runner not properly handling a context
    that does not contain the ``exception`` key
  - Fixed ``TypeError`` in ``get_current_task()`` on asyncio when using a custom ``Task`` factory
  - Updated type annotations on ``run_process()`` and ``open_process()``:
    * ``command`` now accepts accepts bytes and sequences of bytes
    * ``stdin``, ``stdout`` and ``stderr`` now accept file-like objects
  - Changed the pytest plugin to run both the setup and teardown phases of asynchronous
    generator fixtures within a single task to enable use cases such as cancel scopes and
    task groups where a context manager straddles the ``yield``
- drop anyio-pytest7.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1037186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=11
2022-11-23 08:47:46 +00:00
db8c10a7b8 - drop anyio-pytest7.patch (upstream)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=17
2022-11-21 21:18:37 +00:00
fa1f76c10b - update to 3.6.2:
- Pinned Trio to < 0.22 to avoid incompatibility with AnyIO's ``ExceptionGroup`` class
    causing ``AttributeError: 'NonBaseMultiError' object has no attribute '_exceptions'``
    (AnyIO 4 is unaffected)
  - Fixed exception handler in the asyncio test runner not properly handling a context
    that does not contain the ``exception`` key
  - Fixed ``TypeError`` in ``get_current_task()`` on asyncio when using a custom ``Task`` factory
  - Updated type annotations on ``run_process()`` and ``open_process()``:
    * ``command`` now accepts accepts bytes and sequences of bytes
    * ``stdin``, ``stdout`` and ``stderr`` now accept file-like objects
  - Changed the pytest plugin to run both the setup and teardown phases of asynchronous
    generator fixtures within a single task to enable use cases such as cancel scopes and
    task groups where a context manager straddles the ``yield``

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=16
2022-11-21 21:18:11 +00:00
26518d15ed Accepting request 965303 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/965303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=10
2022-04-23 17:45:12 +00:00
a3f51b5e5c Accepting request 965236 from home:bnavigator:branches:devel:languages:python
- Add anyio-pytest7.patch -- gh#agronholm/anyio#420

OBS-URL: https://build.opensuse.org/request/show/965236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=14
2022-03-28 06:41:48 +00:00
a50ff3f78c Accepting request 955059 from devel:languages:python
- skip some tests for older distros (lack of TLSv1.3 support)

OBS-URL: https://build.opensuse.org/request/show/955059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=9
2022-02-16 23:30:12 +00:00
563bb98a5b - skip some tests for older distros (lack of TLSv1.3 support)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=13
2022-02-15 16:06:53 +00:00
1d329a3888 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=12 2022-02-15 15:59:30 +00:00
b116bfdf32 Accepting request 946668 from devel:languages:python
- update to 3.5.0:
  - Added ``start_new_session`` keyword argument to ``run_process()`` and ``open_process()``
  - Fixed deadlock in synchronization primitives on asyncio which can happen if a task acquiring a
    primitive is hit with a native (not AnyIO) cancellation with just the right timing, leaving the
    next acquiring task waiting forever
  - Added workaround for bpo-46313_ to enable compatibility with OpenSSL 3.0

OBS-URL: https://build.opensuse.org/request/show/946668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=8
2022-01-15 19:05:24 +00:00
cdf47aacfa - update to 3.5.0:
- Added ``start_new_session`` keyword argument to ``run_process()`` and ``open_process()``
  - Fixed deadlock in synchronization primitives on asyncio which can happen if a task acquiring a
    primitive is hit with a native (not AnyIO) cancellation with just the right timing, leaving the
    next acquiring task waiting forever
  - Added workaround for bpo-46313_ to enable compatibility with OpenSSL 3.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=11
2022-01-15 16:36:52 +00:00