Skip to content

Fix Python 3.11+ compatibility - #1

Open
vz-akochkov wants to merge 1 commit into
masterfrom
fix/python3-modern-compat
Open

Fix Python 3.11+ compatibility#1
vz-akochkov wants to merge 1 commit into
masterfrom
fix/python3-modern-compat

Conversation

@vz-akochkov

Copy link
Copy Markdown

Summary

  • Replace pkg_resources with importlib.metadata via a new vinfraclient/distribution.py module, removing the dependency on setuptools 82's removed pkg_resources API
  • Update deprecated stdlib usage: inspect.getargspecgetfullargspec, unicode()text_type, collections.MutableMappingcollections.abc.MutableMapping
  • Document supported Python versions (3.8–3.14) and venv-based install steps in the README

Test plan

  • pip install . on Python 3.14 with setuptools 82 (no pin required)
  • vinfra --help and vinfra --version run without warnings
  • vinfra node list against a live VHI backend
  • python -m compileall vinfra vinfraclient passes on Python 3.14

Made with Cursor

Replace pkg_resources with importlib.metadata and update deprecated stdlib APIs so the CLI runs on current Python versions without pinning setuptools.
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