Skip to content

Commit

Permalink
fix: remove deprecated PIDLock usage (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jan 19, 2025
1 parent 18cd6f2 commit 434e953
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.10"
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.10"
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.10"
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ on:
workflow_dispatch:

jobs:
py_build_tests:
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
with:
python_version: "3.8"

unit_tests:
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand Down
4 changes: 0 additions & 4 deletions ovos_gui/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from ovos_config.locale import setup_locale
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import LOG, init_service_logger
from ovos_utils.process_utils import reset_sigint_handler, PIDLock

from ovos_gui.service import GUIService

Expand All @@ -19,10 +18,7 @@ def on_error(e='Unknown'):


def main(ready_hook=on_ready, error_hook=on_error, stopping_hook=on_stopping):
PIDLock.init()
reset_sigint_handler()
init_service_logger("gui")
PIDLock("gui")
LOG.debug("GUI websocket created")
try:
setup_locale()
Expand Down

0 comments on commit 434e953

Please sign in to comment.