Skip to content

Commit c7f80e7

Browse files
authored
Merge pull request #321 from libre-embedded/dev/5.14.2
5.14.2 - Add task stopper
2 parents 7487f7a + e6cb201 commit c7f80e7

File tree

11 files changed

+32
-12
lines changed

11 files changed

+32
-12
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
- run: |
8080
mk python-release owner=libre-embedded \
81-
repo=runtimepy version=5.14.1
81+
repo=runtimepy version=5.14.2
8282
if: |
8383
matrix.python-version == '3.12'
8484
&& matrix.system == 'ubuntu-latest'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
=====================================
33
generator=datazen
44
version=3.2.3
5-
hash=06a038e989fda153238ee650b2f26604
5+
hash=d3dcde1ba35cb14decfc6881b6a2d4e6
66
=====================================
77
-->
88

9-
# runtimepy ([5.14.1](https://pypi.org/project/runtimepy/))
9+
# runtimepy ([5.14.2](https://pypi.org/project/runtimepy/))
1010

1111
[![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/)
1212
![Build Status](https://github.com/libre-embedded/runtimepy/workflows/Python%20Package/badge.svg)

local/configs/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ time_command: true
88

99
requirements:
1010
- aiofiles
11-
- vcorelib>=3.5.8
11+
- vcorelib>=3.6.0
1212
- svgen>=0.7.12
1313
- websockets
1414
- psutil

local/variables/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
major: 5
33
minor: 14
4-
patch: 1
4+
patch: 2
55
entry: runtimepy

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
44

55
[project]
66
name = "runtimepy"
7-
version = "5.14.1"
7+
version = "5.14.2"
88
description = "A framework for implementing Python services."
99
readme = "README.md"
1010
requires-python = ">=3.12"

runtimepy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =====================================
22
# generator=datazen
33
# version=3.2.3
4-
# hash=49d1cdab220096c364c12f39a37de0aa
4+
# hash=f2469e97ed5a3a48c5347357f12c3554
55
# =====================================
66

77
"""
@@ -10,7 +10,7 @@
1010

1111
DESCRIPTION = "A framework for implementing Python services."
1212
PKG_NAME = "runtimepy"
13-
VERSION = "5.14.1"
13+
VERSION = "5.14.2"
1414

1515
# runtimepy-specific content.
1616
METRICS_NAME = "metrics"

runtimepy/commands/arbiter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ def app(args: _Namespace) -> int:
4141
if args.init_only:
4242
stop_sig.set()
4343

44-
return _run_handle_stop(
44+
result = _run_handle_stop(
4545
stop_sig,
4646
entry(stop_sig, args, window=args.window),
4747
enable_uvloop=not getattr(args, "no_uvloop", False),
4848
)
49+
return result if result is not None else 1
4950

5051

5152
def arbiter_cmd(args: _Namespace) -> int:

runtimepy/commands/tftp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ def tftp_cmd(args: argparse.Namespace) -> int:
4242
else:
4343
task = tftp_write(addr, args.our_file, args.their_file, **kwargs)
4444

45-
return run_handle_stop(
45+
result = run_handle_stop(
4646
stop_sig, task, enable_uvloop=not getattr(args, "no_uvloop", False)
4747
)
48+
return result if result is not None else 1
4849

4950

5051
def add_tftp_cmd(parser: argparse.ArgumentParser) -> CommandFunction:

runtimepy/net/arbiter/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def run(
470470
) -> int:
471471
"""Run the application until the stop signal is set."""
472472

473-
return run_handle_stop(
473+
result = run_handle_stop(
474474
self.stop_sig,
475475
self.app(
476476
app=app, check_connections=check_connections, config=config
@@ -479,3 +479,4 @@ def run(
479479
signals=signals,
480480
enable_uvloop=enable_uvloop,
481481
)
482+
return result if result is not None else 1

runtimepy/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiofiles
2-
vcorelib>=3.5.8
2+
vcorelib>=3.6.0
33
svgen>=0.7.12
44
websockets
55
psutil

0 commit comments

Comments
 (0)