-
Notifications
You must be signed in to change notification settings - Fork 54
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
Remove distutils #166
base: main
Are you sure you want to change the base?
Remove distutils #166
Conversation
Older Pillow releases don't support PEP 517 builds
This requires Python 3.8 as minimal release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me
@@ -2,7 +2,7 @@ | |||
import asyncio | |||
import re | |||
import sys | |||
from distutils.version import StrictVersion | |||
from packaging import version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: arguably version safety check could be done without the extra dep
if version < StrictVersion("0.16.1"): | ||
binary_version_str = match.group(1) | ||
binary_version = version.parse(binary_version_str) | ||
if binary_version < version.parse("0.16.1"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That version was release on Apr 26, 2017
.
Perhaps this check can be removed entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh i'm fine with just removing the version check completely
All tests are locally still passing but please double-check the dependency updates.
Should fix #164