Skip to content

Complete pkg_resources removal for Python 3.14 + dependency/CI cleanup#15

Open
onlykey wants to merge 5 commits into
masterfrom
fix-pkg-resources-py314
Open

Complete pkg_resources removal for Python 3.14 + dependency/CI cleanup#15
onlykey wants to merge 5 commits into
masterfrom
fix-pkg-resources-py314

Conversation

@onlykey
Copy link
Copy Markdown
Owner

@onlykey onlykey commented May 22, 2026

Follow-up to the previous pkg_resources PR, which swapped pkg_resources for importlib.metadata but was incomplete and introduced a regression.

Fixes. age: removed the leftover pkg_resources.require(...) call the previous PR missed -- it referenced pkg_resources after the import was deleted, raising NameError on the --version path. signify: removed the stray import pkg_resources the previous PR did not touch; this is the import that fails on Python 3.14.

Cleanup. setup.py drops wheel (build-only) and backports.shutil_which (py2), de-dups python-daemon, and adds python_requires '>=3.8'. util.py uses shutil.which directly. CI matrix is now 3.8 through 3.14 (was 3.7-3.11), with checkout v4 / setup-python v5.

Verification. All modules import on Python 3 and --version works; the test suite passes apart from one pre-existing, unrelated ssh signature test. (Separately, the repo's existing tox lint step is already red on master, independent of this change.)

Addresses the Python 3.14 failure reported in onlykey-agent (issue 45); a 1.0.7 release should ship before that issue is closed.

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