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

replace distutils.version with packaging.version #421

Merged
merged 1 commit into from
Mar 15, 2022
Merged

Conversation

FynnBe
Copy link
Member

@FynnBe FynnBe commented Mar 15, 2022

distutils.version is deprecated in py3.10. I would like to change it already as marshmallow did as well and there is a dependency issue in marshmallow that should be fixed with this PR as well (as we now ourselves depend on the packaging package).

This PR repalced distutils.version.StrictVersion with packaging.version.Version (see pypa/packaging#520)

The initial issue caused by marshmallow came up for us here:
bioimage-io/collection-bioimage-io#341 ModuleNotFoundError: No module named 'packaging'

The issue is known in marshmallow:
marshmallow-code/marshmallow#1957

Copy link
Collaborator

@constantinpape constantinpape left a comment

Choose a reason for hiding this comment

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

LGTM

@FynnBe FynnBe merged commit c323b9a into main Mar 15, 2022
@FynnBe FynnBe deleted the packaging_dep branch March 15, 2022 15:48
@FynnBe FynnBe mentioned this pull request Mar 15, 2022
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