Skip to content

Commit

Permalink
[Release] Update the examples (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
reboot-dev-bot authored Aug 22, 2024
1 parent dc30369 commit 3784217
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 23 deletions.
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

19 changes: 19 additions & 0 deletions .tests/serve_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ ls -l api/ backend/src/ web/ Dockerfile 2> /dev/null > /dev/null || {
exit 1
}

get_reboot_resemble_version_from() {
version=$(egrep -o 'reboot-resemble==[.0-9]+' $1 | head -n 1)
if [ -z "$version" ]; then
echo "No resemble version found in $1."
exit 1
fi
echo $version
}

# During Resemble's release process, consumed versions (but not lockfiles) have
# been updated everywhere. During that period, our image claims to consume a
# a version which does not yet exist. Rather than adding a bunch of conditionals to
# our Dockerfile, which would make it harder to grok, we skip this test while the
# lockfile is out of sync. See #3495.
if [[ $(get_reboot_resemble_version_from "pyproject.toml") != $(get_reboot_resemble_version_from "requirements.lock") ]]; then
echo "Lockfile does not match pyproject.toml: assuming we're mid-publish."
exit 0
fi

stop_container() {
if [ -n "$container_id" ]; then
docker stop "$container_id"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/reboot-dev/resemble-base:0.9.0
FROM ghcr.io/reboot-dev/resemble-base:0.12.0

WORKDIR /app

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
requires-python = ">= 3.10"
requires-python = "== 3.10"
dependencies = [
"reboot-resemble>=0.11.0",
"reboot-resemble==0.12.0",
]

[tool.rye]
dev-dependencies = [
"reboot-resemble>=0.11.0",
"reboot-resemble==0.12.0",
"mypy==1.2.0",
"pytest>=7.4.2",
"types-protobuf>=4.24.0.20240129",
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ python-dateutil==2.9.0.post0
pyyaml==6.0.1
# via kubernetes
# via kubernetes-asyncio
reboot-resemble==0.11.0
reboot-resemble==0.12.0
requests==2.31.0
# via kubernetes
# via requests-oauthlib
Expand Down
2 changes: 1 addition & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ python-dateutil==2.9.0.post0
pyyaml==6.0.1
# via kubernetes
# via kubernetes-asyncio
reboot-resemble==0.11.0
reboot-resemble==0.12.0
requests==2.31.0
# via kubernetes
# via requests-oauthlib
Expand Down
30 changes: 15 additions & 15 deletions web/package-lock.json

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

2 changes: 1 addition & 1 deletion 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.11.0",
"@reboot-dev/resemble-react": "^0.12.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down

0 comments on commit 3784217

Please sign in to comment.