File tree Expand file tree Collapse file tree 8 files changed +16
-12
lines changed Expand file tree Collapse file tree 8 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 7777
7878 - run : |
7979 mk python-release owner=vkottler \
80- repo=runtimepy version=5.7.6
80+ repo=runtimepy version=5.7.7
8181 if: |
8282 matrix.python-version == '3.12'
8383 && matrix.system == 'ubuntu-latest'
Original file line number Diff line number Diff line change 22 =====================================
33 generator=datazen
44 version=3.1.4
5- hash=41ff8742602f69f2831092a4b666cddc
5+ hash=0bf47d2ff3fb0ed78ed013f4fcbc59e2
66 =====================================
77-->
88
9- # runtimepy ([ 5.7.6 ] ( https://pypi.org/project/runtimepy/ ) )
9+ # runtimepy ([ 5.7.7 ] ( 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/vkottler/runtimepy/workflows/Python%20Package/badge.svg )
Original file line number Diff line number Diff line change 11---
22major : 5
33minor : 7
4- patch : 6
4+ patch : 7
55entry : runtimepy
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
44
55[project ]
66name = " runtimepy"
7- version = " 5.7.6 "
7+ version = " 5.7.7 "
88description = " A framework for implementing Python services."
99readme = " README.md"
1010requires-python = " >=3.11"
Original file line number Diff line number Diff line change 11# =====================================
22# generator=datazen
33# version=3.1.4
4- # hash=cab7cff2cb194a61178fa386b80eae85
4+ # hash=ed12f307211d1317e3ce6a7c4409b97f
55# =====================================
66
77"""
1010
1111DESCRIPTION = "A framework for implementing Python services."
1212PKG_NAME = "runtimepy"
13- VERSION = "5.7.6 "
13+ VERSION = "5.7.7 "
1414
1515# runtimepy-specific content.
1616METRICS_NAME = "metrics"
Original file line number Diff line number Diff line change 1616config :
1717 # Default redirects.
1818 http_redirects :
19- " / " : " /app .html"
19+ " / " : " /index .html"
2020 " /index.html " : " /app.html"
2121
22+ # Serve these applications by default at these paths.
23+ http_app_paths : ["/", "/app.html", "/index.html"]
24+
2225servers :
2326 - factory : runtimepy_http
2427 kwargs : {port: "$runtimepy_http_server"}
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ async def get_handler(
272272 return self .favicon_data
273273
274274 # Try serving a file and handling redirects.
275- for handler in [self .try_redirect , self .try_file ]:
275+ for handler in [self .try_file , self .try_redirect ]:
276276 result = await handler (
277277 request .target .origin_form , response
278278 )
Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ async def setup(app: AppInfo) -> int:
6969 )
7070
7171 # Default application (environment tabs).
72- RuntimepyServerConnection .apps ["/app.html" ] = create_app (
73- app , getattr (_import_module (module ), method )
74- )
72+ html_app = create_app (app , getattr (_import_module (module ), method ))
73+ target : str
74+ for target in app .config_param ("http_app_paths" , []):
75+ RuntimepyServerConnection .apps [target ] = html_app
7576
7677 # Register redirects.
7778 redirects : dict [str , str ] = app .config_param ("http_redirects" , {})
You can’t perform that action at this time.
0 commit comments