Skip to content

Conversation

@dandhlee
Copy link
Contributor

When there is a patch version added to semver versioning, setuptools.setup(version) will normalize the versioning from -patch to .patch which is not correct SEMVER versioning. The added feature with setuptools.sic(version) will prevent this from happening.

@dandhlee dandhlee requested a review from a team as a code owner April 14, 2021 23:29
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 14, 2021
parthea
parthea previously approved these changes Apr 16, 2021
@parthea parthea dismissed their stale review April 16, 2021 20:47

Need to remove workaround

except ImportError:
# setuptools <39.0.0 uses packaging from pkg_resources.extern
from pkg_resources.extern import packaging
packaging.version.Version = packaging.version.LegacyVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of the workaround, let's bump the setuptools version since it's a dependency.
https://github.com/googleapis/google-auth-library-python/blob/master/setup.py#L29

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried doing that, it works for Python3 but does not work for Python2 :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah it must be from setuptools removing support for Python 2. This LGTM.

@busunkim96 busunkim96 merged commit 36e6f0f into master Apr 16, 2021
@busunkim96 busunkim96 deleted the remove-semver-normalization branch April 16, 2021 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants