Skip to content

Conversation

ChillarAnand
Copy link
Contributor

@ChillarAnand ChillarAnand commented Feb 15, 2017

@timgraham
Copy link
Member

Why are tests removed? I'd expect more tests to be added to show what cases this fixes.

@ChillarAnand ChillarAnand changed the title Fixed #27830 -- Used distutils.version.LooseVersion for version handling [WIP] Fixed #27830 -- Used distutils.version.LooseVersion for version handling Feb 15, 2017
@ChillarAnand ChillarAnand force-pushed the 27830-version branch 6 times, most recently from 60db412 to 6167dd3 Compare February 15, 2017 17:26
@ChillarAnand ChillarAnand force-pushed the 27830-version branch 7 times, most recently from 94b5c88 to 653200b Compare February 19, 2017 15:43
@ChillarAnand ChillarAnand changed the title [WIP] Fixed #27830 -- Used distutils.version.LooseVersion for version handling Fixed #27830 -- Used distutils.version.LooseVersion for version handling Feb 19, 2017
@ChillarAnand ChillarAnand changed the title Fixed #27830 -- Used distutils.version.LooseVersion for version handling Fixed #27830 -- Used packaging.version.Version for version handling Feb 19, 2017
@ChillarAnand ChillarAnand force-pushed the 27830-version branch 2 times, most recently from 627fdd0 to ff63def Compare June 8, 2017 14:24
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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?

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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').

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

git?

@ChillarAnand ChillarAnand force-pushed the 27830-version branch 4 times, most recently from dbe7a9e to 1799326 Compare June 13, 2017 13:54
@timgraham timgraham changed the title Fixed #27830 -- Used packaging.version.Version for version handling Fixed #27830 -- Used distutils.version.LooseVersion for version parsing. Jun 13, 2017
@timgraham timgraham merged commit 08bda82 into django:master Jun 13, 2017
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