Port details |
- py-duet Simple future-based async library for python
- 0.2.9 net =2 0.2.9Version of this port present on the latest quarterly branch.
- Maintainer: yuri@FreeBSD.org
- Port Added: 2021-11-15 00:30:20
- Last Update: 2023-07-27 07:33:33
- Commit Hash: d67fe1e
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- Also Listed In: python
- License: APACHE20
- WWW:
- https://github.com/google/duet
- Description:
- 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.
* 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}duet>0:net/py-duet@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/net/py-duet/ && make install clean
- To add the package, run one of these commands:
- pkg install net/py-duet
- pkg install py39-duet
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-duet listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-duet
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1690443036
SHA256 (duet-0.2.9.tar.gz) = d6fa39582e6a3dce1096c47e5fbcbda648a633eed94a38943e68662afa2587f3
SIZE (duet-0.2.9.tar.gz) = 24438
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- py39-pytest>0 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Run
-
- science/py-cirq-core
Configuration Options:
- No options to configure
- Options name:
- net_py-duet
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.2.9 27 Jul 2023 07:33:33 |
Yuri Victorovich (yuri) |
net/py-duet: Update 0.2.8 → 0.2.9
Reported by: portscout |
0.2.8 27 Jun 2023 19:34:34 |
Rene Ladan (rene) |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
0.2.8 21 Jun 2023 07:44:30 |
Yuri Victorovich (yuri) |
net/py-duet: Update 0.2.7 → 0.2.8
Reported by: portscout |
0.2.7 11 Jan 2023 15:58:34 |
Dmitry Marakasov (amdmi3) |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
0.2.7 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
0.2.7 19 Jun 2022 04:52:34 |
Yuri Victorovich (yuri) |
net/py-duet: Update 0.2.6 -> 0.2.7
Reported by: portscout |
0.2.6 30 Apr 2022 16:03:25 |
Yuri Victorovich (yuri) |
net/py-duet: Update 0.2.5 -> 0.2.6
Reported by: portscout |
0.2.5 19 Mar 2022 23:29:22 |
Yuri Victorovich (yuri) |
net/py-duet: Update 0.2.3 -> 0.2.5
Reported by: portscout |
0.2.3 15 Nov 2021 00:27:21 |
Yuri Victorovich (yuri) |
net/py-duet: New port: Simple future-based async library for python |