From 8c913e11ea59d59d4905defa53aa1e963695c47c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 14 Feb 2025 14:32:11 -0800 Subject: [PATCH 1/3] chore: enable ASYNC ruff rules (#1528) --- examples/async_apple_scanner.py | 3 +-- examples/async_browser.py | 3 +-- examples/async_registration.py | 3 +-- pyproject.toml | 1 + 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/async_apple_scanner.py b/examples/async_apple_scanner.py index 19691662..00744b5c 100755 --- a/examples/async_apple_scanner.py +++ b/examples/async_apple_scanner.py @@ -96,8 +96,7 @@ async def async_run(self) -> None: ALL_SERVICES, **kwargs, # type: ignore[arg-type] ) - while True: - await asyncio.sleep(1) + await asyncio.Event().wait() async def async_close(self) -> None: assert self.aiozc is not None diff --git a/examples/async_browser.py b/examples/async_browser.py index d86cfc5e..58193f70 100755 --- a/examples/async_browser.py +++ b/examples/async_browser.py @@ -74,8 +74,7 @@ async def async_run(self) -> None: self.aiobrowser = AsyncServiceBrowser( self.aiozc.zeroconf, services, handlers=[async_on_service_state_change] ) - while True: - await asyncio.sleep(1) + await asyncio.Event().wait() async def async_close(self) -> None: assert self.aiozc is not None diff --git a/examples/async_registration.py b/examples/async_registration.py index d01b15e1..5c774cad 100755 --- a/examples/async_registration.py +++ b/examples/async_registration.py @@ -24,8 +24,7 @@ async def register_services(self, infos: list[AsyncServiceInfo]) -> None: background_tasks = await asyncio.gather(*tasks) await asyncio.gather(*background_tasks) print("Finished registration, press Ctrl-C to exit...") - while True: - await asyncio.sleep(1) + await asyncio.Event().wait() async def unregister_services(self, infos: list[AsyncServiceInfo]) -> None: assert self.aiozc is not None diff --git a/pyproject.toml b/pyproject.toml index 4015b88f..eb4ead92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,6 +113,7 @@ ignore = [ "PERF401", # Cython: closures inside cpdef functions not yet supported ] select = [ + "ASYNC", # async rules "B", # flake8-bugbear "C4", # flake8-comprehensions "S", # flake8-bandit From 1c7f3548b6cbddf73dbb9d69cd8987c8ad32c705 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sat, 15 Feb 2025 23:47:51 +0100 Subject: [PATCH 2/3] feat(docs): enable link to source code (#1529) --- docs/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index c3bce671..11a0f2d4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,9 +33,14 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [ + "sphinx.ext.todo", # Allow todo comments. + "sphinx.ext.viewcode", # Link to source code. "sphinx.ext.autodoc", "zeroconfautodocfix", # Must be after "sphinx.ext.autodoc" "sphinx.ext.intersphinx", + "sphinx.ext.coverage", # Enable the overage report. + "sphinx.ext.duration", # Show build duration at the end. + "sphinx_rtd_theme", # Required for theme. ] templates_path = ["_templates"] @@ -53,6 +58,11 @@ "**": ("localtoc.html", "relations.html", "sourcelink.html", "searchbox.html"), } +# -- Options for RTD theme --------------------------------------------------- +# https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html + +# html_theme_options = {} + # -- Options for HTML help output -------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-help-output From d4506fd4dc391fb366d1f7dfb5ec77933221a2eb Mon Sep 17 00:00:00 2001 From: semantic-release Date: Sat, 15 Feb 2025 22:57:36 +0000 Subject: [PATCH 3/3] 0.145.0 Automatically generated by python-semantic-release --- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/zeroconf/__init__.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b36d46..243772b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # CHANGELOG +## v0.145.0 (2025-02-15) + +### Features + +- **docs**: Enable link to source code + ([#1529](https://github.com/python-zeroconf/python-zeroconf/pull/1529), + [`1c7f354`](https://github.com/python-zeroconf/python-zeroconf/commit/1c7f3548b6cbddf73dbb9d69cd8987c8ad32c705)) + + ## v0.144.3 (2025-02-14) ### Bug Fixes diff --git a/pyproject.toml b/pyproject.toml index eb4ead92..78b100d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zeroconf" -version = "0.144.3" +version = "0.145.0" description = "A pure python implementation of multicast DNS service discovery" authors = ["Paul Scott-Murphy", "William McBrine", "Jakub Stasiak", "J. Nick Koston"] license = "LGPL-2.1-or-later" diff --git a/src/zeroconf/__init__.py b/src/zeroconf/__init__.py index 59052702..2cccd05d 100644 --- a/src/zeroconf/__init__.py +++ b/src/zeroconf/__init__.py @@ -88,7 +88,7 @@ __author__ = "Paul Scott-Murphy, William McBrine" __maintainer__ = "Jakub Stasiak " -__version__ = "0.144.3" +__version__ = "0.145.0" __license__ = "LGPL" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy