Accepting request 841142 from devel:languages:python

- 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.

OBS-URL: https://build.opensuse.org/request/show/841142
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-trio?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2020-10-29 08:47:29 +00:00 committed by Git OBS Bridge
commit 34eb856471
4 changed files with 37 additions and 7 deletions

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Sun Oct 11 15:36:02 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- 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.
-------------------------------------------------------------------
Thu Jul 23 12:46:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -19,9 +19,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-trio
Version: 0.16.0
Version: 0.17.0
Release: 0
Summary: An async/await-native I/O library
Summary: Python async/await-native I/O library
License: MIT OR Apache-2.0
URL: https://github.com/python-trio/trio
Source: https://github.com/python-trio/trio/archive/v%{version}.tar.gz#/trio-%{version}.tar.gz
@ -69,19 +69,23 @@ has an obsessive focus on usability and correctness.
%prep
%setup -q -n trio-%{version}
sed -i '1{/^#!/d}' trio/_tools/gen_exports.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand rm -r %{buildroot}%{$python_sitelib}/trio/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%check
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
# pointless for us.
# test_SSLStream_generic deadlocks in OBS
%pytest -k 'not (test_static_tool_sees_all_symbols or test_SSLStream_generic)'
# test_close_at_bad_time_for_send_all fails on PPC https://github.com/python-trio/trio/issues/1753
%pytest -k 'not (test_static_tool_sees_all_symbols or test_SSLStream_generic or test_close_at_bad_time_for_send_all)'
%files %{python_files}
%doc README.rst

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:246823ae026fd0a9a1cd38db0106ac3ba511be228192f4bf75c336c589e8af78
size 469784

3
trio-0.17.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:295044f9b62232b1f918891e1076ab34045cd1d85e5e577fc97ab74cd93d955c
size 488878