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

bump deps for new trio #422

Merged
merged 3 commits into from
Jul 6, 2024
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
7 changes: 5 additions & 2 deletions docs/source/examples/cancellation.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import trio, trio_parallel, time


def hello_delayed_world():
print("Hello")
time.sleep(1.0)
print("world!")


async def amain():
# warm up thread/process caches
await trio_parallel.run_sync(bool)
Expand All @@ -14,10 +16,11 @@ async def amain():
await trio_parallel.run_sync(hello_delayed_world, cancellable=True)

with trio.move_on_after(0.5):
await trio.to_thread.run_sync(hello_delayed_world, cancellable=True)
await trio.to_thread.run_sync(hello_delayed_world, abandon_on_cancel=True)

# grace period for abandoned thread
await trio.sleep(0.6)

if __name__ == '__main__':

if __name__ == "__main__":
trio.run(amain)
5 changes: 0 additions & 5 deletions requirements/build.in

This file was deleted.

26 changes: 0 additions & 26 deletions requirements/build.txt

This file was deleted.

2 changes: 1 addition & 1 deletion requirements/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#
# pip-compile-multi
#
coverage[toml]==7.4.4
coverage[toml]==7.5.4
# via -r requirements\coverage.in
16 changes: 8 additions & 8 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
-r install.txt
alabaster==0.7.16
# via sphinx
babel==2.14.0
babel==2.15.0
# via sphinx
certifi==2024.2.2
certifi==2024.7.4
# via requests
charset-normalizer==3.3.2
# via requests
Expand All @@ -28,21 +28,21 @@ imagesize==1.4.1
# via sphinx
incremental==22.10.0
# via towncrier
jinja2==3.1.3
jinja2==3.1.4
# via
# sphinx
# towncrier
markupsafe==2.1.5
# via jinja2
packaging==24.0
packaging==24.1
# via sphinx
pygments==2.17.2
pygments==2.18.0
# via sphinx
requests==2.31.0
requests==2.32.3
# via sphinx
snowballstemmer==2.2.0
# via sphinx
sphinx==7.2.6
sphinx==7.3.7
# via
# -r requirements\docs.in
# sphinx-rtd-theme
Expand All @@ -68,5 +68,5 @@ sphinxcontrib-trio==1.1.2
# via -r requirements\docs.in
towncrier==23.11.0
# via -r requirements\docs.in
urllib3==2.2.1
urllib3==2.2.2
# via requests
4 changes: 2 additions & 2 deletions requirements/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cffi==1.16.0 ; os_name == "nt" and implementation_name != "pypy"
# via
# -r requirements\install.in
# trio
idna==3.6
idna==3.7
# via trio
outcome==1.3.0.post0
# via
Expand All @@ -28,5 +28,5 @@ sortedcontainers==2.4.0
# via trio
tblib==3.0.0
# via -r requirements\install.in
trio==0.25.0
trio==0.26.0
# via -r requirements\install.in
14 changes: 7 additions & 7 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
#
# pip-compile-multi
#
black==24.3.0
black==24.4.2
# via -r requirements\lint.in
click==8.1.7
# via black
colorama==0.4.6
# via click
flake8==7.0.0
flake8==7.1.0
# via
# -r requirements\lint.in
# flake8-async
flake8-async==24.3.6
flake8-async==24.6.1
# via -r requirements\lint.in
libcst==1.3.1
libcst==1.4.0
# via flake8-async
mccabe==0.7.0
# via flake8
mypy-extensions==1.0.0
# via black
packaging==24.0
packaging==24.1
# via black
pathspec==0.12.1
# via black
platformdirs==4.2.0
platformdirs==4.2.2
# via black
pycodestyle==2.11.1
pycodestyle==2.12.0
# via flake8
pyflakes==3.2.0
# via flake8
Expand Down
12 changes: 6 additions & 6 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
-r install.txt
colorama==0.4.6
# via pytest
coverage[toml]==7.4.4
coverage[toml]==7.5.4
# via
# -r requirements\test.in
# pytest-cov
execnet==2.0.2
execnet==2.1.1
# via pytest-xdist
iniconfig==2.0.0
# via pytest
packaging==24.0
packaging==24.1
# via pytest
pluggy==1.4.0
pluggy==1.5.0
# via pytest
pytest==8.1.1
pytest==8.2.2
# via
# -r requirements\test.in
# pytest-cov
Expand All @@ -30,5 +30,5 @@ pytest-cov==5.0.0
# via -r requirements\test.in
pytest-trio==0.8.0
# via -r requirements\test.in
pytest-xdist==3.5.0
pytest-xdist==3.6.1
# via -r requirements\test.in
2 changes: 1 addition & 1 deletion trio_parallel/_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def run_sync(self, sync_fn: Callable, *args) -> Optional[Outcome]:
except trio.EndOfChannel:
self._send_pipe.close() # edge case: free proc spinning on recv_bytes
with trio.CancelScope(shield=True):
await self.wait()
await self.wait() # noqa: ASYNC120
raise BrokenWorkerProcessError(
"Worker died unexpectedly:", self.proc
) from None
Expand Down
Loading