Skip to content

Commit 358fb6d

Browse files
authored
Merge pull request #3242 from motioneye-project/beta
Release 0.43.1
2 parents b10971e + 2528061 commit 358fb6d

File tree

141 files changed

+6171
-7257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+6171
-7257
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- uses: docker/metadata-action@v5
2222
id: meta
2323
with:
24-
images: | # add potential Docker Hub image
24+
images: |
25+
motioneyeproject/motioneye
2526
ghcr.io/${{ github.repository_owner }}/motioneye
2627
tags: |
2728
type=edge,branch=dev
@@ -35,12 +36,12 @@ jobs:
3536

3637
- uses: docker/setup-buildx-action@v3
3738

38-
#- name: Login to Docker Hub
39-
# uses: docker/login-action@v3
40-
# if: github.event_name == 'push' && github.repository == 'motioneye-project/motioneye' && steps.meta.outputs.tags != null
41-
# with:
42-
# username: ${{ secrets.DOCKER_USERNAME }}
43-
# password: ${{ secrets.DOCKER_TOKEN }}
39+
- name: Login to Docker Hub
40+
uses: docker/login-action@v3
41+
if: github.event_name == 'push' && github.repository == 'motioneye-project/motioneye' && steps.meta.outputs.tags != null
42+
with:
43+
username: ${{ secrets.DOCKER_USERNAME }}
44+
password: ${{ secrets.DOCKER_TOKEN }}
4445

4546
- name: Login to GitHub Container Registry
4647
uses: docker/login-action@v3

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
pre-commit-autoupdate:
1616
runs-on: ubuntu-24.04
1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1919
with:
2020
ref: dev
2121
# https://github.com/peter-evans/create-pull-request/issues/48

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020
- uses: actions/setup-python@v6
2121
with:
2222
python-version: '3.x'

.github/workflows/pypi_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: actions/checkout@v5
12+
- uses: actions/checkout@v6
1313
- uses: actions/setup-python@v6
1414
with:
1515
python-version: '3.x'

.github/workflows/python_safety.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- run: echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf # error: externally-managed-environment
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1919
- uses: actions/setup-python@v6
2020
with:
2121
python-version: 3.x

