asyncactor 0.25.0__tar.gz → 0.25.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asyncactor-0.25.0 → asyncactor-0.25.1}/PKG-INFO +2 -1
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/abc.py +2 -2
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/actor.py +1 -7
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor.egg-info/PKG-INFO +2 -1
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor.egg-info/requires.txt +1 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/index.rst +1 -3
- {asyncactor-0.25.0 → asyncactor-0.25.1}/pyproject.toml +2 -2
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.coveragerc +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.gitignore +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.pylintrc +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.readthedocs.yml +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.style.yapf +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/.travis.yml +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/CHANGELOG.rst +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/LICENSE +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/Makefile +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/README.rst +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/__init__.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/__init__.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/moat_kv.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/moat_link.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/mqtt.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/mqttproto.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/backend/serf.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/events.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/exceptions.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/messages.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor/nodelist.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor.egg-info/SOURCES.txt +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor.egg-info/dependency_links.txt +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/asyncactor.egg-info/top_level.txt +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/ci/rtd-requirements.txt +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/ci/test-requirements.txt +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/ci/travis.sh +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/Makefile +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/make.bat +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/_static/.git_empty +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/actor.rst +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/conf.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/history.rst +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/docs/source/rationale.rst +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/mktag +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/setup.cfg +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/__init__.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/mock_serf.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/test_actor.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/test_mosquitto.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/test_mqttproto.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tests/test_serf.py +0 -0
- {asyncactor-0.25.0 → asyncactor-0.25.1}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: asyncactor
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.1
|
|
4
4
|
Summary: Async decentralized actor
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://github.com/smurfix/asyncactor
|
|
@@ -29,6 +29,7 @@ Provides-Extra: dev
|
|
|
29
29
|
Requires-Dist: moat-mqtt; extra == "dev"
|
|
30
30
|
Requires-Dist: mqttproto; extra == "dev"
|
|
31
31
|
Requires-Dist: pytest-cov>=2.3; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-trio; extra == "dev"
|
|
32
33
|
Requires-Dist: pytest>=2.5.2; extra == "dev"
|
|
33
34
|
Requires-Dist: trio>=0.23; extra == "dev"
|
|
34
35
|
|
|
@@ -6,7 +6,7 @@ from __future__ import annotations
|
|
|
6
6
|
|
|
7
7
|
from abc import ABCMeta, abstractmethod
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import anyio
|
|
10
10
|
|
|
11
11
|
from typing import TYPE_CHECKING, Union
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@ class Transport(metaclass=ABCMeta):
|
|
|
43
43
|
async def send(self, payload: Packable):
|
|
44
44
|
"""send this payload to this channel"""
|
|
45
45
|
|
|
46
|
-
async def receiver(self, *, task_status=
|
|
46
|
+
async def receiver(self, *, task_status=anyio.TASK_STATUS_IGNORED):
|
|
47
47
|
"""
|
|
48
48
|
A dummy receiver which the transport may override,
|
|
49
49
|
otherwise it's the client's job
|
|
@@ -140,13 +140,7 @@ class Actor(CtxObj):
|
|
|
140
140
|
self._values = {} # map names to steps
|
|
141
141
|
self._history = NodeList(self._nodes) # those in the loop
|
|
142
142
|
self._prev_history = None
|
|
143
|
-
|
|
144
|
-
if rs is None:
|
|
145
|
-
self._rand = Random() # noqa:S311
|
|
146
|
-
else:
|
|
147
|
-
import trio._core._run as tcr
|
|
148
|
-
|
|
149
|
-
self._rand = tcr._r # noqa:SLF001
|
|
143
|
+
self._rand = Random() # noqa:S311
|
|
150
144
|
|
|
151
145
|
self._next_ping_time = 0
|
|
152
146
|
self._recover_pings = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: asyncactor
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.1
|
|
4
4
|
Summary: Async decentralized actor
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://github.com/smurfix/asyncactor
|
|
@@ -29,6 +29,7 @@ Provides-Extra: dev
|
|
|
29
29
|
Requires-Dist: moat-mqtt; extra == "dev"
|
|
30
30
|
Requires-Dist: mqttproto; extra == "dev"
|
|
31
31
|
Requires-Dist: pytest-cov>=2.3; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-trio; extra == "dev"
|
|
32
33
|
Requires-Dist: pytest>=2.5.2; extra == "dev"
|
|
33
34
|
Requires-Dist: trio>=0.23; extra == "dev"
|
|
34
35
|
|
|
@@ -9,7 +9,7 @@ is a network split, and related tasks.
|
|
|
9
9
|
Key features:
|
|
10
10
|
|
|
11
11
|
* async; uses `AnyIO <https://github.com/agronholm/anyio/>`,
|
|
12
|
-
thus is compatible with ``asyncio
|
|
12
|
+
thus is compatible with ``asyncio`` and ``trio``.
|
|
13
13
|
|
|
14
14
|
* timeslot-based, ~1 message per slot
|
|
15
15
|
|
|
@@ -17,8 +17,6 @@ Key features:
|
|
|
17
17
|
|
|
18
18
|
Inherited from `Trio <https://github.com/python-trio/trio>`_:
|
|
19
19
|
|
|
20
|
-
* Real-time chat: https://gitter.im/python-trio/general
|
|
21
|
-
|
|
22
20
|
* Contributor guide: https://trio.readthedocs.io/en/latest/contributing.html
|
|
23
21
|
|
|
24
22
|
* Code of conduct: Contributors are requested to follow our `code of
|
|
@@ -38,7 +38,7 @@ repository = "https://github.com/smurfix/asyncactor.git"
|
|
|
38
38
|
moat_kv = [ "moat-kv",]
|
|
39
39
|
moat_link = [ "moat-link",]
|
|
40
40
|
mqtt = [ "mqttproto",]
|
|
41
|
-
dev = ["pytest >= 2.5.2", "pytest-cov >= 2.3", "
|
|
41
|
+
dev = ["pytest >= 2.5.2", "pytest-cov >= 2.3", "moat-mqtt", "mqttproto", "pytest-trio", "trio >= 0.23"]
|
|
42
42
|
|
|
43
43
|
[tool.ruff]
|
|
44
44
|
preview = true
|
|
@@ -98,7 +98,7 @@ envlist = py310,check
|
|
|
98
98
|
setenv =
|
|
99
99
|
PYTHONPATH = {env:PYTHONPATH}{:}{toxinidir}
|
|
100
100
|
deps =
|
|
101
|
-
|
|
101
|
+
anyio
|
|
102
102
|
pytest
|
|
103
103
|
commands =
|
|
104
104
|
python3 -mpytest tests/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|