Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.7.8 - Add 'runtimepy' to package search path #287

Merged
merged 1 commit into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
system:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion config
2 changes: 1 addition & 1 deletion local/configs/license.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
name: Vaughn Kottler
name: Libre Embedded
2 changes: 1 addition & 1 deletion local/configs/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ time_command: true

requirements:
- aiofiles
- vcorelib>=3.4.2
- vcorelib>=3.4.3
- svgen>=0.6.8
- websockets
- psutil
Expand Down
2 changes: 1 addition & 1 deletion local/configs/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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: 5
minor: 7
patch: 7
patch: 8
entry: runtimepy
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ 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"}
]
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",
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.4
# hash=ed12f307211d1317e3ce6a7c4409b97f
# hash=23ee90378a544cf13d0ee84da27431ba
# =====================================

"""
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions runtimepy/data/md/RuntimeStruct.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Runtime Structures

Containers for underlying primitives that can participate in binary messaging.
To be continued.
2 changes: 1 addition & 1 deletion runtimepy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiofiles
vcorelib>=3.4.2
vcorelib>=3.4.3
svgen>=0.6.8
websockets
psutil
Expand Down
5 changes: 4 additions & 1 deletion runtimepy/sample/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions runtimepy/sample/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions runtimepy/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.4
# hash=183f8b361ba2aa54cf7e87c823ff45fa
# hash=0f7a29be3d6d2d50603e377499ca435f
# =====================================

"""
Expand All @@ -28,8 +28,8 @@
"version": VERSION,
"description": DESCRIPTION,
"versions": [
"3.11",
"3.12",
"3.13",
],
}
setup(
Expand Down
Loading