From f532a6dab59880c03a1fc56fdc8a17db23c5b1a3 Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Sat, 26 Oct 2024 03:23:12 +0000 Subject: [PATCH] 5.7.8 - Add 'runtimepy' to package search path --- .github/workflows/python-package.yml | 4 ++-- LICENSE | 2 +- README.md | 6 +++--- config | 2 +- local/configs/license.yaml | 2 +- local/configs/package.yaml | 2 +- local/configs/python.yaml | 2 +- local/variables/package.yaml | 2 +- pyproject.toml | 6 +++--- runtimepy/__init__.py | 4 ++-- runtimepy/data/md/RuntimeStruct.md | 1 + runtimepy/requirements.txt | 2 +- runtimepy/sample/peer.py | 5 ++++- runtimepy/sample/program.py | 2 ++ runtimepy/schemas.py | 5 +++++ setup.py | 4 ++-- 16 files changed, 31 insertions(+), 20 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f5cb821e..e4b44701 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,8 +19,8 @@ jobs: strategy: matrix: python-version: - - "3.11" - "3.12" + - "3.13" system: - ubuntu-latest - macos-latest @@ -77,7 +77,7 @@ jobs: - run: | mk python-release owner=vkottler \ - repo=runtimepy version=5.7.7 + repo=runtimepy version=5.7.8 if: | matrix.python-version == '3.12' && matrix.system == 'ubuntu-latest' diff --git a/LICENSE b/LICENSE index 241562dd..61cf5b33 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Vaughn Kottler +Copyright (c) 2024 Libre Embedded Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 9aa7c961..8ce6e1be 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.4 - hash=0bf47d2ff3fb0ed78ed013f4fcbc59e2 + hash=310d6c6e0ee94ad235278f3b6a152499 ===================================== --> -# runtimepy ([5.7.7](https://pypi.org/project/runtimepy/)) +# runtimepy ([5.7.8](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) @@ -29,8 +29,8 @@ This package is tested with the following Python minor versions: -* [`python3.11`](https://docs.python.org/3.11/) * [`python3.12`](https://docs.python.org/3.12/) +* [`python3.13`](https://docs.python.org/3.13/) ## Platform Support diff --git a/config b/config index 170d4643..8638bb30 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 170d4643385923ce4ab235aa6fc0c742a9807213 +Subproject commit 8638bb3062920b2c624f15f864e6f453db1114ab diff --git a/local/configs/license.yaml b/local/configs/license.yaml index a01a5a73..7c431faf 100644 --- a/local/configs/license.yaml +++ b/local/configs/license.yaml @@ -1,2 +1,2 @@ --- -name: Vaughn Kottler +name: Libre Embedded diff --git a/local/configs/package.yaml b/local/configs/package.yaml index d05eecfd..20d1b086 100644 --- a/local/configs/package.yaml +++ b/local/configs/package.yaml @@ -8,7 +8,7 @@ time_command: true requirements: - aiofiles - - vcorelib>=3.4.2 + - vcorelib>=3.4.3 - svgen>=0.6.8 - websockets - psutil diff --git a/local/configs/python.yaml b/local/configs/python.yaml index b7fd071c..f9900d97 100644 --- a/local/configs/python.yaml +++ b/local/configs/python.yaml @@ -3,7 +3,7 @@ author_info: name: Vaughn Kottler email: vaughn@libre-embedded.com username: vkottler -versions: ["3.11", "3.12"] +versions: ["3.12", "3.13"] systems: - macos-latest diff --git a/local/variables/package.yaml b/local/variables/package.yaml index 250c64bb..694a6f20 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 5 minor: 7 -patch: 7 +patch: 8 entry: runtimepy diff --git a/pyproject.toml b/pyproject.toml index ac0902bc..a9c99acb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "runtimepy" -version = "5.7.7" +version = "5.7.8" description = "A framework for implementing Python services." readme = "README.md" -requires-python = ">=3.11" +requires-python = ">=3.12" authors = [ {name = "Vaughn Kottler", email = "vaughn@libre-embedded.com"} ] @@ -15,8 +15,8 @@ maintainers = [ {name = "Vaughn Kottler", email = "vaughn@libre-embedded.com"} ] classifiers = [ - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: Microsoft :: Windows", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", diff --git a/runtimepy/__init__.py b/runtimepy/__init__.py index a2533f18..4a319b87 100644 --- a/runtimepy/__init__.py +++ b/runtimepy/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.4 -# hash=ed12f307211d1317e3ce6a7c4409b97f +# hash=23ee90378a544cf13d0ee84da27431ba # ===================================== """ @@ -10,7 +10,7 @@ DESCRIPTION = "A framework for implementing Python services." PKG_NAME = "runtimepy" -VERSION = "5.7.7" +VERSION = "5.7.8" # runtimepy-specific content. METRICS_NAME = "metrics" diff --git a/runtimepy/data/md/RuntimeStruct.md b/runtimepy/data/md/RuntimeStruct.md index 5df24582..9eb87420 100644 --- a/runtimepy/data/md/RuntimeStruct.md +++ b/runtimepy/data/md/RuntimeStruct.md @@ -1,3 +1,4 @@ # Runtime Structures +Containers for underlying primitives that can participate in binary messaging. To be continued. diff --git a/runtimepy/requirements.txt b/runtimepy/requirements.txt index 6eed8ad8..7d127c3e 100644 --- a/runtimepy/requirements.txt +++ b/runtimepy/requirements.txt @@ -1,5 +1,5 @@ aiofiles -vcorelib>=3.4.2 +vcorelib>=3.4.3 svgen>=0.6.8 websockets psutil diff --git a/runtimepy/sample/peer.py b/runtimepy/sample/peer.py index 3ce1df03..59f5336a 100644 --- a/runtimepy/sample/peer.py +++ b/runtimepy/sample/peer.py @@ -49,6 +49,9 @@ async def main(self) -> None: ) sig = asyncio.Event() task = asyncio.create_task(conn.process(stop_sig=sig)) - await conn.request(RequestHeader(target="/index.html")) + + for endpoint in ["/index.html", "/app.html"]: + await conn.request(RequestHeader(target=endpoint)) + sig.set() await task diff --git a/runtimepy/sample/program.py b/runtimepy/sample/program.py index f4f92544..decb3ed4 100644 --- a/runtimepy/sample/program.py +++ b/runtimepy/sample/program.py @@ -63,6 +63,8 @@ async def run(app: AppInfo) -> int: prog = SampleProgram.singleton() + prog.send_poll(2) + await prog.share_config({"config": app.original_config()}) assert prog is not None diff --git a/runtimepy/schemas.py b/runtimepy/schemas.py index a1c289ab..cb498f28 100644 --- a/runtimepy/schemas.py +++ b/runtimepy/schemas.py @@ -8,12 +8,17 @@ # third-party from vcorelib.dict.codec import DictCodec as _DictCodec from vcorelib.io import DEFAULT_INCLUDES_KEY +from vcorelib.paths.find import PACKAGE_SEARCH from vcorelib.schemas.base import SchemaMap as _SchemaMap from vcorelib.schemas.json import JsonSchemaMap as _JsonSchemaMap # internal from runtimepy import PKG_NAME +# Add this package to the search path. +if PKG_NAME not in PACKAGE_SEARCH: + PACKAGE_SEARCH.insert(0, PKG_NAME) + class RuntimepyDictCodec(_DictCodec): """ diff --git a/setup.py b/setup.py index e398aec3..a220e024 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.4 -# hash=183f8b361ba2aa54cf7e87c823ff45fa +# hash=0f7a29be3d6d2d50603e377499ca435f # ===================================== """ @@ -28,8 +28,8 @@ "version": VERSION, "description": DESCRIPTION, "versions": [ - "3.11", "3.12", + "3.13", ], } setup(