fix inclusion of singleuser/templates/page.html in wheel

This commit is contained in:
Erik Sundell
2023-03-06 22:32:17 +01:00
parent 850f430ad6
commit 0713fa209e
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ print(f"DATA_FILES_PATH={DATA_FILES_PATH}", end=" ")
DATA_FILES_PATH = Path(DATA_FILES_PATH) DATA_FILES_PATH = Path(DATA_FILES_PATH)
assert DATA_FILES_PATH.is_dir(), DATA_FILES_PATH assert DATA_FILES_PATH.is_dir(), DATA_FILES_PATH
for subpath in ( for subpath in (
"templates/page.html", "templates/spawn.html",
"static/css/style.min.css", "static/css/style.min.css",
"static/components/jquery/dist/jquery.js", "static/components/jquery/dist/jquery.js",
"static/js/admin-react.js", "static/js/admin-react.js",
@@ -28,6 +28,7 @@ for subpath in (
"alembic.ini", "alembic.ini",
"alembic/versions/833da8570507_rbac.py", "alembic/versions/833da8570507_rbac.py",
"event-schemas/server-actions/v1.yaml", "event-schemas/server-actions/v1.yaml",
"singleuser/templates/page.html",
): ):
path = jupyterhub_path / subpath path = jupyterhub_path / subpath
assert path.is_file(), path assert path.is_file(), path

View File

@@ -55,7 +55,7 @@ def get_package_data():
'alembic/*', 'alembic/*',
'alembic/versions/*', 'alembic/versions/*',
'event-schemas/*/*.yaml', 'event-schemas/*/*.yaml',
'jupyterhub/singleuser/templates/*.html', 'singleuser/templates/*.html',
] ]
return package_data return package_data