Skip to content

Commit

Permalink
[Release] Update the examples (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
reboot-dev-bot authored Nov 22, 2023
1 parent 9fa3756 commit 245045b
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 42 deletions.
23 changes: 12 additions & 11 deletions .tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ ls -l api/ backend/src/ web/ 2> /dev/null > /dev/null || {

# Create and activate a virtual environment so that we don't pollute the
# system's Python installation.
python -m venv ./.hello-venv
source ./.hello-venv/bin/activate
python -m venv ./.resemble-hello-venv
source ./.resemble-hello-venv/bin/activate

# Use the published Resemble pip packages by default, but allow the test system
# Use the published Resemble pip package by default, but allow the test system
# to override them with a different value.
REBOOT_RESEMBLE_PACKAGE=${REBOOT_RESEMBLE_PACKAGE:-"reboot-resemble"}
REBOOT_RESEMBLE_WHL_PACKAGE=${REBOOT_RESEMBLE_WHL_PACKAGE:-"reboot-resemble"}

# Manually install the Resemble packages before installing the requirements.txt.
# This allows us to install unreleased versions of the Resemble packages during
# tests; the requirements.txt refers to the released versions, but it will skip
# packages that have already been installed.
pip install $REBOOT_RESEMBLE_PACKAGE
# Manually install the Resemble pip package before installing the
# requirements.txt. This allows us to install unreleased versions of
# the Resemble package during tests; the requirements.txt refers to
# the released versions, but it will skip packages that have already
# been installed.
pip install $REBOOT_RESEMBLE_WHL_PACKAGE

pip install -r backend/src/requirements.txt

Expand All @@ -35,5 +36,5 @@ mypy backend/

pytest backend/

# Clean up
rm -rf ./.hello-venv
# Clean up.
rm -rf ./.resemble-hello-venv
3 changes: 2 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ filegroup(
srcs = glob(
["**/*"],
exclude = [
# Folders that may be created by activity in this repository, such
# Files that may be created by activity in this directory, such
# as manually following the steps of the `README.md` file, but which
# are not part of the "source code" of this repository.
".resemble-hello-venv/**/*",
".pytest_cache/**/*",
],
),
Expand Down
5 changes: 2 additions & 3 deletions api/hello/v1/hello.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ service Hello {
}

message HelloState {
repeated string messages = 2;
repeated string messages = 1;
}

message MessagesRequest {}
Expand All @@ -36,5 +36,4 @@ message SendRequest {
string message = 1; // E.g. "Hello, World".
}

message SendResponse {
}
message SendResponse {}
2 changes: 1 addition & 1 deletion backend/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
reboot-resemble>=0.2.0
reboot-resemble>=0.2.4
pytest>=7.4.2
83 changes: 59 additions & 24 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@reboot-dev/resemble-react": "^0.1.2",
"@reboot-dev/resemble-react": "^0.1.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down Expand Up @@ -41,5 +41,7 @@
"last 1 safari version"
]
},
"devDependencies": {}
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}

0 comments on commit 245045b

Please sign in to comment.