Skip to content

Remove distutils#166

Open
fabaff wants to merge 4 commits into
HENNGE:mainfrom
fabaff:remove-distutils
Open

Remove distutils#166
fabaff wants to merge 4 commits into
HENNGE:mainfrom
fabaff:remove-distutils

Conversation

@fabaff

@fabaff fabaff commented Apr 4, 2024

Copy link
Copy Markdown

All tests are locally still passing but please double-check the dependency updates.

Should fix #164

fabaff added 4 commits April 4, 2024 12:41
Older Pillow releases don't support PEP 517 builds
This requires Python 3.8 as minimal release

@dimaqq dimaqq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me

Comment thread src/arsenic/services.py
import re
import sys
from distutils.version import StrictVersion
from packaging import version

Copy link
Copy Markdown
Contributor

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

Comment thread src/arsenic/services.py
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"):

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor

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

@ojii ojii mentioned this pull request Dec 23, 2024
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.

Remove distutils

3 participants