Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 4, 2023
1 parent f9074f3 commit 404ba51
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: 🏗 Install build dependencies
- name: 🏗 Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel build --user
- name: 🔨 Build wheels for all dependencies
- name: 🔨 Download wheels for all dependencies
run: |
pip download -d wheels -r requirements/requirements_leader_worker.txt --index-url https://piwheels.org/simple --platform linux_armv7l --platform linux_armv6l --platform manylinux_2_31_armv7l --only-binary=:all: --extra-index-url https://pypi.org/simple --python-version 39
- name: Zip the wheels
Expand All @@ -66,29 +65,10 @@ jobs:
tag: ${{ github.ref }}
overwrite: true

upload-ui:
name: ⤵️ Fetch UI tarball
runs-on: ubuntu-latest
steps:
- name: Setup jq
run: sudo apt-get install -y jq
- name: Download UI tarball
run: |
latest_release=$(curl -s https://api.github.com/repos/pioreactor/pioreactorui/releases/latest | jq --raw-output '.tag_name')
wget https://github.com/pioreactor/pioreactorui/archive/refs/tags/$latest_release.tar.gz -O pioreactorui_$latest_release.tar.gz
- name: Upload zipped assets
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: pioreactorui_*.tar.gz
tag: ${{ github.ref }}
overwrite: true

zip-asset-upload:
name: 🤐 Zip assets
runs-on: ubuntu-latest
needs: [build, upload-ui, build-deps]
needs: [build, build-deps]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Fix OD calibration that would produce an extremely high value when the signal was below the minimum signal (the blank) during OD calibration.
- IPv4 is really IPv4 now.
- Adding ability to install plugins by name via the UI.
- New tools to update Pioreactors on a local access point. Docs coming soon!


### 23.9.20
Expand Down
18 changes: 9 additions & 9 deletions pioreactor/cli/pio.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,26 +499,26 @@ def update_app(

if re.search("release_(.*).zip", source):
version_installed = re.search("release_(.*).zip", source).groups()[0] # type: ignore
release_folder = f"/tmp/release_{version_installed}"
tmp_release_folder = f"/tmp/release_{version_installed}"
commands_and_priority.extend(
[
(f"rm -rf {release_folder}", -3),
(f"unzip {source} -d {release_folder}", -2),
(f"rm -rf {tmp_release_folder}", -3),
(f"unzip {source} -d {tmp_release_folder}", -2),
(
f"unzip {release_folder}/wheels_{version_installed}.zip -d {release_folder}/wheels",
f"unzip {tmp_release_folder}/wheels_{version_installed}.zip -d {tmp_release_folder}/wheels",
0,
),
(f"sudo bash {release_folder}/pre_update.sh || true", 1),
(f"sudo bash {tmp_release_folder}/pre_update.sh || true", 1),
(
f"sudo pip install --force-reinstall --no-index --find-links={release_folder}/wheels/ {release_folder}/pioreactor-{version_installed}-py3-none-any.whl",
f"sudo pip install --force-reinstall --no-index --find-links={tmp_release_folder}/wheels/ {tmp_release_folder}/pioreactor-{version_installed}-py3-none-any.whl",
2,
),
(f"sudo bash {release_folder}/update.sh", 3),
(f"sudo bash {tmp_release_folder}/update.sh || true", 3),
(
f'sudo sqlite3 {config["storage"]["database"]} < {release_folder}/update.sql || true',
f'sudo sqlite3 {config["storage"]["database"]} < {tmp_release_folder}/update.sql || true',
4,
),
(f"sudo bash {release_folder}/post_update.sh || true", 5),
(f"sudo bash {tmp_release_folder}/post_update.sh || true", 5),
]
)

Expand Down

0 comments on commit 404ba51

Please sign in to comment.