Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.22.1 #2680

Merged
merged 3 commits into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ Release history

.. towncrier release notes start

Trio 0.22.1 (2023-07-02)
------------------------

Breaking changes
~~~~~~~~~~~~~~~~

- Timeout functions now raise `ValueError` if passed `math.nan`. This includes `trio.sleep`, `trio.sleep_until`, `trio.move_on_at`, `trio.move_on_after`, `trio.fail_at` and `trio.fail_after`. (`#2493 <https://github.com/python-trio/trio/issues/2493>`__)


Features
~~~~~~~~

- Added support for naming threads created with `trio.to_thread.run_sync`, requires pthreads so is only available on POSIX platforms with glibc installed. (`#1148 <https://github.com/python-trio/trio/issues/1148>`__)
- `trio.socket.socket` now prints the address it tried to connect to upon failure. (`#1810 <https://github.com/python-trio/trio/issues/1810>`__)


Bugfixes
~~~~~~~~

- Fixed a crash that can occur when running Trio within an embedded Python interpreter, by handling the `TypeError` that is raised when trying to (re-)install a C signal handler. (`#2333 <https://github.com/python-trio/trio/issues/2333>`__)
- Fix :func:`sniffio.current_async_library` when Trio tasks are spawned from a non-Trio context (such as when using trio-asyncio). Previously, a regular Trio task would inherit the non-Trio library name, and spawning a system task would cause the non-Trio caller to start thinking it was Trio. (`#2462 <https://github.com/python-trio/trio/issues/2462>`__)
- Issued a new release as in the git tag for 0.22.0, ``trio.__version__`` is incorrectly set to 0.21.0+dev. (`#2485 <https://github.com/python-trio/trio/issues/2485>`__)


Improved documentation
~~~~~~~~~~~~~~~~~~~~~~

- Documented that :obj:`Nursery.start_soon` does not guarantee task ordering. (`#970 <https://github.com/python-trio/trio/issues/970>`__)


Trio 0.22.0 (2022-09-28)
------------------------

Expand Down
1 change: 0 additions & 1 deletion newsfragments/1148.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/1810.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/2333.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/2462.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/2493.breaking.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/970.doc.rst

This file was deleted.

2 changes: 1 addition & 1 deletion trio/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file is imported from __init__.py and exec'd from setup.py

__version__ = "0.22.0+dev"
__version__ = "0.22.1+dev"
4 changes: 2 additions & 2 deletions trio/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

warn_deprecated(
"trio.tests",
"0.24.0",
"0.22.1",
Copy link
Contributor Author

@A5rocks A5rocks Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I accidentally told @jakkdl to do this, not realizing this is for the version the thing is deprecated in! (same for the other occurance).

instead="trio._tests",
issue="https://github.com/python-trio/trio/issues/274",
)
Expand All @@ -21,7 +21,7 @@ class TestsDeprecationWrapper:
def __getattr__(self, attr: str) -> Any:
warn_deprecated(
f"trio.tests.{attr}",
"0.24.0",
"0.22.1",
instead=f"trio._tests.{attr}",
issue="https://github.com/python-trio/trio/issues/274",
)
Expand Down