Skip to content

2026 code update - #24

Merged
gronke merged 12 commits into
mainfrom
revival
Jul 7, 2026
Merged

gronke merged 12 commits into
mainfrom
revival

Conversation

@gronke

@gronke gronke commented Jul 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

gronke added 12 commits July 6, 2026 18:43
The fallback read the .value of a c_char array, which follows C string
semantics and truncated OPAQUE and STRUCT values at the first NUL byte.
CtlType.data now holds the plain buffer bytes and only STRING keeps the
NUL termination semantics.
Fixes #20.
The second SECURE assignment carried the value of CTLMASK_SECURE and
overwrote CTLFLAG_SECURE.
Add NEEDGIANT, SHIFT_SECURE and SECURE1-3 from current sys/sys/sysctl.h.
PEP 621 metadata with an SPDX license expression (PEP 639) replaces the
invalid BSD license classifier.
Python 3.10 is the minimum supported version.
The test extra replaces the deprecated pytest-runner integration.
pyproject.toml carries all metadata; the build works without the legacy
files since setuptools 64.
fmt is a str, query_size returns an int, query_next returns a list, and
ctl_type identification passes classes, not instances.
The _fmt class attribute was assigned instead of annotated.
Resolving name or OID checks the private attributes, so a Sysctl
without both no longer recurses infinitely before failing.
ruff replaces the flake8 and bandit setup that the README described but
the repository never contained; the S rules cover the bandit checks.
The py.typed marker makes the inline annotations visible to type
checkers (PEP 561).
tests/conftest.py only imported the benchmark plugin, which pytest
already loads by itself.
mypy runs once per supported Python version.
The releases section linked the PyPI project of libioc, and the
development section referenced a Makefile that never existed in this
repository.
CODEOWNERS assigned a VERSION file that does not exist.
The CHANGELOG section that described Travis and Cirrus CI and a 0.11.0
bump never matched reality; PR #5 was not
merged and those services were never set up.
test_sysctl_refresh from #19 asserts that the
free page count changes on every loop iteration while allocating
memory, which is flaky by design.
Spawning a child process changes kern.lastpid deterministically.
@gronke
gronke merged commit 92f6cf5 into main Jul 7, 2026
4 checks passed
@gronke
gronke deleted the revival branch July 7, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant