Skip to content

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

Merged
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
mrzzy:fix-go-sdk-pull-by-tag
Sep 7, 2020
Merged

Fix Python SDK setuptools not supporting tags required for Go SDK to be versioned.#983
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
mrzzy:fix-go-sdk-pull-by-tag

Conversation

@mrzzy

@mrzzy mrzzy commented Sep 4, 2020

Copy link
Copy Markdown
Collaborator

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

woop commented Sep 5, 2020

Copy link
Copy Markdown
Member

Do these tags also get pushed to Pypi?

@mrzzy

mrzzy commented Sep 6, 2020

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
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

Details 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

woop commented Sep 6, 2020

Copy link
Copy Markdown
Member

/lgtm

@mrzzy

mrzzy commented Sep 7, 2020

Copy link
Copy Markdown
Collaborator Author

/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