Skip to content

Commit

Permalink
2.14.2 - Add class-level default for auto_restart
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed Oct 21, 2023
1 parent 1baa98b commit 434931d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 2
minor: 14
patch: 1
patch: 2
entry: runtimepy
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions runtimepy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.3
# hash=fcc77aa66454e20a668446a87172e1e3
# hash=550aa0ec56a5af2c9b0c932e9ab7e8ca
# =====================================

"""
Expand All @@ -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"
4 changes: 3 additions & 1 deletion runtimepy/net/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class Connection(LoggerMixinLevelControl, ChannelEnvironmentMixin, _ABC):

byte_order: ByteOrder = DEFAULT_BYTE_ORDER

default_auto_restart = False

def __init__(
self,
logger: _LoggerType,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 434931d

Please sign in to comment.