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 Python SDK setuptools not supporting tags required for Go SDK to be versioned. #983

Merged
merged 2 commits into from
Sep 7, 2020
Merged

Fix Python SDK setuptools not supporting tags required for Go SDK to be versioned. #983

merged 2 commits into from
Sep 7, 2020

Conversation

mrzzy
Copy link
Collaborator

@mrzzy mrzzy commented Sep 4, 2020

What this PR does / why we need it:
Added custom regex to parse versions to setuptools_scm used by the Python SDK to parse SemVer versions:

Which issue(s) this PR fixes:

Fixes #824 once new go sdk/go/* tags are introduced.

Does this PR introduce a user-facing change?:


…tuptools_scm

Required to prevent setuptools_scm from crashing due to 'sdk/go/*' tags
introduced to support golang SDK retrieval by version.
@woop
Copy link
Member

woop commented Sep 5, 2020

Do these tags also get pushed to Pypi?

@mrzzy
Copy link
Collaborator Author

mrzzy commented Sep 6, 2020

The regex extracts the version part of the tag and uses that to output the version instead using the versioncapturing group.

We can manually verify this by:

  • creating a test tag sdk/go/v0.5.3 or v0.5.3.
  • invoking setuptools_scm manually:
from setuptools_scm import get_version
params={"root": "../..", "relative_to": __file__, "tag_regex": TAG_REGEX}
version = get_version(**params)
print(version)

prints 0.5.3.dev7+g2353fb94.d20200906.

So the Pypi package should be tagged correctly.

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrzzy, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop
Copy link
Member

woop commented Sep 6, 2020

/lgtm

@mrzzy
Copy link
Collaborator Author

mrzzy commented Sep 7, 2020

/test test-end-to-end-batch

@feast-ci-bot feast-ci-bot merged commit 76883b4 into feast-dev:master Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go SDK: go get by Version Tag Does Not Work
3 participants