From 434931d63abaa7cd1ee5e993ceb0b5c0b30c863b Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Sat, 21 Oct 2023 18:37:04 -0500 Subject: [PATCH] 2.14.2 - Add class-level default for auto_restart --- .github/workflows/python-package.yml | 2 +- README.md | 4 ++-- local/variables/package.yaml | 2 +- pyproject.toml | 2 +- runtimepy/__init__.py | 4 ++-- runtimepy/net/connection.py | 4 +++- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 7666e6bf..c7977a1e 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.14.1 + repo=runtimepy version=2.14.2 if: | matrix.python-version == '3.11' && matrix.system == 'ubuntu-latest' diff --git a/README.md b/README.md index 8f1adddd..09a9b901 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.3 - hash=ae29420b71db8b624cc2881be802663c + hash=71ccc6b21d39faccacefdaba61a34c2b ===================================== --> -# runtimepy ([2.14.1](https://pypi.org/project/runtimepy/)) +# runtimepy ([2.14.2](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 bf4465ed..3a7005b3 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 2 minor: 14 -patch: 1 +patch: 2 entry: runtimepy diff --git a/pyproject.toml b/pyproject.toml index dcb4021e..6aaae27b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "runtimepy" -version = "2.14.1" +version = "2.14.2" description = "A framework for implementing Python services." readme = "README.md" requires-python = ">=3.11" diff --git a/runtimepy/__init__.py b/runtimepy/__init__.py index 1fda5472..51574e69 100644 --- a/runtimepy/__init__.py +++ b/runtimepy/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.3 -# hash=fcc77aa66454e20a668446a87172e1e3 +# hash=550aa0ec56a5af2c9b0c932e9ab7e8ca # ===================================== """ @@ -10,7 +10,7 @@ DESCRIPTION = "A framework for implementing Python services." PKG_NAME = "runtimepy" -VERSION = "2.14.1" +VERSION = "2.14.2" # runtimepy-specific content. METRICS_NAME = "metrics" diff --git a/runtimepy/net/connection.py b/runtimepy/net/connection.py index 66ece600..e8738ceb 100644 --- a/runtimepy/net/connection.py +++ b/runtimepy/net/connection.py @@ -35,6 +35,8 @@ class Connection(LoggerMixinLevelControl, ChannelEnvironmentMixin, _ABC): byte_order: ByteOrder = DEFAULT_BYTE_ORDER + default_auto_restart = False + def __init__( self, logger: _LoggerType, @@ -78,7 +80,7 @@ def __init__( self._restarts = Uint8() self.env.channel("restarts", self._restarts) - self._auto_restart = Bool() + self._auto_restart = Bool(self.default_auto_restart) self.env.channel("auto_restart", self._auto_restart, commandable=True) self.init()