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

0.0.9 #107

Merged
merged 91 commits into from
Sep 10, 2024
Merged

0.0.9 #107

Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
863e711
fix/log spam (#73)
JarbasAl Dec 30, 2023
a5692d0
Increment Version to 0.0.9a1
JarbasAl Dec 30, 2023
5cabccd
Update Changelog
JarbasAl Dec 30, 2023
376d7ea
fix/ocp api (#74)
NeonJarbas Jan 6, 2024
2416198
Increment Version to 0.0.9a2
JarbasAl Jan 6, 2024
51c0540
Update Changelog
JarbasAl Jan 6, 2024
cf7de4d
fix/ocp api (#77)
NeonJarbas Jan 8, 2024
dd2b60d
Increment Version to 0.0.9a3
JarbasAl Jan 8, 2024
bad51fa
Update Changelog
JarbasAl Jan 8, 2024
9bc9ae8
hotfix/avoid_c++_crash (#76)
JarbasAl Jan 9, 2024
01b8a2d
Increment Version to 0.0.9a4
JarbasAl Jan 9, 2024
64ecb52
Update Changelog
JarbasAl Jan 9, 2024
7bf4704
feat/ovos-media (#78)
NeonJarbas Jan 12, 2024
63b3717
Increment Version to 0.0.9a5
JarbasAl Jan 12, 2024
b5ab3bd
Update Changelog
JarbasAl Jan 12, 2024
e2b4c51
typo_and_docstr (#79)
JarbasAl Jan 12, 2024
35f0f8c
Increment Version to 0.0.9a6
JarbasAl Jan 12, 2024
2ffdeb4
Update Changelog
JarbasAl Jan 12, 2024
850890e
refactor/orjson (#75)
JarbasAl Jan 13, 2024
b157659
Increment Version to 0.0.9a7
JarbasAl Jan 13, 2024
f24fe07
Update Changelog
JarbasAl Jan 13, 2024
536f5b3
remove "Component licenses for mycroft-core:"
JarbasAl Jan 13, 2024
477caa6
Increment Version to 0.0.9a8
JarbasAl Jan 13, 2024
c397e14
Update Changelog
JarbasAl Jan 13, 2024
3e6fb24
fix/info_leak (#81)
JarbasAl Jan 23, 2024
7e75d0a
Increment Version to 0.0.9a9
JarbasAl Jan 23, 2024
df49bf7
Update Changelog
JarbasAl Jan 23, 2024
b9fee50
Create dependabot.yml
JarbasAl Jan 28, 2024
990e513
Update default values (#83)
JarbasAl Jan 29, 2024
2b0debc
Increment Version to 0.0.9a10
JarbasAl Jan 29, 2024
34de9d3
Update Changelog
JarbasAl Jan 29, 2024
aa7a4ed
feat/remove_all_pages (#84)
NeonJarbas Feb 2, 2024
ed578be
Increment Version to 0.0.9a11
JarbasAl Feb 2, 2024
c14f127
Update Changelog
JarbasAl Feb 2, 2024
4b67d0c
feat/session_location (#85)
JarbasAl Feb 21, 2024
226fcd8
Increment Version to 0.0.9a12
JarbasAl Feb 21, 2024
9ba0f2b
Update Changelog
JarbasAl Feb 21, 2024
d90f7ef
chore(docs): add a long description to PyPi (#86)
mikejgray Mar 10, 2024
4c312d1
Increment Version to
JarbasAl Mar 10, 2024
56f66aa
Update Changelog
JarbasAl Mar 10, 2024
04752ec
fix/ocp_norm_tracks
JarbasAl Apr 9, 2024
25bfe33
Increment Version to
JarbasAl Apr 9, 2024
bd491af
Update Changelog
JarbasAl Apr 9, 2024
9245091
feat/targeted OCP queries (#88)
NeonJarbas Apr 9, 2024
9caac7e
Increment Version to
JarbasAl Apr 9, 2024
d23388d
Update Changelog
JarbasAl Apr 9, 2024
277d2db
feat/add_units_to_session (#90)
JarbasAl Apr 20, 2024
8593080
Increment Version to
JarbasAl Apr 20, 2024
b51d1fd
Update Changelog
JarbasAl Apr 20, 2024
629f9ae
hotfix/skip_github_releases
JarbasAl Apr 20, 2024
aa7fe2f
Increment Version to
JarbasAl Apr 20, 2024
25e4b4d
refactor/remove_stt+tts_prefs (#91)
JarbasAl Apr 25, 2024
005192d
Increment Version to
JarbasAl Apr 25, 2024
c6d089e
Update Changelog
JarbasAl Apr 25, 2024
e67b630
feat/track_speaking+recording_per_session (#93)
JarbasAl May 3, 2024
06d5585
Increment Version to
JarbasAl May 3, 2024
77c3aaa
Update Changelog
JarbasAl May 3, 2024
2ba3c1f
Update imports to support ovos-utils~=0.0.x with compat. warnings (#94)
NeonDaniel May 7, 2024
b566916
Increment Version to
JarbasAl May 7, 2024
ffc3d40
Update Changelog
JarbasAl May 7, 2024
8420d7a
Update setup.py to resolve version automation bug (#95)
NeonDaniel May 8, 2024
e5369e4
Increment Version to 0.0.9a21
JarbasAl May 8, 2024
93363fb
Update Changelog
JarbasAl May 8, 2024
9776d6e
feat/blacklist_from_session (#98)
JarbasAl Jun 5, 2024
3b95151
Increment Version to 0.0.9a22
JarbasAl Jun 5, 2024
f84a8d8
Update Changelog
JarbasAl Jun 5, 2024
a96edb5
refactor/handle_new_SEIs (#97)
JarbasAl Jun 20, 2024
6001f18
Increment Version to 0.0.9a23
JarbasAl Jun 20, 2024
6975d39
Update Changelog
JarbasAl Jun 20, 2024
27bf49b
hotfix/StreamPlugin (#100)
JarbasAl Jun 21, 2024
19e47e5
Increment Version to 0.0.9a24
JarbasAl Jun 21, 2024
1dadc43
Update Changelog
JarbasAl Jun 21, 2024
5833398
Update error handling to reduce unhandled exceptions (#96)
NeonDaniel Jun 28, 2024
0eae026
Increment Version to 0.0.9a25
JarbasAl Jun 28, 2024
b9239c7
Update Changelog
JarbasAl Jun 28, 2024
4ce888c
fix/ocp_uris (#102)
JarbasAl Jul 5, 2024
e72b802
Increment Version to 0.0.9a26
JarbasAl Jul 5, 2024
5774abe
Update Changelog
JarbasAl Jul 5, 2024
13dd947
fix/ocp_api_context (#103)
JarbasAl Jul 12, 2024
0b7911c
Increment Version to 0.0.9a27
JarbasAl Jul 12, 2024
67e3c57
Update Changelog
JarbasAl Jul 12, 2024
8f29333
fix/ocp_missing_context (#104)
JarbasAl Jul 12, 2024
e618311
Increment Version to 0.0.9a28
JarbasAl Jul 12, 2024
7b17451
Update Changelog
JarbasAl Jul 12, 2024
b8d1ee6
fix/KeyError (#105)
JarbasAl Jul 15, 2024
e7f3d6e
Increment Version to 0.0.9a29
JarbasAl Jul 15, 2024
e037993
Update Changelog
JarbasAl Jul 15, 2024
04b2f6a
Increment Version to 0.0.9
JarbasAl Sep 2, 2024
1a9793f
Update Changelog
JarbasAl Sep 2, 2024
9acbce6
Update LICENSE copyright
JarbasAl Sep 5, 2024
170986b
deprecation warnings (#111)
JarbasAl Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
16 changes: 1 addition & 15 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'LICENSE'
- 'CHANGELOG.md'
- 'MANIFEST.in'
- 'readme.md'
- 'README.md'
- 'scripts/**'
workflow_dispatch:

Expand All @@ -34,20 +34,6 @@ jobs:
runs-on: ubuntu-latest
needs: update_version
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: V${{ needs.update_version.outputs.version }}
release_name: Release ${{ needs.update_version.outputs.version }}
body: |
Changes in this Release
${{ needs.update_version.outputs.changelog }}
draft: false
prerelease: true
commitish: dev
- name: Checkout Repository
uses: actions/checkout@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'LICENSE'
- 'CHANGELOG.md'
- 'MANIFEST.in'
- 'readme.md'
- 'README.md'
- 'scripts/**'
push:
branches:
Expand All @@ -25,7 +25,7 @@ on:
- 'LICENSE'
- 'CHANGELOG.md'
- 'MANIFEST.in'
- 'readme.md'
- 'README.md'
- 'scripts/**'
workflow_dispatch:

Expand Down
128 changes: 123 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,134 @@
# Changelog

## [V0.0.8a2](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.8a2) (2023-12-29)
## [0.0.9](https://github.com/OpenVoiceOS/ovos-bus-client/tree/0.0.9) (2024-09-02)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.8a1...V0.0.8a2)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V...0.0.9)

**Breaking changes:**

- refactor/remove\_stt+tts\_prefs [\#91](https://github.com/OpenVoiceOS/ovos-bus-client/pull/91) ([JarbasAl](https://github.com/JarbasAl))

**Implemented enhancements:**

- feat/blacklist\_from\_session [\#98](https://github.com/OpenVoiceOS/ovos-bus-client/pull/98) ([JarbasAl](https://github.com/JarbasAl))
- feat/track\_speaking+recording\_per\_session [\#93](https://github.com/OpenVoiceOS/ovos-bus-client/pull/93) ([JarbasAl](https://github.com/JarbasAl))
- feat/add\_units\_to\_session [\#90](https://github.com/OpenVoiceOS/ovos-bus-client/pull/90) ([JarbasAl](https://github.com/JarbasAl))
- feat/targeted OCP queries [\#88](https://github.com/OpenVoiceOS/ovos-bus-client/pull/88) ([NeonJarbas](https://github.com/NeonJarbas))

**Fixed bugs:**

- fix/KeyError [\#105](https://github.com/OpenVoiceOS/ovos-bus-client/pull/105) ([JarbasAl](https://github.com/JarbasAl))
- fix/ocp\_missing\_context [\#104](https://github.com/OpenVoiceOS/ovos-bus-client/pull/104) ([JarbasAl](https://github.com/JarbasAl))
- fix/ocp\_api\_context [\#103](https://github.com/OpenVoiceOS/ovos-bus-client/pull/103) ([JarbasAl](https://github.com/JarbasAl))
- fix/ocp\_uris [\#102](https://github.com/OpenVoiceOS/ovos-bus-client/pull/102) ([JarbasAl](https://github.com/JarbasAl))
- hotfix/StreamPlugin [\#100](https://github.com/OpenVoiceOS/ovos-bus-client/pull/100) ([JarbasAl](https://github.com/JarbasAl))
- Update error handling to reduce unhandled exceptions [\#96](https://github.com/OpenVoiceOS/ovos-bus-client/pull/96) ([NeonDaniel](https://github.com/NeonDaniel))
- Update setup.py to resolve version automation bug [\#95](https://github.com/OpenVoiceOS/ovos-bus-client/pull/95) ([NeonDaniel](https://github.com/NeonDaniel))

**Merged pull requests:**

- refactor/handle\_new\_SEIs [\#97](https://github.com/OpenVoiceOS/ovos-bus-client/pull/97) ([JarbasAl](https://github.com/JarbasAl))
- Update imports to support ovos-utils~=0.0.x with compat. warnings [\#94](https://github.com/OpenVoiceOS/ovos-bus-client/pull/94) ([NeonDaniel](https://github.com/NeonDaniel))

## [V](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V) (2024-03-10)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a12...V)

**Merged pull requests:**

- chore\(docs\): add a long description to PyPi [\#86](https://github.com/OpenVoiceOS/ovos-bus-client/pull/86) ([mikejgray](https://github.com/mikejgray))

## [V0.0.9a12](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a12) (2024-02-21)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a11...V0.0.9a12)

**Implemented enhancements:**

- feat/session\_location [\#85](https://github.com/OpenVoiceOS/ovos-bus-client/pull/85) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a11](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a11) (2024-02-02)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a10...V0.0.9a11)

**Merged pull requests:**

- feat/remove\_all\_pages [\#84](https://github.com/OpenVoiceOS/ovos-bus-client/pull/84) ([NeonJarbas](https://github.com/NeonJarbas))

## [V0.0.9a10](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a10) (2024-01-29)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a9...V0.0.9a10)

**Fixed bugs:**

- Update default values [\#83](https://github.com/OpenVoiceOS/ovos-bus-client/pull/83) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a9](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a9) (2024-01-23)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a8...V0.0.9a9)

**Fixed bugs:**

- fix/info\_leak [\#81](https://github.com/OpenVoiceOS/ovos-bus-client/pull/81) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a8](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a8) (2024-01-13)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a7...V0.0.9a8)

## [V0.0.9a7](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a7) (2024-01-13)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a6...V0.0.9a7)

**Merged pull requests:**

- refactor/orjson [\#75](https://github.com/OpenVoiceOS/ovos-bus-client/pull/75) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a6](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a6) (2024-01-12)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a5...V0.0.9a6)

**Fixed bugs:**

- typo\_and\_docstr [\#79](https://github.com/OpenVoiceOS/ovos-bus-client/pull/79) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a5](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a5) (2024-01-12)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a4...V0.0.9a5)

**Implemented enhancements:**

- feat/ovos-media [\#78](https://github.com/OpenVoiceOS/ovos-bus-client/pull/78) ([NeonJarbas](https://github.com/NeonJarbas))

## [V0.0.9a4](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a4) (2024-01-09)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a3...V0.0.9a4)

**Fixed bugs:**

- hotfix/avoid\_c++\_crash [\#76](https://github.com/OpenVoiceOS/ovos-bus-client/pull/76) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.9a3](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a3) (2024-01-08)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a2...V0.0.9a3)

**Fixed bugs:**

- fix/get\_message\_lang [\#71](https://github.com/OpenVoiceOS/ovos-bus-client/pull/71) ([JarbasAl](https://github.com/JarbasAl))
- fix/ocp api [\#77](https://github.com/OpenVoiceOS/ovos-bus-client/pull/77) ([NeonJarbas](https://github.com/NeonJarbas))

## [V0.0.8a1](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.8a1) (2023-12-29)
## [V0.0.9a2](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a2) (2024-01-06)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.9a1...V0.0.9a2)

**Implemented enhancements:**

- fix/ocp api [\#74](https://github.com/OpenVoiceOS/ovos-bus-client/pull/74) ([NeonJarbas](https://github.com/NeonJarbas))

## [V0.0.9a1](https://github.com/OpenVoiceOS/ovos-bus-client/tree/V0.0.9a1) (2023-12-30)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.8...V0.0.9a1)

**Fixed bugs:**

[Full Changelog](https://github.com/OpenVoiceOS/ovos-bus-client/compare/V0.0.7...V0.0.8a1)
- fix/log spam [\#73](https://github.com/OpenVoiceOS/ovos-bus-client/pull/73) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
10 changes: 1 addition & 9 deletions LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2024 Casimiro Ferreira
JarbasAl marked this conversation as resolved.
Show resolved Hide resolved

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -200,12 +200,4 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

=======================================================================

Component licenses for mycroft-core:

The mycroft-core software references various Python Packages (via PIP),
each of which has a separate license. All are compatible with the
Apache 2.0 license. See the referenced packages listed in the
"requirements.txt" file for specific terms and conditions.
41 changes: 26 additions & 15 deletions ovos_bus_client/apis/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ovos_utils.log import LOG, log_deprecation
from ovos_bus_client.util import get_mycroft_bus
from ovos_utils.gui import can_use_gui

from ovos_config import Configuration
from ovos_bus_client.message import Message


Expand Down Expand Up @@ -91,14 +91,7 @@ def __init__(self, skill_id: str, bus=None,
`all` key should reference a `gui` directory containing all
specific resource subdirectories
"""
if not config:
log_deprecation(f"Expected a dict config and got None.", "0.1.0")
try:
from ovos_config.config import read_mycroft_config
config = read_mycroft_config().get("gui", {})
except ImportError:
LOG.warning("Config not provided and ovos_config not available")
config = dict()
config = config or Configuration().get("gui", {})
self.config = config
if remote_server:
self.config["remote-server"] = remote_server
Expand Down Expand Up @@ -153,7 +146,9 @@ def page(self) -> Optional[str]:
"""
Return the active GUI page name to show
"""
return self._pages[self.current_page_idx] if len(self._pages) else None
if not len(self._pages) or self.current_page_idx >= len(self._pages):
return None
return self._pages[self.current_page_idx]

@property
def connected(self) -> bool:
Expand Down Expand Up @@ -364,8 +359,8 @@ def _pages2uri(self, page_names: List[str]) -> List[str]:
# Prefer plugin-specific resources first, then fallback to core
page = resolve_ovos_resource_file(name, extra_dirs) or \
resolve_ovos_resource_file(join('ui', name), extra_dirs) or \
resolve_resource_file(name, self.config) or \
resolve_resource_file(join('ui', name), self.config)
resolve_resource_file(name, config=self.config) or \
resolve_resource_file(join('ui', name), config=self.config)

if page:
if self.remote_url:
Expand Down Expand Up @@ -403,19 +398,21 @@ def _normalize_page_name(page_name: str) -> str:

# base gui interactions
def show_page(self, name: str, override_idle: Union[bool, int] = None,
override_animations: bool = False):
override_animations: bool = False, index: int = 0,
remove_others=False):
"""
Request to show a page in the GUI.
@param name: page resource requested
@param override_idle: number of seconds to override display for;
if True, override display indefinitely
@param override_animations: if True, disables all GUI animations
"""
self.show_pages([name], 0, override_idle, override_animations)
self.show_pages([name], index, override_idle, override_animations, remove_others)

def show_pages(self, page_names: List[str], index: int = 0,
override_idle: Union[bool, int] = None,
override_animations: bool = False):
override_animations: bool = False,
remove_others=False):
"""
Request to show a list of pages in the GUI.
@param page_names: list of page resources requested
Expand All @@ -439,6 +436,9 @@ def show_pages(self, page_names: List[str], index: int = 0,
page_urls = self._pages2uri(page_names)
page_names = [self._normalize_page_name(n) for n in page_names]

if remove_others:
self.remove_all_pages(except_pages=page_names)

self._pages = page_names
self.current_page_idx = index

Expand Down Expand Up @@ -484,6 +484,17 @@ def remove_pages(self, page_names: List[str]):
"page_names": page_names,
"__from": self.skill_id}))

def remove_all_pages(self, except_pages=None):
"""
Request to remove all pages from the GUI.
@param except_pages: list of optional page resources to keep
"""
if not self.bus:
raise RuntimeError("bus not set, did you call self.bind() ?")
self.bus.emit(Message("gui.page.delete.all",
{"__from": self.skill_id,
"except": except_pages or []}))

# Utils / Templates

# backport - PR https://github.com/MycroftAI/mycroft-core/pull/2862
Expand Down
Loading