.github/workflows/shellcheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
command -v xz && exit 0
2020
sudo apt-get -q update
2121
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install xz-utils
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323
- name: Download shellcheck
2424
run: |
25-
curl -sSfLo shellcheck.tar.xz "$(curl -sSf 'https://api.github.com/repos/koalaman/shellcheck/releases/latest' | mawk -F\" '/"browser_download_url.*\.linux\.x86_64\.tar\.xz"/{print $4;exit}')"
25+
curl -sSfLo shellcheck.tar.xz "$(curl -sSfH 'Authorization: Bearer ${{ github.token }}' 'https://api.github.com/repos/koalaman/shellcheck/releases/latest' | mawk -F\" '/"browser_download_url.*\.linux\.x86_64\.tar\.xz"/{print $4;exit}')"
2626
tar --wildcards --strip-components=1 -xf shellcheck.tar.xz '*/shellcheck'
2727
rm shellcheck.tar.xz
2828
- name: Run shellcheck
@@ -31,7 +31,7 @@ jobs:
3131
for i in "${!FILES[@]}"
3232
do
3333
[[ ${FILES[$i]##*/} =~ '.'[^.]*'sh'$ ]] && continue # file has shell extension
34-
[[ $(mawk 'NR==1 && $0 ~ /^#!.*sh([[:blank:]]|$)/{print;exit}' "${FILES[$i]}") ]] && continue # file has shell shebang
34+
[[ $(mawk '/^#!.*sh([[:blank:]]|$)/;{exit}' "${FILES[$i]}") ]] && continue # file has shell shebang
3535
unset -v "FILES[$i]" # else remove from array
3636
done
3737
./shellcheck -xC -o all -e SC2244,SC2250,SC2312 "${FILES[@]}"

.github/workflows/test_python.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,19 @@ jobs:
2424
runs-on: ${{ matrix.dist }}
2525
name: "Test on ${{ matrix.dist }}"
2626
steps:
27-
- uses: actions/checkout@v5
28-
- uses: actions/setup-python@v6
29-
with:
30-
python-version: ${{ matrix.python }}
31-
- if: matrix.dist == 'ubuntu-22.04' || matrix.dist == 'ubuntu-24.04'
32-
run: sudo apt-mark hold grub-efi-amd64-signed # GRUB does not always find the drive it was configured for
3327
- name: Ubuntu Noble workarounds
3428
if: matrix.dist == 'ubuntu-24.04' || matrix.dist == 'ubuntu-24.04-arm'
3529
run: |
36-
# new firefox package pre-installation script subprocess returned error exit status 1
37-
sudo apt-get autopurge firefox
3830
# error: externally-managed-environment
3931
echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf
4032
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
4133
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq autopurge python3-pip python3-setuptools python3-wheel
4234
- run: sudo apt-get -q update
43-
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends dist-upgrade
44-
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install
45-
curl gcc ffmpeg libcurl4-openssl-dev libssl-dev motion v4l-utils
35+
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install curl ffmpeg motion v4l-utils
36+
- uses: actions/checkout@v6
37+
- uses: actions/setup-python@v6
38+
with:
39+
python-version: ${{ matrix.python }}
4640
- run: python3 -m pip install --upgrade pip setuptools wheel
4741
- run: python3 -m pip install --upgrade build mypy pytest
4842
- run: python3 -m build

.github/workflows/ubuntu_build.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,15 @@ jobs:
1818
runs-on: ${{ matrix.dist }}
1919
name: "Test on ${{ matrix.dist }}"
2020
steps:
21-
- if: matrix.dist == 'ubuntu-22.04' || matrix.dist == 'ubuntu-24.04'
22-
run: sudo apt-mark hold grub-efi-amd64-signed # GRUB does not always find the drive it was configured for
2321
- name: Ubuntu Noble workarounds
2422
if: matrix.dist == 'ubuntu-24.04' || matrix.dist == 'ubuntu-24.04-arm'
2523
run: |
26-
# new firefox package pre-installation script subprocess returned error exit status 1
27-
sudo apt-get autopurge firefox
2824
# error: externally-managed-environment
2925
echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf
3026
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
3127
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq autopurge python3-pip python3-setuptools python3-wheel python3-dev
3228
- run: sudo apt-get -q update
33-
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends dist-upgrade
34-
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install
35-
ca-certificates curl python3
29+
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install ca-certificates curl python3
3630
- run: curl -sSfO 'https://bootstrap.pypa.io/get-pip.py'
3731
- run: sudo python3 get-pip.py
3832
- run: sudo python3 -m pip install --upgrade pip setuptools wheel

.github/workflows/update_locales.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,24 @@ jobs:
2727
sudo apt-get -q update
2828
sudo DEBIAN_FRONTEND='noninteractive' apt-get -qq --no-install-recommends install gettext
2929
30-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@v6
3131
with:
3232
ref: ${{ github.head_ref }}
3333
# https://github.com/peter-evans/create-pull-request/issues/48
3434
token: ${{ secrets.GH_PAT }}
3535

3636
- name: Generate backend template
3737
run: |
38-
pybabel extract -F l10n/babel.cfg -o motioneye/locale/motioneye.pot motioneye/
39-
# Remove trailing empty line to satisfy pre-commit
40-
sed -i '${/^$/d}' motioneye/locale/motioneye.pot
38+
pybabel extract --no-wrap -F l10n/babel.cfg -o motioneye/locale/motioneye.pot motioneye/
39+
# Remove python-format flag, and trailing empty line to satisfy pre-commit
40+
sed -i -e '/^#, python-format$/d' -e '${/^$/d}' motioneye/locale/motioneye.pot
4141
4242
- name: Generate frontend template
4343
run: xgettext --no-wrap --from-code=UTF-8 -o motioneye/locale/motioneye.js.pot motioneye/static/js/*.js l10n/*.js
4444

4545
- name: Generate frontend locales
4646
run: |
47+
rm motioneye/static/js/motioneye.*.json
4748
for i in motioneye/locale/*/LC_MESSAGES/motioneye.js.po
4849
do
4950
lang=${i#motioneye/locale/}
@@ -52,12 +53,18 @@ jobs:
5253
l10n/po2json "$i" "motioneye/static/js/motioneye.$lang.json"
5354
done
5455
56+
- name: Cleanup backend locales
57+
run: |
58+
for i in motioneye/locale/*/LC_MESSAGES/motioneye.mo
59+
do
60+
[ -f "${i%mo}po" ] || rm "$i"
61+
done
62+
5563
- name: Commit changes
5664
run: |
57-
git add -NA
58-
git diff -I '^"POT-Creation-Date: ' --exit-code && exit 0
65+
git add -A
66+
git diff -I '^"POT-Creation-Date: ' --exit-code HEAD && exit 0
5967
git config user.name 'github-actions[bot]'
6068
git config user.email 'github-actions[bot]@users.noreply.github.com'
61-
git add -A
6269
git commit -m 'Update translation files'
6370
git push

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ dropbox.keys
1818
.venv
1919
_traduko.jar
2020
.DS_Store
21+
*.egg-info

0 commit comments

Comments
 (0)