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 version comparison in UUID type #643

Closed
wants to merge 1 commit into from

Conversation

Dinmukhamet
Copy link

@Dinmukhamet Dinmukhamet commented Oct 24, 2022

Recent versions of sqlalchemy have non-digit characters (for example, here), which is why this line sometimes breaks.

It is a better practice to use Version class from packaging.version standard library to compare versions.

recent versions of sqlalchemy has nondigit characters in it, that is why this line breaks at some cases

using LooseVersions will fix this problem
@kurtmckee
Copy link
Collaborator

@Dinmukhamet thanks for pointing this out! packaging is not listed as a dependency of sqlalchemy-utils; it is only installed while the test suite is running.

I would prefer to achieve the same result without introducing packaging as a new dependency.

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