Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
python-version: [3.11]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: 3.11
- name: Build and publish
run: |
./scripts/build_and_publish.sh ${{ secrets.PYPI_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ recursive=no

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes
# suggestion-mode=yes

# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
Expand Down
789 changes: 342 additions & 447 deletions poetry.lock

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "roonapi"
version = "0.1.6"
version = "0.1.7"
description = "Provides a python interface to interact with Roon"
authors = [
"Greg Dowling <mail@gregdowling.com>"
Expand All @@ -15,21 +15,20 @@ repository = "https://github.com/pavoni/pyroon"
homepage = "https://github.com/pavoni/pyroon"

[tool.poetry.dependencies]
python = "^3.7.2"
python = "^3.11.1"
ifaddr = ">=0.1.0"
requests = ">=2.0"
six = ">=1.10.0"
websocket_client = ">=1.4.0"
websocket_client = ">=1.9.0"

[tool.poetry.dev-dependencies]
flake8-docstrings = ">=1.3.0"
flake8 = "=5.0.4"
flake8-quotes = "^3.2.0"
flake8 = ">=5.0.4"
flake8-quotes = ">=3.2.0"
mypy = ">=0.650"
pydocstyle = "3.0.0"
pylint = "==2.16.2"
pytest = "==5.2.1"
black = "23.1.0"
pydocstyle = ">3.0.0"
pylint = ">=2.16.2"
pytest = ">=5.2.1"
black = ">23.1.0"

[tool.black]
line-length = 88
Expand Down
4 changes: 2 additions & 2 deletions roonapi/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, core_id=None):

def run(self):
"""Run discovery until server found."""
while not self._exit.isSet():
while not self._exit.is_set():
host, _ = self.first()
if host:
self.stop()
Expand Down Expand Up @@ -61,7 +61,7 @@ def _discover(self, first_only=False):
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.sendto(msg, ("<broadcast>", SOOD_PORT))
sock.settimeout(5)
while not self._exit.isSet():
while not self._exit.is_set():
try:
data, server = sock.recvfrom(1024)
message = SOODMessage(data).as_dictionary
Expand Down
2 changes: 1 addition & 1 deletion roonapi/roonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def play_id(self, zone_or_output_id, media_id):
return True

# private methods
# pylint: disable=too-many-arguments
# pylint: disable=too-many-arguments,disable=too-many-positional-arguments
def __init__(
self,
appinfo,
Expand Down
1 change: 0 additions & 1 deletion roonapi/soodmessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
SOOD\x02R<1bytelen>name<2bytelen><the_name><1bytelen>display_version<2bytelen><the_version><1bytelen>unique_id<2bytelen><the_id><1bytelen>service_id<twobytelen>00720724-5143-4a9b-abac-0e50cba674bb<1bytelen>tcp_port<twobytelen><the_port><1bytelen>http_port<twobytelen><the_port><1bytelen>_tid<twobytelen>c64e3888-f2f2-4c4a-9f89-2093ae4217a6
"""


from enum import Enum, auto


Expand Down