File tree Expand file tree Collapse file tree 6 files changed +39
-25
lines changed Expand file tree Collapse file tree 6 files changed +39
-25
lines changed Original file line number Diff line number Diff line change 5
5
6
6
branch=" $( git rev-parse --abbrev-ref HEAD) "
7
7
checker=$( git diff --name-only ` git merge-base $branch HEAD` )
8
- if [[ ! $checker =~ " __init__.py" ]]; then
9
- echo -e " \n********************************************************************ERROR********************************************************************"
10
- echo " Docs generation was ABORTED since module version was not bumped!! Changelog generator requires the commit number and package version in sync."
11
- echo -e " *********************************************************************************************************************************************\n"
12
- exit 255
13
- fi
14
-
15
8
if [[ ! $checker =~ " release_notes.rst" ]]; then
16
9
echo -e " \n********************************************************************ERROR**********************************************************"
17
10
echo " Docs generation was ABORTED since release notes was not updated!! Changelog generator requires the release notes to be in sync."
Original file line number Diff line number Diff line change 1
1
import os
2
2
3
- from pynotification import pynotifier
3
+ version = "0.7"
4
4
5
- version = "0.5.4"
5
+ install_script = os . path . join ( os . path . dirname ( __file__ ), 'lib' , 'install.sh' )
6
6
7
7
try :
8
- import pvporcupine # noqa
9
- import pyaudio # noqa
8
+ import pvporcupine # noqa: F401
9
+ import pyaudio # noqa: F401
10
+ import pynotification # noqa: F401
10
11
except ImportError as error :
11
- pynotifier (title = "First time user?" , dialog = True ,
12
- message = f"Please run\n \n { os .path .join (os .path .dirname (__file__ ), 'lib' , 'install.sh' )} " )
13
- raise UserWarning (f"{ error .__str__ ()} \n \n Please run\n \n "
14
- f"{ os .path .join (os .path .dirname (__file__ ), 'lib' , 'install.sh' )} " )
12
+ try :
13
+ pynotification .pynotifier (title = "First time user?" , dialog = True , message = f"Please run\n \n { install_script } " )
14
+ except NameError :
15
+ pass
16
+ raise UserWarning (f"{ error .__str__ ()} \n \n Please run\n \n { install_script } \n \n "
17
+ "Note: Shell script will quit for any non-zero exit status, "
18
+ "so it might have to be triggered twice." )
15
19
else :
16
- from .main import start
17
- start .count = 0
20
+ from .main import start # noqa: F401
Original file line number Diff line number Diff line change @@ -25,14 +25,24 @@ os_independent_packages() {
25
25
}
26
26
27
27
if [[ " $OSName " == " Darwin" ]]; then
28
- xcode-select --install
29
- # Looks for brew installation and installs only if brew is not found in /usr/local/bin
28
+ # Looks for xcode installation and installs only if xcode is not found already
29
+ which xcodebuild > tmp_xcode && xcode_check=$( cat tmp_xcode) && rm tmp_xcode
30
+ if [[ " $xcode_check " == " /usr/bin/xcodebuild" ]] || [[ $HOST == " /*" ]] ; then
31
+ xcode_version=$( pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version)
32
+ echo " xcode $xcode_version "
33
+ else
34
+ echo " Installing xcode"
35
+ xcode-select --install
36
+ fi
37
+
38
+ # Looks for brew installation and installs only if brew is not found
30
39
brew_check=$( which brew)
31
- brew_condition=" /usr/local/bin/brew"
32
- if [[ " $brew_check " != " $brew_condition " ]]; then
40
+ if [[ " $brew_check " == " /usr/local/bin/brew" ]] || [[ " $brew_check " == " /usr/bin/brew" ]]; then
41
+ brew -v > tmp_brew && brew_version=$( head -n 1 tmp_brew) && rm tmp_brew
42
+ echo " $brew_version "
43
+ else
33
44
echo " Installing Homebrew"
34
45
/bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) "
35
- else echo " Found Homebrew, skipping installation"
36
46
fi
37
47
brew install portaudio
38
48
python -m pip install PyAudio==0.2.13
Original file line number Diff line number Diff line change 1
1
packaging == 23.0
2
2
SpeechRecognition == 3.8.1 # Do not upgrade, no functional upgrade in latest version
3
3
pyttsx3 == 2.90
4
- inflect == 6.0.2
4
+ inflect == 6.0.4
5
5
requests >= 2.28.2
6
6
pydantic [dotenv,email ]== 1.10.7
7
7
PyYAML
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ def start():
55
55
"""
56
56
# Import within a function to be called repeatedly
57
57
from jarvis_ui .modules .models import env
58
- logger .info (f"Restart set to { time_converter (second = env .restart_timer )} " )
58
+ logger .info (f"Restart timer set to { time_converter (second = env .restart_timer )} " )
59
59
status_manager = Manager ().dict ()
60
60
status_manager ["LOCKED" ] = False # Instantiate DictProxy
61
61
process = Process (target = initiator , args = (status_manager ,))
62
62
process .name = pathlib .Path (__file__ ).stem
63
63
process .start ()
64
- logger .info (f"Initiating as { process .name } [{ process .pid } ]" )
64
+ logger .info (f"Initiating as { process .name } [{ process .pid } ]" )
65
65
start_time = time .time ()
66
66
while True :
67
67
if start_time + env .restart_timer <= time .time ():
@@ -89,3 +89,6 @@ def start():
89
89
break
90
90
time .sleep (0.5 )
91
91
start ()
92
+
93
+
94
+ start .count = 0
Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
=============
3
3
4
+ 0.5.5 (04/10/2023)
5
+ ------------------
6
+ - Update initialization and installation script
7
+ - Unhook version dependencies with changelog-generator
8
+
4
9
0.5.4 (03/22/2023)
5
10
------------------
6
11
- Fix interactive mode on Windows OS
You can’t perform that action at this time.
0 commit comments