You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently moved (#103) package versioning from hardcoded strings in the __about__.py file to git tags using setuptools_scm through hatch.
Problem is setuptools_scm splits the tag using - and having hyphens in the string prepending the version in the tag name, for example integrations/google_vertex-v0.0.1 confuses the plugin.
There isn't an easy fix, so I propose the following workaround:
Rename all the tags integrations/google-vertex-vXXX to integrations/google_vertex-vXXX
Rename all the tags integrations/instructor-embedders-vXXX to integrations/instructor_embedders-vXXX
Push the new tags, CI will attempt to rebuild the packages but will fail because the path google_vertex doesn't exist
Describe the bug
We recently moved (#103) package versioning from hardcoded strings in the
__about__.py
file to git tags usingsetuptools_scm
throughhatch
.Problem is
setuptools_scm
splits the tag using-
and having hyphens in the string prepending the version in the tag name, for exampleintegrations/google_vertex-v0.0.1
confuses the plugin.There isn't an easy fix, so I propose the following workaround:
integrations/google-vertex-vXXX
tointegrations/google_vertex-vXXX
integrations/instructor-embedders-vXXX
tointegrations/instructor_embedders-vXXX
google_vertex
doesn't existintegrations/google-vertex
tointegrations/google_vertex
chore: replace - with _ #114integrations/instructor-embedders
tointegrations/instructor_embedders
chore: replace - with _ #114The workaround won't affect the name of the package on PyPI, nor the import paths.
To Reproduce
Checkout the latest tag for google vertex and call
hatch version
Describe your environment (please complete the following information):
The text was updated successfully, but these errors were encountered: