Bug 240920 - [NEW PORT] devel/py-freebsd-sysctl: Native Python wrapper for FreeBSD sysctls using libc
Summary: [NEW PORT] devel/py-freebsd-sysctl: Native Python wrapper for FreeBSD sysctls...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL: https://pypi.org/project/freebsd-sysctl/
Keywords: feature, needs-patch, needs-qa
Depends on:
Blocks: 240921
  Show dependency treegraph
 
Reported: 2019-09-29 15:47 UTC by gronke
Modified: 2019-11-09 15:54 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (stefan)


Attachments
freebsd_sysctl v0.0.6 Python Module (1.74 KB, text/plain)
2019-09-29 15:47 UTC, gronke
no flags Details
freebsd_sysctl v0.0.7 Python Module (1.75 KB, text/plain)
2019-11-07 19:53 UTC, gronke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gronke 2019-09-29 15:47:22 UTC
Created attachment 207936 [details]
freebsd_sysctl v0.0.6 Python Module

Native Python wrapper for FreeBSD jails using libc.

This Python 3 interface for FreeBSD sysctl has no third party dependency and does not require a compile step to install. It is meant for performant (read) access to sysctls, their type, value and description.

It is dependency of devel/py-libioc and available in the Pip registry:
https://pypi.org/project/freebsd-sysctl/
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-09-30 07:08:52 UTC
(In reply to gronke from comment #0)

Should this be "FreeBSD sysctls" instead of "FreeBSD jails" ?
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-30 08:21:29 UTC
The PyPI name for this package is freebsd-sysctl, please use that as the PORTNAME

If you could also confirm the port passes QA (portlint, poudriere, PythonPolicy [1]), that would be great.

[1] https://wiki.freebsd.org/Python/PortsPolicy
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-30 08:22:36 UTC
I would probably also put this in sysutils as a primary category, devel, python as secondaries.
Comment 4 gronke 2019-11-07 19:53:32 UTC
Created attachment 208950 [details]
freebsd_sysctl v0.0.7 Python Module

- Port and PyPi package renamed to freebsd-sysctl (although the import name is still freebsd_sysctl)
- `sysutils` is added as secondary category. The library gives programmatic access to sysctls from Python, but is not meant to be a system utility for direct usage.
Comment 5 commit-hook freebsd_committer 2019-11-09 15:54:22 UTC
A commit references this bug:

Author: netchild
Date: Sat Nov  9 15:53:41 UTC 2019
New revision: 517131
URL: https://svnweb.freebsd.org/changeset/ports/517131

Log:
  Native Python wrapper for FreeBSD sysctls using libc.

  WWW: https://github.com/gronke/py-freebsd_sysctl

  PR:		240920
  Submitted by:	stefan@gronke.net

Changes:
  head/devel/Makefile
  head/devel/py-freebsd-sysctl/
  head/devel/py-freebsd-sysctl/Makefile
  head/devel/py-freebsd-sysctl/distinfo
  head/devel/py-freebsd-sysctl/pkg-descr