Skip to content

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