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:
commit
34eb856471
@ -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>
|
Thu Jul 23 12:46:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-trio
|
Name: python-trio
|
||||||
Version: 0.16.0
|
Version: 0.17.0
|
||||||
Release: 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
|
License: MIT OR Apache-2.0
|
||||||
URL: https://github.com/python-trio/trio
|
URL: https://github.com/python-trio/trio
|
||||||
Source: https://github.com/python-trio/trio/archive/v%{version}.tar.gz#/trio-%{version}.tar.gz
|
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
|
%prep
|
||||||
%setup -q -n trio-%{version}
|
%setup -q -n trio-%{version}
|
||||||
|
sed -i '1{/^#!/d}' trio/_tools/gen_exports.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/trio/tests/
|
||||||
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
|
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
|
||||||
# pointless for us.
|
# pointless for us.
|
||||||
# test_SSLStream_generic deadlocks in OBS
|
# 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}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
@ -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
3
trio-0.17.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:295044f9b62232b1f918891e1076ab34045cd1d85e5e577fc97ab74cd93d955c
|
||||||
|
size 488878
|
Loading…
x
Reference in New Issue
Block a user