Skip to content

fix: package version excludes local version scheme#9

Merged
gforsyth merged 1 commit intosubstrait-io:mainfrom
danepitkin:danepitkin/fix-dynamic-version
May 30, 2023
Merged

fix: package version excludes local version scheme#9
gforsyth merged 1 commit intosubstrait-io:mainfrom
danepitkin:danepitkin/fix-dynamic-version

Conversation

@danepitkin
Copy link
Copy Markdown
Contributor

No description provided.

@danepitkin
Copy link
Copy Markdown
Contributor Author

The version now defaults to 0.1.dev4 instead of 0.1.dev4+g2e6f6a5.

Copy link
Copy Markdown
Member

@gforsyth gforsyth left a comment

Choose a reason for hiding this comment

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

Thanks @danepitkin ! Let's try this out.

@gforsyth gforsyth merged commit 47919e5 into substrait-io:main May 30, 2023
@gforsyth
Copy link
Copy Markdown
Member

gforsyth commented May 30, 2023

that did it!
https://test.pypi.org/project/substrait/0.1.dev1/

@danepitkin
Copy link
Copy Markdown
Contributor Author

Woohoo! I'm going to tag main with v0.1.0 and see what happens

@danepitkin
Copy link
Copy Markdown
Contributor Author

I forgot I don't have committer access. @gforsyth could you try git tag v0.1.0 && git push upstream v0.1.0?

@jorisvandenbossche
Copy link
Copy Markdown

FWIW, I think it is actually fine to keep how it was before: it's a "local version", which is fine for local development, in the idea that the only packages that get normally uploaded to PyPI are always tagged, and so will not have a local identifier in the version (that's how we use this in pandas, for example)

(anyway, doesn't really matter either way, and I suppose if we want to keep using testpypi, this is needed)

@danepitkin
Copy link
Copy Markdown
Contributor Author

FWIW, I think it is actually fine to keep how it was before: it's a "local version", which is fine for local development, in the idea that the only packages that get normally uploaded to PyPI are always tagged, and so will not have a local identifier in the version (that's how we use this in pandas, for example)

(anyway, doesn't really matter either way, and I suppose if we want to keep using testpypi, this is needed)

Hmm, I wonder if there is a way to enable only for PyPI uploads..

@gforsyth
Copy link
Copy Markdown
Member

I'd be more inclined to drop the testpypi uploads and re-enable the local version (after a few iterations). If we find that we are often releasing pre-releases, we can revisit that.

@gforsyth
Copy link
Copy Markdown
Member

gforsyth commented May 30, 2023

https://pypi.org/project/substrait/0.1.0/

https://github.com/substrait-io/substrait-python/releases/tag/v0.1.0

Looks like we're all wired up!

@jorisvandenbossche
Copy link
Copy Markdown

If we find that we are often releasing pre-releases, we can revisit that.

And pre-releases (if we tag with alpha or beta) can also go on the main PyPI

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.

3 participants