Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the run_rpc_tool script #2165

Closed
wants to merge 777 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
777 commits
Select commit Hold shift + click to select a range
65fe3d1
Remove exim4.service disable from install optimizer
pabera Nov 30, 2021
bee029d
Init git repo earlier in the install process
pabera Nov 30, 2021
6af2627
[Install Script] Separate concerns for Git in install script
pabera Nov 30, 2021
231bc21
Merge pull request #1647 from arne123/future3/ads1015_soc_plugin
arne123 Dec 3, 2021
c31aeff
Bump npm versions
pabera Dec 3, 2021
868ad49
Listen to volume.level publisher
pabera Dec 3, 2021
ca40c30
Allow optional direct imports in plugs
Dec 4, 2021
7f93823
Check if jukebox daemon is running in configuration scripts
Dec 4, 2021
e09cdc9
Update documentation
Dec 4, 2021
8ee1761
Wait for timer cancels at exit
Dec 4, 2021
017c27f
Fix logger name for pulse.event
Dec 4, 2021
081786f
Add missing doc files
Dec 4, 2021
22d1bb5
Make soft max volume a global settings (easier to use)
Dec 4, 2021
e3906a9
Remove superseeded file due to PulseAudio
Dec 4, 2021
0875559
Make git tarbarll search case insensitive
Dec 4, 2021
4bd3552
Detect installs from non-production branches preventing stale Web App…
Dec 4, 2021
550852f
Fix bug in locating mpd.conf
Dec 4, 2021
1501986
Beautify messages
Dec 5, 2021
e2a0241
Update documentation artifacts
Dec 5, 2021
a3273e9
Merge pull request #1648: Shift system setup towards PulseAudio
Dec 5, 2021
469094e
Remove superseeded configuration parameter
Dec 5, 2021
44528a1
Merge pull request #1662 from ChisSoc/future3/pulseaudio
Dec 5, 2021
57c39b1
Give helpfull 404 pages with hints how to resolve the underlying issues
Dec 5, 2021
4b587d2
Merge pull request #1663 from ChisSoc/future3/html-404
Dec 5, 2021
e1141bb
Adjust sphinx build script to path expected by nginx configuration
Dec 5, 2021
d403b02
Bump up version number for next release candidate
Dec 5, 2021
a71a34b
Two small fixes
Dec 5, 2021
80f8409
Add pulseaudio to RTD requirements
Dec 5, 2021
876f731
Update python version to Bullseye default 3.9
Dec 5, 2021
059b12b
Detect installs from non-production branches preventing stale Web App…
Dec 6, 2021
a12746f
Merge pull request #1664 from ChisSoc/future3/develop
Dec 6, 2021
e46ee20
Future3/release 3.1 webapp build (#1665)
pabera Dec 9, 2021
a111f40
Resolve shutdown issues when running as a service
Dec 9, 2021
ee75823
Merge pull request #1668 from ChisSoc/future3/develop
Dec 9, 2021
451463e
Add Monitoring with Battery and Jukebox Version
pabera Dec 9, 2021
d7299a6
Merge pull request #1669 from pabera/future3/monitoring
pabera Dec 13, 2021
cde092f
[Webapp] Register Album, Folder and Single Song to card with better U…
pabera Dec 16, 2021
063e9f6
[Webapp] Bumb Download URL ID to release 3.1
pabera Dec 20, 2021
21b5e9d
Merge pull request #1682 from pabera/future3/update-webapp-for-releas…
pabera Dec 20, 2021
a574a77
Add Update instructions for Version 3.1
Dec 20, 2021
50bcb88
Prepare version number for release
Dec 20, 2021
6b72a21
Release of version 3.1.0
Dec 20, 2021
af89fb8
Introduce a function bind for RPC commands
Jan 1, 2022
16cf3e0
Fix usage of deprecrated keyword 'quick_select'
Jan 1, 2022
c3ab24a
Ignore RPC call configuration meta data
Jan 1, 2022
069e19d
Fix documentation regarding 'quick_select' vs 'alias'
Jan 1, 2022
e8ee8d6
Merge pull request #1697 from ChisSoc/future3/cardremover-alias
Jan 2, 2022
dbedf68
Add new feature: bluetooth button listener
Jan 2, 2022
0918581
Prevent socket timeout
Jan 2, 2022
dc7c658
Add new feature: bluetooth button listener
Jan 2, 2022
1b31c6b
Merge branch 'future3/bt-buttons' of github.com:ChisSoc/RPi-Jukebox-R…
Jan 2, 2022
72009e7
Merge pull request #1701 from ChisSoc/future3/fix-1683
Jan 2, 2022
47ede82
Load bluetooth button module in default configuration
Jan 2, 2022
cca2df2
Introduce user-local PulseAudio configuration file
Jan 3, 2022
238f288
Add equalizer and mono downmix option to audio configuration
Jan 3, 2022
ce64c2d
Typo - fixes #1693
jeverling Jan 3, 2022
a4e7eb8
Merge pull request #1704 from jeverling/future3/develop
pabera Jan 3, 2022
0805c7b
Improve module structure and documentation
Jan 4, 2022
a557791
Add access to Jukebox log files via web server
Jan 4, 2022
89efe66
Beautify HTML output
Jan 4, 2022
3198274
Increase version number for 3.1.1 release
Jan 4, 2022
3ec2576
Release 3.1.1
Jan 4, 2022
f163bb1
Match mpd.socket to mpd.service to be user local
Jan 4, 2022
fe1fc0e
Add explanation on service dependencies
Jan 4, 2022
0021350
Refactor settings satus
pabera Jan 5, 2022
49ad013
Show IP address in settings overview
pabera Jan 6, 2022
3e1ec86
Show CPU temperature in settings
pabera Jan 6, 2022
5283aac
Merge pull request #1705 from ChisSoc/future3/logs-on-web
Jan 6, 2022
cf39d51
Merge pull request #1707 from ChisSoc/future3/mpd-socket
Jan 6, 2022
202541d
Add Disk Usage to Settings status
pabera Jan 6, 2022
98a38ea
Update cpu temp to use correct pub sub topic
pabera Jan 6, 2022
90ce1b0
Merge pull request #1712 from pabera/future3/show-ip-in-settings
pabera Jan 7, 2022
a388def
Bump webapp npm dependencies to latest version
pabera Jan 7, 2022
667563e
Merge pull request #1714 from pabera/future3/webapp-dependency-updates
pabera Jan 7, 2022
987c48c
[Bugfix] Actually show primary network device IP
pabera Jan 7, 2022
73303e4
Merge pull request #1716 from pabera/future3/bugfix-ip-address
pabera Jan 7, 2022
2dcbbc5
Introduce Say my IP, long and short
pabera Jan 7, 2022
f3d567e
Fix flake8 errors
pabera Jan 7, 2022
a4f15cd
Refactor SayMyIp code
pabera Jan 8, 2022
bb72c3d
Outsouce espeak default values to jukebox.yaml
pabera Jan 8, 2022
e86c554
Remove unnecessary line from jukebox.yaml
pabera Jan 8, 2022
7320aee
Init i18n for react
pabera Jan 9, 2022
da8a167
Merge pull request #1700 from ChisSoc/future3/bt-buttons
Jan 9, 2022
6b0a9be
Add card detect callbacks
Jan 9, 2022
e9bc209
Separate call into call and function dereference functions
Jan 9, 2022
793b0ec
Update script help
Jan 9, 2022
327622e
Add hierarchical getattr
Jan 9, 2022
4a4137e
Allow rpc command bind to fully dereference a call
Jan 9, 2022
b840251
Move active threads debug output to a late atexit.atexit handler
Jan 9, 2022
b43f655
Add GPIOZero-based GPIOs incl. documentation
Jan 9, 2022
ac7af11
Use better config reader in python module
pabera Jan 9, 2022
1e6b8e2
Allow custom values for speed and voice
pabera Jan 9, 2022
bf686b7
Merge branch 'future3/develop' into future3/say-my-ip
pabera Jan 9, 2022
07b86fd
Adapt bind_rpc_command calls to new parameters introduced by GPIOZ in…
Jan 9, 2022
fd6e482
Correct order of plugins for using dereferencing RPC calls in bluetoo…
Jan 9, 2022
2eeee0d
Merge pull request #1718 from pabera/future3/say-my-ip
pabera Jan 9, 2022
3a6d3e3
Merge branch 'future3/develop' into future3/i18n
pabera Jan 9, 2022
7bc87db
Merge branch 'future3/develop' into future3/i18n
pabera Jan 9, 2022
fe7add4
Move translation into their own files and load them async
pabera Jan 10, 2022
7b6423d
[i18n][en][de] Navigation
pabera Jan 10, 2022
7e514ba
[i18n][en][de] Player Controls
pabera Jan 10, 2022
ecce7ab
[i18n][en][de] Player Cover Art
pabera Jan 10, 2022
0f34a91
[i18n][en][de] Player Display
pabera Jan 10, 2022
9866673
[i18n][en][de] Player Seekbar
pabera Jan 10, 2022
f551b02
[i18n][en][de] Player Volume
pabera Jan 10, 2022
0190e1c
[i18n][en][de] Header
pabera Jan 10, 2022
7d2b5d7
[i18n][en][de] Cards
pabera Jan 10, 2022
a680635
[i18n][en][de] Library
pabera Jan 10, 2022
361349b
[i18n][en][de] Settings
pabera Jan 10, 2022
e1745c1
Remove duplicated translations
pabera Jan 10, 2022
0baa909
Merge pull request #1720 from pabera/future3/i18n
pabera Jan 10, 2022
4d8aead
[Webapp][i18n] Correct some typos
pabera Jan 10, 2022
3bf604c
Updated typos in comments
pabera Jan 11, 2022
9dfe298
Updating some further typos
pabera Jan 11, 2022
55870f4
[Bugfix] Use correct translation keys in album list
pabera Jan 11, 2022
d8c9351
[Bugfix] Handle missing translation in library
pabera Jan 11, 2022
6badda0
Update to encrypted git protocol for dependency download
Jan 11, 2022
475d069
Merge pull request #1722 from ChisSoc/future3/rc522dep
Jan 11, 2022
c49852c
Enable timers in webapp (#1725)
pabera Jan 13, 2022
b486773
Rotary alias fix
maedball Jan 14, 2022
0977adf
Just update some formatting
pabera Jan 14, 2022
ce14558
Allow to change audio outputs in webapp (#1726)
pabera Jan 15, 2022
96fb9fb
template update for rotary update fix
maedball Jan 16, 2022
a95ab8c
Merge pull request #1730 from maedball/patch-1
Jan 18, 2022
7b47d15
Merge pull request #1733 from maedball/patch-2
Jan 18, 2022
f9faa43
Refactor GPIOZ input/output devices and associated
Jan 20, 2022
42a0e29
Merge branch 'future3/gpiozero' of github.com:ChisSoc/RPi-Jukebox-RFI…
Jan 20, 2022
6eaa304
Remove deprecated GPIO related files and code
Jan 20, 2022
bb60a69
Update generated doc sources
Jan 20, 2022
86a5e70
Remove unused import
Jan 23, 2022
01b72a9
Update to future3/develop
Jan 29, 2022
b2fb982
Create default PA config if non-existent (for easier updates)
Jan 29, 2022
b0515c4
Merge branch 'future3/develop' into future3/equalizer
Jan 29, 2022
1fc5a0d
Optimize equalizer coefficients
Jan 29, 2022
63c5987
Make pulse access instance local to enable script loading w/o pulse
Jan 29, 2022
387b326
Install RPis Python GPIO packages via APT
Jan 29, 2022
cc2420e
Add python dependencies from APT to pypi on docs flow
Jan 29, 2022
8824aed
Merge pull request #1719 from ChisSoc/future3/gpiozero
Feb 5, 2022
6c01094
Merge pull request #1743 from ChisSoc/future3/equalizer
Feb 5, 2022
19a107c
Improve MPD install routine
Feb 5, 2022
b904d92
Always fetch git release tags
Feb 5, 2022
456a26d
Improve git state error message
Feb 5, 2022
1066b69
Merge pull request #1747 from ChisSoc/future3/mpd-install
Feb 5, 2022
2377395
Merge pull request #1748 from ChisSoc/future3/git-tags
Feb 5, 2022
c401a81
Add exit_on_error handler for install
Feb 5, 2022
62fdac4
Add exit_on_error handler and fix ShellCheck warnings
Feb 5, 2022
e5e6092
Language independent memory size deduction
Feb 5, 2022
4794965
Merge pull request #1752 from ChisSoc/future3/develop
Feb 6, 2022
71fb836
Merge pull request #1749 from ChisSoc/future3/install-abort-handler
Feb 6, 2022
20909b9
Fix loading of gpioz in example config file
Feb 7, 2022
105f3d0
(packaging) Remove nanotime dependency (#1753)
fscr Feb 7, 2022
b8be30e
Check for 32 bit OS version before installing
Feb 7, 2022
c6c03da
Merge pull request #1755 from ChisSoc/future3/check-32bit-os
Feb 7, 2022
83a0545
Update documentation
Feb 7, 2022
a9e01f3
Remove deprecated gpio example configuration file
Feb 7, 2022
065314f
Move gpio configuration from gpioz.yaml to gpio.yaml
Feb 7, 2022
baf70cf
Load gpioz plugin as gpio
Feb 7, 2022
7b846ad
Update auto-generated docs
Feb 7, 2022
bafd6ab
Fix reference to deprecated file name
Feb 7, 2022
f197f64
Adjust filename for gpio sample configuration
Feb 8, 2022
cf4d601
Merge pull request #1757 from ChisSoc/future3/gpioz-cleanup
Feb 8, 2022
ca08306
Update download ID for 3.2 release
pabera Feb 8, 2022
f5ed3ca
Merge pull request #1760 from pabera/future3/develop
Feb 10, 2022
431455a
Bump up version number for 3.2 release
Feb 10, 2022
8071023
Release 3.2.0
Feb 10, 2022
1e1d08a
Update install.rst
charlesvestal Feb 27, 2022
f4f4909
Merge pull request #1776 from charlesvestal/patch-1
MiczFlor Feb 27, 2022
4f7d034
fixed typo in pinout doc for rc522_spi
kugelzucker Mar 27, 2022
7fe7727
fixes #1797
marc-up Apr 2, 2022
359bb88
fixed flake8 'line-to-long' issue
marc-up Apr 3, 2022
5df196a
(docs) fixed typos in audio.rst (#1800)
marc-up Apr 4, 2022
25dd1fb
Merge pull request #1798 from marc-up/fix/run_conf_audio_parser
Apr 10, 2022
f56c369
Merge pull request #1796 from kugelzucker/patch-1
Apr 10, 2022
2ef8c75
Some beautification
Aug 31, 2022
75a55b4
Use central reference and handover rights
Aug 31, 2022
1fcb39b
Merge pull request #1877 from ChisSoc/future3/centralize
MiczFlor Sep 1, 2022
3649484
Remove conflicting package
Sep 4, 2022
1e12e97
Remove unused apt package
Sep 4, 2022
b628850
Remove unused code
Sep 4, 2022
a6709dc
Correct paths in configuration.rst
obehr Nov 13, 2022
f89294d
Update README.rst (#1784)
davidgerick Dec 26, 2022
4adedc0
Update README.rst (#1836)
fl0x53 Dec 26, 2022
34b0810
Fixed documentation and example for shutdown button (#1927)
arnotron Dec 27, 2022
cb4a463
fix local link + fix markdown warnings
s-martin Dec 30, 2022
d199052
Merge branch 'future3/develop' of https://github.com/MiczFlor/RPi-Juk…
s-martin Dec 30, 2022
6f1f6f8
Merge pull request #1880: Package cleanup
Dec 30, 2022
b5fdb04
Merge pull request #1908 from obehr/patch-1
Dec 30, 2022
e72e495
Bump up version number to 3.2.1
Dec 30, 2022
bd7bb78
Merge pull request #1944
Dec 30, 2022
5734440
typos in docs (#1950)
kugelzucker Jan 2, 2023
0326c9a
Fix count in flake8 config (#1954)
s-martin Jan 3, 2023
6fce216
a few more typos and wordings (#1952)
kugelzucker Apr 7, 2023
a8c56b0
setup_jukebox_core.sh: fix pyzmq installation for current pip version…
notapirate Apr 7, 2023
0250733
Fix Workflow Actions flake8 (future3) (#1989)
AlvinSchiller Apr 12, 2023
68138d1
update webapp dependencies (#2010)
pabera Apr 12, 2023
8eee27b
Fix typo in System Setup chapter (#2012)
micxer Apr 16, 2023
99bad28
future3 - Feature "sync shared" (#2009)
AlvinSchiller May 3, 2023
37a7938
set indent_size of 2 for js and yaml files (#2026)
AlvinSchiller May 5, 2023
99a5536
Add info to install script and documentation about 64bit systems #204…
pabera Aug 14, 2023
b11606a
Create dependabot.yml (#2022)
s-martin Sep 2, 2023
f803185
future3: Abort installation if user is not "pi" (#2077)
AlvinSchiller Oct 10, 2023
6f1efb8
fix unavailable repo for pi-rc522 (#2075)
AlvinSchiller Oct 10, 2023
5e35ce8
docker: optimizations (#2074)
notapirate Nov 3, 2023
373fd38
Fix pyzmq installation from source with drafts support (#2096)
DivineDominion Nov 8, 2023
0660586
Remove unused _jukebox_core_download_prebuilt_pyzmq (#2097)
DivineDominion Nov 8, 2023
1ca5a81
future3 - Move docs back to Github & markdown (#2085)
pabera Nov 11, 2023
7406085
Fix link to feature status (#2102)
s-martin Nov 11, 2023
4667fc1
Fix link
s-martin Nov 11, 2023
b7743da
Fix future3 installation for bookworm (#2100)
Chilipp Nov 11, 2023
86d608c
fix some more doc links (#2105)
s-martin Nov 12, 2023
1ca31dd
fix #2101 (#2107)
s-martin Nov 12, 2023
13bf5e5
Future3/update dependencies (#2103)
pabera Nov 13, 2023
b12c941
markdown file
s-martin Nov 14, 2023
e3bc59f
More links fixed (#2106)
s-martin Nov 16, 2023
26ca404
* keep docs for template reader at src (#2113)
s-martin Nov 16, 2023
b7480b8
fix rename
s-martin Nov 16, 2023
d62de5f
Merge branch 'future3/develop' of https://github.com/MiczFlor/RPi-Juk…
s-martin Nov 16, 2023
acf6ec0
Future3 fix venv usage (#2111)
AlvinSchiller Nov 16, 2023
babb237
fix docker description for windows (#2114)
s-martin Nov 16, 2023
dfb9e93
Cleanup installation messages (#2109)
AlvinSchiller Nov 18, 2023
2a0bb20
Update some links in the documentation (#2122)
pabera Nov 24, 2023
94aa9dc
Future3/update docs (#2123)
pabera Nov 24, 2023
924c7f3
Remove content folder from docs (#2124)
pabera Nov 25, 2023
12f4f92
Future3/documentation (#2127)
AlvinSchiller Nov 25, 2023
c0d5a20
future3 V3.3 - reference webapp build (#2126)
pabera Nov 25, 2023
234cc3c
Add installation checks + CI Workflow (#2119)
AlvinSchiller Dec 2, 2023
dbfd58a
Bump libzmq version to 4.3.5 for armv7
pabera Dec 3, 2023
f1558a2
Add badges to future3 (#2133)
s-martin Dec 4, 2023
cf5aa6c
allow custom username (#2132)
AlvinSchiller Dec 4, 2023
01ec0bc
Allow download of prebuild libzmq-v4.3.5 for Docker
pabera Dec 5, 2023
935a6d4
Merge branch 'future3/develop' into future3/bump-libzmq
pabera Dec 5, 2023
8ea49cf
Remove unnecessary build-essentials from apt-get in Dockerfile
pabera Dec 5, 2023
a32b771
Fix a few typos
pabera Dec 5, 2023
78eb0c4
Use wget to download pre-built libzmq from github
pabera Dec 5, 2023
5a875b8
Remove unused constants
pabera Dec 5, 2023
54681da
Make variable local to its function
pabera Dec 5, 2023
ade2894
Install webapp from release build if Node.JS download is aborted
pabera Dec 7, 2023
c3d0897
Use GH release downloads for webapp
pabera Dec 7, 2023
3ffe8a3
Bugfix: wrong variable assignment
pabera Dec 7, 2023
bdb1dd1
Static release download url
pabera Dec 8, 2023
caf4a55
Fix version funtion return value
pabera Dec 8, 2023
554c0ed
fix local libzmq build
AlvinSchiller Dec 8, 2023
435bd6f
add CI test for local libzmq build
AlvinSchiller Dec 8, 2023
23cf06c
update var names and docs
AlvinSchiller Dec 8, 2023
55b1c9e
add platform in scope and description
AlvinSchiller Dec 8, 2023
93212d0
Merge pull request #1 from AlvinSchiller/future3/bump-libzmq
pabera Dec 8, 2023
4b0860f
Merge pull request #2135 from pabera/future3/bump-libzmq
pabera Dec 8, 2023
c00cde6
Add file upload via WebUI
s-martin Dec 8, 2023
18857d7
[Bugfix] Webapp allows to assign single song to card (#2143)
pabera Dec 10, 2023
18dc591
add possibility to execute commands directly
s-martin Dec 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.git
.githooks
.github
.dockerignore
.DS_Store

# Application
docker
docs
shared

# webapp
!src/webapp
src/webapp/node_modules
src/webapp/npm-debug.log
src/webapp/build
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{js,yaml}]
indent_size = 2
22 changes: 20 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
[flake8]
max-line-length = 120
max-line-length = 127
ignore =
# continuation line over-indented for visual indent
E127,
# continuation line under-indented for visual indent
E128
E128,
# line break before binary operator
W503
per-file-ignores =
# Only in __init__files ignore imported but unused
# Not necessary, if __all__ is declared in __init__ file
# https://www.python.org/dev/peps/pep-0008/#id48
__init__.py:F401
count = True
max-complexity = 12
statistics = True
filename = *.py,*.py.*
extend-exclude =
# Ignore all scratch development directories
scratch*,
# Ignore dirs and files that have not been ported yet
*/jukebox/NvManager.py
# ignore GitHub Codespaces
.venv/*
84 changes: 84 additions & 0 deletions .githooks/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#!/usr/bin/env bash

# Script to be run by git hook: post merge, i.e. git pull
#
# TO ACTIVATE: cp .githooks/post-merge .git/hooks/.
#
# Checks:
# - Changes to web app
# - Changes to web dependency
# - Changes to python requirements
#
# Actions are not triggered automatically as they can take some
# time. The user is warned if an action is required.
#
# Inspired by
# https://davidwalsh.name/git-hook-npm-install-package-json-modified

warn_npm_dependency() {
echo -e "\n"
echo "************************************************************"
echo "ATTENTION: npm dependencies have changed since last pull!"
echo ""
echo "To update dependencies and rebuilt WebApp run:"
echo "$ cd src/webapp && ./run_rebuild.sh -u"
echo "************************************************************"
echo -e "\n"
}

warn_webapp() {
echo -e "\n"
echo "************************************************************"
echo "ATTENTION: Web App sources have changed since last pull!"
echo ""
echo "To rebuilt the WebApp run:"
echo "$ cd src/webapp && ./run_rebuild.sh"
echo "************************************************************"
echo -e "\n"
}

warn_python_requirements() {
echo -e "\n"
echo "************************************************************"
echo "ATTENTION: Python requirements have changed since last pull!"
echo ""
echo "To update python requirements on the RPi run"
echo "$ python -m pip install --upgrade -r requirements.txt"
echo "************************************************************"
echo -e "\n"
}

warn_githooks() {
echo -e "\n"
echo "************************************************************"
echo "ATTENTION: Recommended git hooks changed!"
echo ""
echo "To update, REVIEW and copy .githooks/* to .git/hooks"
echo "$ cp .githooks/* .git/hooks/."
echo "************************************************************"
echo -e "\n"

}

# files_changed="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
webapp_changed="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD src/webapp)"
webapp_dep_changed="$(git diff --name-only --no-commit-id ORIG_HEAD HEAD src/webapp/package.json)"
python_req_changed="$(git diff --name-only --no-commit-id ORIG_HEAD HEAD requirements.txt)"
githooks_changed="$(git diff --name-only --no-commit-id ORIG_HEAD HEAD .githooks)"

if [[ -n $python_req_changed ]]; then
warn_python_requirements
fi

if [[ -n $webapp_dep_changed ]]; then
warn_npm_dependency
elif [[ -n $webapp_changed ]]; then
warn_webapp
fi

if [[ -n $githooks_changed ]]; then
warn_githooks
fi

echo -e "\nTo see a summary of what happened since your last pull, do:"
echo -e "git show --oneline -s ORIG_HEAD..HEAD\n"
38 changes: 38 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

# Script to be run by git hook: pre-commit
#
# TO ACTIVATE: cp .githooks/pre-commit .git/hooks/.
#
# Checks
# - flake8 on staged python files
# Note: This only checks the modified files
# - docs build of if any python file or any doc file is staged
# Note: This builds the entire documentation if a changed file goes into the documentation
#
# If there are problem with this script, commit may still be done with
# git commit --no-verify


# Pass all staged python files through flake8
PY_FILES="$(git diff --diff-filter=d --staged --name-only -- **/*.py)"
flake8_code=0
if [[ -n $PY_FILES ]]; then
echo -e "\n**************************************************************"
echo "Modified Python source files. Running flake8 ... "
echo -e "**************************************************************\n"
./run_flake8.sh $PY_FILES
flake8_code=$?
echo "Flake8 return code: $flake8_code"
fi

code=$(( flake8_code ))

if [[ code -gt 0 ]]; then
echo -e "\n**************************************************************"
echo -e "ERROR(s) during pre-commit checks. Aborting commit!"
echo -e "**************************************************************\n"
fi

exit $code

3 changes: 0 additions & 3 deletions .github/CODEOWNERS

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Otherwise the output of `cat /etc/os-release`
i.e. `master`

the following command will help with that
`cd /home/pi/RPi-Jukebox-RFID/ && git status | head -2`
`cd ~/RPi-Jukebox-RFID/ && git status | head -2`
-->

### Installscript
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/future3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Future3 Development Issue
about: For developing issues on Future3 (Version 3 pre-development)
title: "ISSUE SUMMARY on Future3"
labels: future3, bug, needs triage
---

## Issue in Future3
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
18 changes: 0 additions & 18 deletions .github/workflows/dockerimage.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/pythonpackage.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/pythonpackage_future3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Python + Docs Checks and Tests

on:
push:
branches:
- 'future3/**'
paths:
- '**.py'
- '**.py.*'
pull_request:
branches:
- 'future3/**'
paths:
- '**.py'
- '**.py.*'

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev pulseaudio
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
# For operation of the Jukebox, ZMQ must be compiled from sources due to Websocket support
# Also install all optional dependencies
pip3 install -r src/jukebox/components/rfid/hardware/fake_reader_gui/requirements.txt
pip3 install -r src/jukebox/components/rfid/hardware/pn532_i2c_py532/requirements.txt
pip3 install -r src/jukebox/components/rfid/hardware/rdm6300_serial/requirements.txt
pip3 install -r src/jukebox/components/rfid/hardware/rc522_spi/requirements.txt
- name: Lint with flake8
run: |
pip3 install flake8
# Stop the build if linting fails
./run_flake8.sh
Loading
Loading