From nobody Fri Jan 3 03:03:33 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YPT1238bpz5kJHy; Fri, 03 Jan 2025 03:03:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPT120y37z4XdG; Fri, 3 Jan 2025 03:03:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735873414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gf7ZUSAdWLBv/92eq1c1ZaqAQgd+RONOvwAoMTEjTZc=; b=TaYP51ClatDpU9rXM+k+MShsU8WeBNZtitopIVL+R35ms2wsrjXsURXiMbmJDRVGRPVrr3 UF7GxCMB7TzKQj44ES6+1kWc90WYi8+19ZqHRb2LJdof2w5My7N7HpRZHbd/t2X/Rk+5Z3 4g3Al3L+tJI1C8h3x/umj8qF4COg8/cQOCBg5rWRjgYh9weHJXinE2fGNp8SQmVbVVo71J 7eZ3Dn6Aok25z5qMWdZCXhhxz0HPeK8e055Ghxs6xJyPUHQ6Ikct8vABbP9wCXcGxd3Shn vY/9kHdXm4wPkYfCpfryGvKbVDCHFFGTQbBawJ2CVkBnjxgaeUYWnFWW0WdrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735873414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gf7ZUSAdWLBv/92eq1c1ZaqAQgd+RONOvwAoMTEjTZc=; b=GoEnzDZTWsu/MW9RoiY1NfzylwD/lN0ey/jeJRKLUW/UryAVl/P4PuFt312Da18QkxJTCm ebMtFmOaNdFhZC0L37xEMrIaSXC73m4CW4LHGMdsBQxijb9HMPcc6hMNr3h2Ro+Too5g+9 Q09htOh+7XQqJDsltEIY+1EZlYByXDvlSP/1dCWYWmkgIhhjvAepB3heMCX+ETIECiNMHd LOSqwWN52Vmq/zkMiz4Wqn6D03khOQlQsFox8Lam2BRUzvcu+jMddtMBncJ1hHMdfSIBYr mwQ/OXtgAvWwRNndgNrRVD1DmBzpKeodILriRyXv3VCboacOT/RTEvL82ISi8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735873414; a=rsa-sha256; cv=none; b=yy68ix7hfsdgA9H5AzPHgy/DewxOFd7Xoeo16WpeMocR3vlx8NJdTobNn9z2S1kZuLyVPv FcuOfxHtp89r2+aaFlhtrGWRoHBubgFjliQYVmO7vQ4Y+G1otTGaANxXc6osgyEGM2UsK3 wLQYLn7ZePxZPfuruFNiGRNjHnbGaG/oSmdASWzSVdva7cVMiu6xhyxG1k4LI4w+vKY9cp ARzPJwkoyV7+FqOZHPSA0ubVv8SXBgGnZZGvzWhFTzg7jVFAspwDP+1PJgdaSiADIS2RPV 0wCwyuuITYwO6XMNIWMuE1oGKY3pOAILaALMTyBU/wxFCkpv8GPZoPjySwVgSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YPT120Y1kz14Js; Fri, 03 Jan 2025 03:03:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50333XJh042425; Fri, 3 Jan 2025 03:03:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50333XFS042422; Fri, 3 Jan 2025 03:03:33 GMT (envelope-from git) Date: Fri, 3 Jan 2025 03:03:33 GMT Message-Id: <202501030303.50333XFS042422@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8611710d5a27 - main - net/py-pook: Correct WWW and pkg-descr List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8611710d5a27427bf277d99bc5c3a5dacba51010 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8611710d5a27427bf277d99bc5c3a5dacba51010 commit 8611710d5a27427bf277d99bc5c3a5dacba51010 Author: Yuri Victorovich AuthorDate: 2025-01-03 01:56:01 +0000 Commit: Yuri Victorovich CommitDate: 2025-01-03 03:03:31 +0000 net/py-pook: Correct WWW and pkg-descr --- net/py-pook/Makefile | 2 +- net/py-pook/pkg-descr | 21 ++++----------------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/net/py-pook/Makefile b/net/py-pook/Makefile index b37d028100ce..6edf3ad80798 100644 --- a/net/py-pook/Makefile +++ b/net/py-pook/Makefile @@ -6,7 +6,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= HTTP traffic mocking and expectations made easy -WWW= https://pook \ +WWW= https://pook.readthedocs.io/en/v2.1.2/ \ https://github.com/h2non/pook LICENSE= MIT diff --git a/net/py-pook/pkg-descr b/net/py-pook/pkg-descr index 55046f8c04fa..2497db098bcb 100644 --- a/net/py-pook/pkg-descr +++ b/net/py-pook/pkg-descr @@ -1,18 +1,5 @@ -Duet takes inspiration from the amazing trio library and the structured -concurrency approach to async programming that it uses. However, duet differs -from trio in two major ways: -* Instead of a full-blown implementation of asynchronous IO, duet relies on the - Future interface for parallelism, and provides a way to run async/await - coroutines around those Futures. This is useful if you are using an API that - returns futures, such as RPC libraries like gRPC. The standard Future - interface does not implement __await__ directly, so Future instances must be - wrapped in duet.AwaitableFuture. +pook is a versatile, expressive and hackable utility library for HTTP traffic +mocking and expectations made easy in Python. Heavily inspired by gock. -* duet is re-entrant. At the top level, you run async code by calling - duet.run(foo). Inside foo suppose you call a function that has not yet been - fully refactored to be asynchronous, but itself calls duet.run(bar). Most - async libraries, including trio and asyncio, will raise an exception if you - try to "re-enter" the event loop in this way, but duet allows it. We have - found that this can simplify the process of refactoring code to be - asynchronous because you don't have to completely separate the sync and async - parts of your codebase all at once. +pook can work with multiple mock engines, however it provides a built-in one by +default, which currently supports traffic mocking in the several HTTP clients.