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

Update OVOS dependencies to allow 0.x versions #77

Merged
merged 16 commits into from
Sep 13, 2024
Merged
5 changes: 5 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ def _get_timezone_from_neon_utils(locale: Union[dict, str]) -> \
"""
if not locale:
raise ValueError("Locale not specified")
if isinstance(locale, str):
# `get_coordinates` expects a dict location, but it will join it to
# a string before making the API call, so `locale` can be any
# location search string
locale = {"city": locale}
coords = get_coordinates(locale)
if coords == (-1, -1):
return None
Expand Down
2 changes: 1 addition & 1 deletion locale/uk-ua/vocab/what.day.is.it.intent
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ти (знаєш) дату ((у|в) {location}|)
ти знаєш дату ((у|в) {location}|)
(скажи мені|я хочу знати|мені потрібно знати) дату ((у|в) {location}|)
який сьогодні день( (у|в) {location}|)( {location})
котра сьогодні (день|дата)( (у|в) {location}|)
Expand Down
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
pytz>=2022.1
geocoder~=1.38
timezonefinder~=5.2
ovos-bus-client~=0.0.4
ovos-bus-client~=0.0,>=0.0.4
ovos-utils~=0.0, >=0.0.34
neon-utils~=1.8,>=1.8.1
ovos-workshop~=0.0.12
# TODO: network patching dependency resolution
neon-utils[network]~=1.8,>=1.11.1a3
ovos-workshop~=0.0,>=0.0.12
ovos-lingua-franca~=0.4
6 changes: 3 additions & 3 deletions skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"requirements": {
"python": [
"geocoder~=1.38",
"neon-utils~=1.8,>=1.8.1",
"ovos-bus-client~=0.0.4",
"neon-utils[network]~=1.8,>=1.11.1a3",
"ovos-bus-client~=0.0,>=0.0.4",
"ovos-lingua-franca~=0.4",
"ovos-utils~=0.0, >=0.0.34",
"ovos-workshop~=0.0.12",
"ovos-workshop~=0.0,>=0.0.12",
"pytz>=2022.1",
"timezonefinder~=5.2"
],
Expand Down