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 #1

Closed
wants to merge 2 commits into from

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Jan 3, 2023

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 caused Synapse's deb builds for Debian sid to fail.

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.
@anoadragon453 anoadragon453 requested a review from a team January 3, 2023 14:40
@anoadragon453
Copy link
Member Author

anoadragon453 commented Jan 3, 2023

Thanks for the review @MatMaul! I'm going to keep the changes on the anoa/drop_getargspec branch for now until spotify#354 is merged upstream.

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