-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Fixed #27830 -- Used distutils.version.LooseVersion for version parsing. #8068
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
Conversation
Why are tests removed? I'd expect more tests to be added to show what cases this fixes. |
73b10f5
to
4fd7cd8
Compare
60db412
to
6167dd3
Compare
94b5c88
to
653200b
Compare
653200b
to
3a10e24
Compare
627fdd0
to
ff63def
Compare
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.
I think this renaming can be omitted.
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.
I'm not sure if this is needed. If keeping it, perhaps a test could be added.
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.
I'm not sure if this is needed. If keeping it, perhaps a test could be added.
django/contrib/gis/geos/__init__.py
Outdated
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.
Not sure if this change is needed -- doesn't seem like Django is importing from here?
django/contrib/gis/geos/libgeos.py
Outdated
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.
get_version_tuple(geos_version_info()['version'])
is okay
django/utils/version.py
Outdated
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.
"from VERSION if present" seems inaccurate
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.
Does Return available versions (major, minor, patch) from VERSION
sound accurate?
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.
Why is VERSION capitalized? Maybe something like:
Return a tuple of version numbers (e.g. (1, 2, 3)) from the version string (e.g. '1.2.3').
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.
VERSION
is capitalized in all other doc strings from this file. So, I thought it should be.
tests/backends/tests.py
Outdated
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.
Switching to assertTrue()
seems incorrect.
tests/gis_tests/tests.py
Outdated
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.
git?
dbe7a9e
to
1799326
Compare
https://code.djangoproject.com/ticket/27830