From d489ba66bc25a6adc38a5684147cd0d898890219 Mon Sep 17 00:00:00 2001 From: giles knap Date: Thu, 2 Oct 2025 11:46:42 +0000 Subject: [PATCH] add stdio-socket --- Dockerfile | 2 +- pyproject.toml | 5 ++++- uv.lock | 18 +++++++++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ebd943c..0a8485c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ FROM developer AS build WORKDIR /app COPY . /app RUN chmod o+wrX . +ENV PATH=/app/.venv/bin:$PATH # Tell uv sync to install python in a known location so we can copy it out later ENV UV_PYTHON_INSTALL_DIR=/python @@ -56,7 +57,6 @@ COPY --from=build /python /python # Copy the environment, but not the source code COPY --from=build /app/.venv /app/.venv -ENV PATH=/app/.venv/bin:$PATH # change this entrypoint if it is not the same as the repo ENTRYPOINT ["fastcs-example"] diff --git a/pyproject.toml b/pyproject.toml index 1937a71..d857c8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,8 @@ requires = ["setuptools>=64", "setuptools_scm[toml]>=8"] build-backend = "setuptools.build_meta" +# test change + [project] name = "fastcs-example" classifiers = [ @@ -14,6 +16,7 @@ classifiers = [ description = "An example simulation IOC for testing fastCS" dependencies = [ "fastcs", + "stdio-socket", ] # Add project dependencies here, e.g. ["click", "numpy"] dynamic = ["version"] license.file = "LICENSE" @@ -110,7 +113,7 @@ commands = [ description = "Run tests with coverage" commands = [ [ - "pytest", + "pytest", "--cov=fastcs_example", "--cov-report", "term", diff --git a/uv.lock b/uv.lock index 2b5a5ab..53e7a5c 100644 --- a/uv.lock +++ b/uv.lock @@ -617,6 +617,7 @@ name = "fastcs-example" source = { editable = "." } dependencies = [ { name = "fastcs" }, + { name = "stdio-socket" }, ] [package.dev-dependencies] @@ -636,7 +637,10 @@ dev = [ ] [package.metadata] -requires-dist = [{ name = "fastcs" }] +requires-dist = [ + { name = "fastcs" }, + { name = "stdio-socket" }, +] [package.metadata.requires-dev] demo = [{ name = "tickit", specifier = "~=0.4.3" }] @@ -2298,6 +2302,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/be/72/2db2f49247d0a18b4f1bb9a5a39a0162869acf235f3a96418363947b3d46/starlette-0.48.0-py3-none-any.whl", hash = "sha256:0764ca97b097582558ecb498132ed0c7d942f233f365b86ba37770e026510659", size = 73736, upload-time = "2025-09-13T08:41:03.869Z" }, ] +[[package]] +name = "stdio-socket" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typer" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8a/6c/288d8095c4bebeb34fda8d573c6e25ddd973541cce2264d87229372ad305/stdio_socket-1.3.1.tar.gz", hash = "sha256:aebd682c345eeccec4715ac8546f27859212d8cfd6ab971b76b1e36594ba93bb", size = 26314, upload-time = "2025-09-12T11:59:57.245Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7c/72/ad2e96e2469ee040fb5f5f97ca2f45d11352add139eaa992fa8da5f282e0/stdio_socket-1.3.1-py3-none-any.whl", hash = "sha256:30a1465d71d44e4ebf8e571179935364253ef2aec931ea4c41c00e4f77e50367", size = 15690, upload-time = "2025-09-12T11:59:56.422Z" }, +] + [[package]] name = "strawberry-graphql" version = "0.282.0"