-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix configuration file handling and service unit file creation, remov…
…e unnecessary files
- Loading branch information
1 parent
3143582
commit 7bc5cde
Showing
29 changed files
with
127 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Test and Release | ||
|
||
on: | ||
push: | ||
branches: main | ||
tags: v*.*.* | ||
|
||
pull_request: | ||
branches: [ "main" ] | ||
types: | ||
- synchronize | ||
- opened | ||
- reopened | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Build and test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Gives the action the necessary permissions for publishing new | ||
# comments in pull requests. | ||
pull-requests: write | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Verify changes | ||
uses: EffectiveRange/python-verify-github-action@v1 | ||
with: | ||
coverage-threshold: '0' | ||
|
||
release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: test | ||
|
||
name: Publish and release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Package and publish | ||
uses: EffectiveRange/python-package-github-action@v2 | ||
with: | ||
use-devcontainer: 'true' | ||
container-config: 'amd64-container' | ||
debian-dist-type: 'fpm-deb' | ||
install-packaging-tools: 'false' | ||
- name: Release | ||
uses: EffectiveRange/version-release-github-action@v1 |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -318,4 +318,3 @@ | |
from .camera import * | ||
from .transmit import * | ||
from .app import * | ||
from .main import * |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
sentinel_mrhat_cam/sentinel_mrhat_cam.egg-info/dependency_links.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Run Script Daemon | ||
|
||
[Service] | ||
Type=simple | ||
User=admin | ||
ExecStart=/bin/bash /usr/local/bin/sentinel_mrhat_cam.sh | ||
Restart=on-failure | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,7 @@ | |
author='Ferenc Nandor Janky, Attila Gombos, Nyiri Levente, Nyitrai Bence', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
scripts=['scripts/sentinel_mrhat_cam.sh', 'scripts/daemon.sh'], | ||
install_requires=['PyYAML>=6.0', | ||
'pillow', | ||
'pytz', | ||
'paho-mqtt', | ||
'numpy', | ||
'pybase64'] | ||
scripts=['scripts/sentinel_mrhat_cam.sh', 'scripts/sentinel_mrhat_cam_main.py'], | ||
data_files=[('config', ['config/config.json', 'config/log_config.yaml'])], | ||
install_requires=['PyYAML>=6.0', 'pillow', 'pytz', 'paho-mqtt', 'numpy', 'pybase64'], | ||
) |