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

Fix DeprecationWarning about StrictVersion #1323

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Fix DeprecationWarning about StrictVersion #1323

merged 1 commit into from
Oct 6, 2022

Conversation

buhtz
Copy link
Member

@buhtz buhtz commented Oct 6, 2022

The class distutils.version.StrictVersion doing version comparison and its package distutils is deprecated. They are replaced by packaging.Version (see PEP440).

This is related to #1288 where I did the same but obviously missed some parts of the code. Not sure why I missed them. It seems to me that this DeprecationWarning doesn't occur with Python 3.9 but 3.10. Now I search via grep for the use of distutils package. I suspect that the deprecated distutils package isn't used anymore.

@aryoda
Copy link
Contributor

aryoda commented Oct 6, 2022

I also found only these two files using distutils. Should be fixed with this PR.

@emtiu emtiu merged commit 32aa778 into bit-team:master Oct 6, 2022
@buhtz buhtz deleted the fix/distutils branch October 7, 2022 07:11
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.

3 participants