Skip to content

Commit f9fa060

Browse files
authored
Merge branch 'master' into speedup-test-event-loop-blocked
2 parents e95c51e + dd8ede3 commit f9fa060

5 files changed

Lines changed: 86 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ jobs:
6969
runs-on: ${{ matrix.os }}
7070
steps:
7171
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
72+
- name: Set up uv
73+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
74+
with:
75+
enable-cache: true
7276
- name: Install poetry
73-
run: pipx install poetry
77+
run: uv tool install poetry
7478
- name: Set up Python
7579
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
7680
with:
@@ -102,13 +106,18 @@ jobs:
102106
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
103107
with:
104108
python-version: 3.13
105-
- uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
109+
- name: Set up uv
110+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
111+
with:
112+
enable-cache: true
113+
- name: Install poetry
114+
run: uv tool install poetry
106115
- name: Install Dependencies
107116
run: |
108117
REQUIRE_CYTHON=1 poetry install --only=main,dev
109118
shell: bash
110119
- name: Run benchmarks
111-
uses: CodSpeedHQ/action@d872884a306dd4853acf0f584f4b706cf0cc72a2 # v3
120+
uses: CodSpeedHQ/action@3194d9a39c4d46684cb44bf7207fc56626aad8fd # v3
112121
with:
113122
token: ${{ secrets.CODSPEED_TOKEN }}
114123
run: poetry run pytest --no-cov -vvvvv --codspeed tests/benchmarks
@@ -153,7 +162,7 @@ jobs:
153162
github_token: ${{ secrets.GITHUB_TOKEN }}
154163

155164
- name: Publish package distributions to PyPI
156-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
165+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
157166
if: steps.release.outputs.released == 'true'
158167

159168
- name: Publish package distributions to GitHub Releases
@@ -288,14 +297,14 @@ jobs:
288297
fetch-depth: 0
289298

290299
- name: Build wheels ${{ matrix.musl }} (${{ matrix.qemu }})
291-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
300+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
292301
# to supply options, put them in 'env', like:
293302
env:
294303
CIBW_SKIP: cp36-* cp37-* pp36-* pp37-* pp38-* cp38-* ${{ matrix.musl == 'musllinux' && '*manylinux*' || '*musllinux*' }}
295304
CIBW_BEFORE_ALL_LINUX: apt install -y gcc || yum install -y gcc || apk add gcc
296305
REQUIRE_CYTHON: 1
297306

298-
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v4
307+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4
299308
with:
300309
path: ./wheelhouse/*.whl
301310
name: wheels-${{ matrix.os }}-${{ matrix.musl }}-${{ matrix.qemu }}-${{ matrix.pyver }}
@@ -317,4 +326,4 @@ jobs:
317326
merge-multiple: true
318327

319328
- uses:
320-
pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
329+
pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

‎CLAUDE.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ mutated from multiple threads without locks; no
157157
but the test matrix exercises 3.14t, so any new Cython module
158158
needs to keep working there.
159159

160+
## Reporting security issues
161+
162+
Suspected security vulnerabilities go through GitHub's [private
163+
vulnerability reporting][gh-report], not public issues or pull
164+
requests. The policy is spelled out in [SECURITY.md](SECURITY.md).
165+
If a user describes what sounds like a vulnerability in chat,
166+
point them at that route instead of opening a public issue, PR,
167+
or commit that names the bug class and the affected code path.
168+
169+
[gh-report]: https://github.com/python-zeroconf/python-zeroconf/security/advisories/new
170+
160171
## Useful entry points
161172

162173
| Path | What |

‎SECURITY.md‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Security Policy
2+
3+
## Reporting a vulnerability
4+
5+
Please report security vulnerabilities privately through GitHub's
6+
[private vulnerability reporting][gh-report] for this repository.
7+
That route sends the report directly to the maintainers and lets
8+
us coordinate a fix, a CVE, and a release before public
9+
disclosure.
10+
11+
**Do not** open a regular GitHub issue, a pull request, or post
12+
to a public channel (mailing list, chat room, Stack Overflow,
13+
etc.) for a suspected vulnerability. If you are unsure whether
14+
something is a vulnerability, use the private report — we would
15+
rather see a false alarm than a public one.
16+
17+
We aim to acknowledge new reports within a few business days.
18+
19+
[gh-report]: https://github.com/python-zeroconf/python-zeroconf/security/advisories/new
20+
21+
## Supported versions
22+
23+
Security fixes are released against the latest `0.x` line on
24+
PyPI. Older releases are not maintained — please upgrade to the
25+
current release before reporting, and confirm the issue still
26+
reproduces there.
27+
28+
## Scope
29+
30+
`python-zeroconf` is an mDNS / DNS-SD library. By design it
31+
parses untrusted multicast traffic from the local network
32+
(RFC 6762, RFC 6763). In-scope issues include:
33+
34+
- Memory-safety, parsing, or denial-of-service issues triggered
35+
by crafted mDNS / DNS-SD packets reaching `DNSIncoming`, the
36+
record cache, the service registry, or listener callbacks.
37+
- Logic bugs that cause the library to answer queries it should
38+
not, leak information across interfaces, or hijack a service
39+
name from another responder in a way the RFCs don't sanction.
40+
- Issues in the build / packaging pipeline (`build_ext.py`,
41+
wheel contents, signed-release flow) that could lead to a
42+
compromised wheel on PyPI.
43+
44+
Out of scope:
45+
46+
- Risks inherent to running an mDNS responder on an untrusted
47+
network — mDNS is unauthenticated by design (RFC 6762 §21).
48+
Reports of the form "a malicious LAN peer can send packets"
49+
are expected behaviour unless they cross one of the lines
50+
above.
51+
- Misconfiguration of a downstream application that uses the
52+
library.

‎pyproject.toml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[project]
66
name = "zeroconf"
7-
version = "1.0.0"
7+
version = "0.148.0"
88
license = "LGPL-2.1-or-later"
99
description = "A pure python implementation of multicast DNS service discovery"
1010
readme = "README.rst"
@@ -58,6 +58,7 @@ version_variables = [
5858
]
5959
build_command = "pip install poetry && poetry build"
6060
tag_format = "{version}"
61+
allow_zero_version = true
6162

6263
[tool.semantic_release.changelog]
6364
exclude_commit_patterns = [
@@ -71,8 +72,11 @@ keep_trailing_newline = true
7172
[tool.semantic_release.branches.master]
7273
match = "master"
7374

75+
[tool.semantic_release.branches."release-0.x"]
76+
match = "release-0.x"
77+
7478
[tool.semantic_release.branches.noop]
75-
match = "(?!master$)"
79+
match = "(?!(master|release-0.x)$)"
7680
prerelease = true
7781

7882
[tool.poetry.dependencies]

‎src/zeroconf/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
__author__ = "Paul Scott-Murphy, William McBrine"
9090
__maintainer__ = "Jakub Stasiak <[email protected]>"
91-
__version__ = "1.0.0"
91+
__version__ = "0.148.0"
9292
__license__ = "LGPL"
9393

9494

0 commit comments

Comments
 (0)