Repository navigation
1.0.0b0
Pre-release
Pre-release
·
29 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Second pre-release of 1.0.0. There are some big changes in this release that have been years in the making, so I'm doing a pre-release to make sure it's stable before pushing a final release. Notably:
- Dropping support for old Python versions and interpreters
- Changing how settings are handled
- Raising exceptions if getmac won't function on the system (previously,
Nonewas returned in these cases)
Please, test this release on your systems, and report back on the linked discussion!
PyPI release: https://pypi.org/project/getmac/1.0.0b0/
Changes since 1.0.0a0
Added
- Support Python 3.15
- New setting,
settings.COMMAND_TIMEOUT. Commands that getmac runs (such asarporipconfig.exe) are stopped if they take longer than this many seconds (15 by default), and the next method is tried. Before, a command that never finished made the lookup hang forever.
Changed
- Windows: the path of each command getmac runs is now quoted. Before, a path with a space in it (e.g.
C:\Program Files\...) could make Windows run a different program, such asC:\Program.exe.
Dev
- mypy type checks the package in strict mode, and every
# type: ignorecomment now specifies the error being ignored. - Stricter pytest settings (unknown markers and settings are errors, and so are passing
xfailtests), and more ruff rules (refurb, Perflint, flake8-logging, flynt). - Setup PyPI Trusted Publishing with GitHub, and added GitHub Attestations.
- Added an OpenSSF Scorecard workflow that publishes supply-chain security results to the code scanning dashboard and the public Scorecard API, and a Scorecard badge to the README.
- Releases are fully automated in CI (no more manual cutting)
- Added a weekly dependency report workflow for outdated dependencies
- CodeQL runs on all pull requests