Bug 287082 - [NEW PORT] devel/py-wait-for2: Handle simultaneous cancellation and future completion
Summary: [NEW PORT] devel/py-wait-for2: Handle simultaneous cancellation and future co...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL: https://github.com/Traktormaster/wait...
Keywords:
Depends on:
Blocks: 287083
  Show dependency treegraph
 
Reported: 2025-05-26 21:28 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2025-05-27 22:16 UTC (History)
1 user (show)

See Also:


Attachments
wait-for2.patch (2.29 KB, patch)
2025-05-26 21:28 UTC, Jesús Daniel Colmenares Oviedo
dtxdf: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo freebsd_committer freebsd_triage 2025-05-26 21:28:45 UTC
Created attachment 260722 [details]
wait-for2.patch

Description:

wait_for2 is an alternate implementation of asyncio.wait_for(). It
handles several edge cases like simultaneous cancellation of wait
and completion of future differently and consistently across Python
versions 3.7+.
    
WWW: https://github.com/Traktormaster/wait-for2

QA:

* portlint:
  - WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX.
* testport: OK (poudriere: 14.2-RELEASE, amd64)
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-05-27 22:15:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39e75f7802a14126715b2a70007dc107c9954f0b

commit 39e75f7802a14126715b2a70007dc107c9954f0b
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2025-05-27 22:03:23 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-27 22:14:43 +0000

    devel/py-wait-for2: New port: Handle simultaneous cancellation and future completion

    Alternate implementation of asyncio.wait_for(). It handles several edge
    cases like simultaneous cancellation of wait and completion of future
    differently and consistently across Python versions 3.7+.
    https://github.com/Traktormaster/wait-for2

    Required for www/py-nicegui 2.18.0.

    PR:     287082

 devel/Makefile                     |  1 +
 devel/py-wait-for2/Makefile (new)  | 21 +++++++++++++++++++++
 devel/py-wait-for2/distinfo (new)  |  3 +++
 devel/py-wait-for2/pkg-descr (new) |  4 ++++
 4 files changed, 29 insertions(+)
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-27 22:16:11 UTC
Thanks.