Commit Graph

4896 Commits (feature/upgrade-pip)

Author SHA1 Message Date
Kris Gesling 849524fb05 Python 3.9 fails on pip>=22 2022-02-28 16:33:13 +09:30
Kris Gesling 474340a966 Upgrade pip to 22.0.3 2022-02-28 16:01:08 +09:30
Daniel McKnight eb97bb339e
Add `supported_languages` parameter to STT and TTS base classes (#3059)
* Add `supported_languages` parameter to STT and TTS base classes

* Refactor `supported_languages` to `available_languages` and updated docstring to be more precise
2022-02-28 15:36:48 +09:30
Åke dd7f7abba6
Shellcheck scripts folder (#3063)
* Remove unused scripts

install-pocketsphinx and install-pygtk is no longer used by the
dev-setup.

* Fix shellcheck issues in scripts

* Remove space in cores argument

* Update my-info.sh script

- Make it use the new method to activate venv if needed
- Improve requirements.txt parsing
- Update process detection from old "screen" setup
- Update log-files paths
- Fix finding mycroft-core folder

* Fix shellcheck issues in mycroft-use.sh

Mainly quoting but also unpacking of arguments and improving some if
statements

* Update shellcheck test to include scripts folder
2022-02-28 14:44:15 +09:30
Kris Gesling df0b8fe212 Remove mplayer audioservice
It is no longer supported by the projects maintainer.
2022-02-28 14:43:10 +09:30
Åke Forslund 8ee3e8d640 Add noise_words.list for Swedish 2022-02-24 10:22:57 +09:30
Åke Forslund e1731f53ec Remove unused imports from common_query_skill.py 2022-02-24 10:22:09 +09:30
Åke Forslund 3fa99f288f Handle missing noise words file in CQS
This treats a None result from resolve_resource_file() as a FileNotFound
exception.
2022-02-24 10:22:09 +09:30
luca-vercelli 4791114609
missing initial value (#3061)
Condition

    if [ $disable_precise_later == true ]; 

gives a syntax error if variable is not initialized
2022-02-24 10:21:17 +09:30
Kris Gesling 953cc53e13
Merge pull request #3060 from kleo/dev
Use double bracket for shell conditional
2022-02-24 10:17:11 +09:30
Kris Gesling 99ac12cbf8
Merge pull request #3068 from forslund/bugfix/vk-dialogfile-from-sentence
Voight kampff: Bugfix dialogfile from sentence
2022-02-23 16:44:33 +09:30
TheRealDGD 34f66d234c
Added duration_to_bytes to FileMockMicrophone (#3071)
* Added duration_to_bytes to FileMockMicrophone

Added duration_to_bytes to fix AttributeError: 'FileMockMicrophone' object has no attribute 'duration_to_bytes'
in call from mycroft-core/mycroft/client/speech/mic.py _wait_until_wake_word

* Update wake_word_test.py

Fixed formatting issues

* Update wake_word_test.py

Fixed formatting

* Remove whitespaces for PEP8

Co-authored-by: Kris Gesling <kris.gesling@mycroft.ai>
2022-02-23 16:08:46 +09:30
Kris Gesling f556f84412
Add phonetic spellings for IP and Wikipedia (#3023)
Co-authored-by: jarbasal <jarbasai@mailfence.com>
2022-02-23 15:42:16 +09:30
Kris Gesling 1ae6900b26
Remove ResponsiveVoice TTS module from core (#3049)
This module in its current format does not work due to API changes.
There is also a community built plugin that is now described in our
documentation.
2022-02-23 15:40:53 +09:30
Aditya Mehra 5d88eb3a33
Fix: show text delegate as per autofit label refactor (#3065)
* fix show text delegate as per autofit label refactor

* Make rectangle containing text transparent

For different background colors, the background on the card should be set.

Co-authored-by: Kris Gesling <kris.gesling@mycroft.ai>
2022-02-23 15:31:19 +09:30
Kris Gesling 0dadc9ba07
Switch CLA Checker to new credentials (#3077) 2022-02-23 14:47:03 +09:30
Åke a487f66958
Select the proper get-pip url for Python 3.6 (#3073)
The bootstrap script no longer supports Python 3.6, instead it
recommends python 3.6 users to use an alternative url.
2022-02-14 15:10:24 +09:30
Åke Forslund f8aa77c8e7 VK simplify dialog matching
This uses the existing dialog renderer and the standard format library
to in two steps create a regex where the {elements} in a dialog is
replaced with ".*" to match the given sentence.
2022-01-28 21:48:25 +01:00
Åke Forslund a3fd830cb0 VK: Expand the parentheses from dialog files 2022-01-26 20:09:12 +01:00
Åke Forslund 825b3879a5 VK: Fix regex used in _match_dialog_patterns
A redundant step caused issue when performing tests in the tv-remove-control-skill
2022-01-25 07:15:31 +01:00
Åke Forslund 03ef7f4b21 VK: Include locale folders in dialog_from_sentence
Only dialog folder was used previously this adds globbing through the
locale/lang/ folder and it's subfolders
2022-01-25 07:15:31 +01:00
Kleo Bercero 6d66b800dc Use double bracket 2022-01-01 19:49:36 +08:00
Kris Gesling 3d963cee40
Merge pull request #3047 from forslund/feature/do-not-create-identity-folder
Do not create identity folder when trying to read the identity file
2021-12-13 10:07:11 +09:30
Kris Gesling 2411f5d317
Merge pull request #3043 from MycroftAI/feature/pyxdg-update
Update pyxdg to ensure Python3.8 compatibility
2021-12-13 10:06:30 +09:30
Kris Gesling 947b7f3fc7
Merge pull request #3030 from forslund/cicd/shellcheck-directives
Use shellcheck directive instead of excludes
2021-12-13 10:06:15 +09:30
Kris Gesling 4061a04bb4
Merge pull request #3014 from putnik/dev
Update Russian words and dialogues
2021-12-13 10:05:51 +09:30
devs-mycroft 322a4c5599 Version bump from 21.2.1 to 21.2.2 2021-12-10 04:51:54 +00:00
Åke Forslund 4dd3dd3027 Add log if an exception loading identity occurs 2021-12-05 16:47:00 +01:00
Åke Forslund b342ab70c3 Only try to open the identity2.json if it exists 2021-12-05 16:46:39 +01:00
Kris Gesling ae99974398
Merge pull request #3045 from forslund/bugfix/config-creation-at-import
Do not create configs folders until writing
2021-12-01 09:17:41 +09:30
Kris Gesling d479a79b7e
Merge pull request #3033 from forslund/bugfix/config
Fix config priority
2021-12-01 09:13:28 +09:30
Åke Forslund 6b5d45e507 Do not create configs folders until writing
This replaces save_*_path with usage of the xdg_*_home when handling
config files. This means the config folders will not be created unless
actually written to.

The check for whether a directory needs to be created is handled behind
a lock to avoid race conditions
2021-11-30 22:50:09 +01:00
Kris Gesling bdfb7c3981 Update pyxdg for Python3.8 compatibility 2021-11-30 22:20:12 +09:30
Kris Gesling 8e319b49ef
Merge pull request #3042 from HFabi/feature/issue-3041
Issue-3041 - Install pip for python version specified by argument in dev_setup
2021-11-30 07:09:26 +09:30
Fabian Heck d9c280afd4 Issue-3041 - Install pip for python version specified by argument in dev_setup 2021-11-29 16:57:34 +01:00
Kris Gesling c3bd1f2c5f
Merge pull request #3039 from rooky-c3bo/bugfix/issue-3026
Issue-3026 - Update Gentoo libffi dependency reference
2021-11-29 12:12:58 +09:30
Bahadır Yaren bd85c94cdb Issue-3026 - Fixing Gentoo dependency 2021-11-25 12:21:00 +01:00
Kris Gesling 89cfad7943
Check if GUI is connected rather than maintain list of platforms (#3025)
* Check if GUI is connected rather than maintain list of platforms

There are already many Mycroft platforms that have GUIs
and this will only grow. We want to know if the device
has a GUI connected rather than if it is in a pre-defined
list of platforms.

* Create a mock GUI with a settable connected attribute
2021-11-24 14:51:10 +09:30
Åke Forslund b0f9a10e71 Disable source lookup errors 2021-11-23 11:56:54 +01:00
Kris Gesling 77549d01e2
Remove incorrectly added args in GUIWebsocketHandler methods (#3036)
PR #2879 updated the websocket-client and changed function
signatures to account for API changes in that package. These
were falsely changed as the GUI bus does not use the
websocket-client.

Consistency would be good however modifying the protocols
would require significant work. For now we have two slightly
different bus interfaces.
2021-11-22 15:00:20 +09:30
Kris Gesling e1dcebff8c
Merge pull request #3028 from MycroftAI/bugfix/link-update
Update link for Hub to point to official Github version
2021-11-11 14:04:12 +09:30
Åke Forslund 70df575d43 Make log settings not cache local only config
After startup the cached config would be without remote config. This
makes sure the config without remote isn't cached.
2021-11-09 21:04:58 +01:00
Åke Forslund 5ff2cb099f Fix order of configs
The old SYSTEM config was prioritized lower than the remote config
2021-11-09 20:51:38 +01:00
Genei180 ef56d71462
Added Possibility for ESpeak Config (#3020)
Added Possibility for ESpeak Config
2021-11-09 15:07:33 +09:30
Åke Forslund e6fe1bbc8a Use shellcheck directive instead of excludes
This uses shellcheck directives instead of excludes only available in
CICD.

This leaves SC1090 as a general exclude
2021-11-08 07:46:52 +01:00
Kris Gesling 958d4fa05e
Update link for Hub to point to official Github version 2021-11-06 06:13:58 +09:30
Kris Gesling ea157598d7
Merge pull request #3022 from MycroftAI/bugfix/gui-namespace-race-cond
Fix race condition in GUI namespace insertion
2021-11-05 06:12:08 +09:30
Åke fd12c88da5
Refactor/shellcheck bin (#3019)
* Shellcheck and update mycroft-config

* Shellcheck and update mycroft-pip

* Shellcheck and update mycroft-cli-client

* Shellcheck and update mycroft-help

* Shellcheck and update mycroft-listen

* Shellcheck and update mycroft-mic-test

* Shellcheck and update mycroft-msk

* Shellcheck and update mycroft-msm

* Shellcheck and update mycroft-say-to

* Shellcheck and update mycroft-skill-testrunner

* Shellcheck and update mycroft-speak

* Shellcheck and update mycroft-start

* Shellcheck and update mycroft-stop

* Add shellcheck step to github actions

This runs most of the shellcheck tests. The excludes are:
- SC1091: Avoids errors when shellcheck can't find sourced file
- SC2034: Unused variables, for example colors that aren't used yet
- SC2012: use of ls, from what I can see in our case this is fine (wc -l)

The version is locked to latest master as of November 2 2021
2021-11-04 17:01:17 +09:30
Kris Gesling 0ad093a8e3
Merge pull request #3021 from Saymantech-org/dev
Azerbaijani language support
2021-11-04 17:00:24 +09:30
jarbasal f8f640e3e5 fix/race condition dictionary changed iteration
bus events could cause the dict to change while being iterated
2021-11-04 13:37:54 +09:30