From e39be0b661828ae1923502021c860a50e20e45da Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Mon, 11 Sep 2023 02:10:11 -0500 Subject: [PATCH] 2.6.7 - Minor updates --- .github/workflows/python-package.yml | 2 +- README.md | 4 ++-- local/variables/package.yaml | 2 +- pyproject.toml | 2 +- runtimepy/__init__.py | 4 ++-- runtimepy/channel/environment/create.py | 5 +++++ runtimepy/net/arbiter/task.py | 4 ++++ 7 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 487e8fb3..29f7774e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -68,7 +68,7 @@ jobs: - run: | mk python-release owner=vkottler \ - repo=runtimepy version=2.6.6 + repo=runtimepy version=2.6.7 if: | matrix.python-version == '3.11' && matrix.system == 'ubuntu-latest' diff --git a/README.md b/README.md index d73cfd32..3e6fbd2b 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.3 - hash=7ef397bccc7420b6048e29034ab9a14e + hash=790eb511bd706c64175f59e2d84fb0c5 ===================================== --> -# runtimepy ([2.6.6](https://pypi.org/project/runtimepy/)) +# runtimepy ([2.6.7](https://pypi.org/project/runtimepy/)) [![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/) ![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg) diff --git a/local/variables/package.yaml b/local/variables/package.yaml index eadf3583..ddd9ac60 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 2 minor: 6 -patch: 6 +patch: 7 entry: runtimepy diff --git a/pyproject.toml b/pyproject.toml index 6e0c8744..e750d8e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "runtimepy" -version = "2.6.6" +version = "2.6.7" description = "A framework for implementing Python services." readme = "README.md" requires-python = ">=3.10" diff --git a/runtimepy/__init__.py b/runtimepy/__init__.py index 3f405698..d9ae933c 100644 --- a/runtimepy/__init__.py +++ b/runtimepy/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.3 -# hash=66fefb4866ffce057ab1af4114fa43c7 +# hash=18c7312c2ee34e91a3d363293ed7202d # ===================================== """ @@ -10,4 +10,4 @@ DESCRIPTION = "A framework for implementing Python services." PKG_NAME = "runtimepy" -VERSION = "2.6.6" +VERSION = "2.6.7" diff --git a/runtimepy/channel/environment/create.py b/runtimepy/channel/environment/create.py index 7dfc9514..abeb1af0 100644 --- a/runtimepy/channel/environment/create.py +++ b/runtimepy/channel/environment/create.py @@ -55,6 +55,11 @@ def channel( name, kind, commandable=commandable, enum=enum ) assert result is not None, f"Can't create channel '{name}'!" + + # Keep track of any new enum channels. + if enum is not None: + self.channel_enums[result] = self.enums[enum] + return self[name] def int_channel( diff --git a/runtimepy/net/arbiter/task.py b/runtimepy/net/arbiter/task.py index d8256b9f..e9e3c3c6 100644 --- a/runtimepy/net/arbiter/task.py +++ b/runtimepy/net/arbiter/task.py @@ -15,9 +15,13 @@ class ArbiterTask(PeriodicTask): """A base class for arbiter periodic tasks.""" + app: AppInfo + async def init(self, app: AppInfo) -> None: """Initialize this task with application information.""" + self.app = app + class ArbiterTaskManager(PeriodicTaskManager[ArbiterTask]): """A task-manger class for the connection arbiter."""