Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for compatibility with Python 3.11 #354

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

anoadragon453
Copy link
Contributor

dh-virtualenv is a tool that packages Python dependencies from PyPI into debian packages and run with the installee system's Python interpreter. dh-virtualenv relied on the inspect.getargspec method, which has been deprecated since Python 3.0. Finally, it appears that this method has been removed in Python 3.11.x, which Debian sid ships with.

This PR updates the check to use inspect.getfullargspec instead, which is the suggested replacement.

It's debatable whether this check is even still needed, but for now let's do the simple thing and update it to be compatible with modern Python versions.

It's debatable whether this check is even still needed, but for now
let's do the simple thing and update it to be compatible with modern
Python versions.
@nailor
Copy link
Collaborator

nailor commented Jan 3, 2023

Good catch, thanks for the update!

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.

2 participants