diff --git a/.gitignore b/.gitignore index 8b96db3..3103303 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ # The recommended virtualenv directory. /.venv/ -# Temporary directories produced by `pytest`. +# Temporary directories produced by `python`. __pycache__/ .pytest_cache/ diff --git a/.rbtrc b/.rbtrc index 9caf4a6..93a867b 100644 --- a/.rbtrc +++ b/.rbtrc @@ -51,7 +51,7 @@ dev run --name=hello serve --name=hello # Run the application! -dev run backend/src/main.py +dev run --application=backend/src/main.py # Tell `rbt serve` that this is a Python application. serve --python @@ -70,4 +70,4 @@ serve --partitions=4 serve --tls=external # Run the application! -serve backend/src/main.py +serve --application=backend/src/main.py diff --git a/.tests/serve_test.sh b/.tests/serve_test.sh index a6e0b10..d015438 100755 --- a/.tests/serve_test.sh +++ b/.tests/serve_test.sh @@ -39,7 +39,6 @@ stop_container() { perform_curl() { local url="localhost:8787/hello.v1.HelloInterface/Messages" local headers=( - "-H" "x-reboot-service-name:hello.v1.HelloInterface" "-H" "x-reboot-state-ref:hello.v1.Hello:reboot-hello" ) local actual_output_file="$1" diff --git a/Dockerfile b/Dockerfile index 33b4643..84f5cca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/reboot-dev/reboot-base:0.15.0 +FROM ghcr.io/reboot-dev/reboot-base:0.16.0 WORKDIR /app diff --git a/api/hello/v1/hello.proto b/api/hello/v1/hello.proto index 8eba913..7a9691d 100644 --- a/api/hello/v1/hello.proto +++ b/api/hello/v1/hello.proto @@ -7,7 +7,7 @@ import "rbt/v1alpha1/options.proto"; //////////////////////////////////////////////////////////////////////// message Hello { - option (.rbt.v1alpha1.state) = { + option (rbt.v1alpha1.state) = { }; repeated string messages = 1; } diff --git a/pyproject.toml b/pyproject.toml index fddcc19..85cd0d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] requires-python = ">= 3.10" dependencies = [ - "reboot==0.15.0", + "reboot==0.16.0", ] [tool.rye] @@ -9,7 +9,7 @@ dev-dependencies = [ "mypy==1.2.0", "pytest>=7.4.2", "types-protobuf>=4.24.0.20240129", - "reboot==0.15.0", + "reboot==0.16.0", ] # This project only uses `rye` to provide `python` and its dependencies, so diff --git a/requirements-dev.lock b/requirements-dev.lock index a54b5b4..505929c 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -108,7 +108,7 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.2 # via kubernetes-asyncio # via reboot -reboot==0.15.0 +reboot==0.16.0 setuptools==75.1.0 # via grpcio-tools six==1.16.0 diff --git a/requirements.lock b/requirements.lock index 4d56548..0a3f214 100644 --- a/requirements.lock +++ b/requirements.lock @@ -97,7 +97,7 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.2 # via kubernetes-asyncio # via reboot -reboot==0.15.0 +reboot==0.16.0 setuptools==75.1.0 # via grpcio-tools six==1.16.0 diff --git a/web/package-lock.json b/web/package-lock.json index 05a8bc5..2694156 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8,7 +8,7 @@ "name": "web", "version": "0.1.0", "dependencies": { - "@reboot-dev/reboot-react": "^0.15.0", + "@reboot-dev/reboot-react": "^0.16.0", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -3018,17 +3018,17 @@ } }, "node_modules/@reboot-dev/reboot-api": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-api/-/reboot-api-0.15.0.tgz", - "integrity": "sha512-BOjkhKW/wZGJqDXqxVRuA02kJd/VJm3yIWawXDJd4WaRcCXMkJkcdOtMohCQc7GJBw6GXUhGg+mJtmGOSsLzRw==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-api/-/reboot-api-0.16.0.tgz", + "integrity": "sha512-LsF0UM0/Mm+aDAJbzlloqM76RBSsNWNxQzeh0aF4un05SeOAn4hKs704rxadbR3wQlqxyefhd4NVqA36LXbH7Q==" }, "node_modules/@reboot-dev/reboot-react": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-react/-/reboot-react-0.15.0.tgz", - "integrity": "sha512-JXxszQVfeuvN7PrXP7/O8xpQPbAJxWMmHi/nUt58EqV0jvI8u4hTLb/CA50xIo8cV0RNa7zwi3owz7OUz0TmuA==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-react/-/reboot-react-0.16.0.tgz", + "integrity": "sha512-rQDaXowf5tpseQwG+z6VUQyd/GaZmNiLe8+GI2kLev4Lwoj/aztzsfdb4/7jUv2LEt3gDdwpGinSc617ou3SIA==", "dependencies": { "@bufbuild/protobuf": "1.3.2", - "@reboot-dev/reboot-api": "0.15.0", + "@reboot-dev/reboot-api": "0.16.0", "@types/react": "^18.2.22", "@types/uuid": "^9.0.4", "js-sha1": "0.7.0", @@ -17834,17 +17834,17 @@ } }, "@reboot-dev/reboot-api": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-api/-/reboot-api-0.15.0.tgz", - "integrity": "sha512-BOjkhKW/wZGJqDXqxVRuA02kJd/VJm3yIWawXDJd4WaRcCXMkJkcdOtMohCQc7GJBw6GXUhGg+mJtmGOSsLzRw==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-api/-/reboot-api-0.16.0.tgz", + "integrity": "sha512-LsF0UM0/Mm+aDAJbzlloqM76RBSsNWNxQzeh0aF4un05SeOAn4hKs704rxadbR3wQlqxyefhd4NVqA36LXbH7Q==" }, "@reboot-dev/reboot-react": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-react/-/reboot-react-0.15.0.tgz", - "integrity": "sha512-JXxszQVfeuvN7PrXP7/O8xpQPbAJxWMmHi/nUt58EqV0jvI8u4hTLb/CA50xIo8cV0RNa7zwi3owz7OUz0TmuA==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@reboot-dev/reboot-react/-/reboot-react-0.16.0.tgz", + "integrity": "sha512-rQDaXowf5tpseQwG+z6VUQyd/GaZmNiLe8+GI2kLev4Lwoj/aztzsfdb4/7jUv2LEt3gDdwpGinSc617ou3SIA==", "requires": { "@bufbuild/protobuf": "1.3.2", - "@reboot-dev/reboot-api": "0.15.0", + "@reboot-dev/reboot-api": "0.16.0", "@types/react": "^18.2.22", "@types/uuid": "^9.0.4", "js-sha1": "0.7.0", diff --git a/web/package.json b/web/package.json index 62da008..6b00430 100644 --- a/web/package.json +++ b/web/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@reboot-dev/reboot-react": "^0.15.0", + "@reboot-dev/reboot-react": "^0.16.0", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0",