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

Release sdist and wheel to PyPI under v0.2.1 #43

Closed
matthewfeickert opened this issue Oct 7, 2020 · 4 comments
Closed

Release sdist and wheel to PyPI under v0.2.1 #43

matthewfeickert opened this issue Oct 7, 2020 · 4 comments
Assignees

Comments

@matthewfeickert
Copy link
Collaborator

After PR #41 is in then we need to get pandamonium to v0.2.1 on PyPI. This is because before control was ceded to @dguest in Issue #26 of the PyPI namespace there already was a v0.2.0 release of the previous pandamonium. It is necessary to get past v0.2.0 on PyPI so the future releases will properly support both sdists and wheels on PyPI.

There are two ways to do this:

  1. The easy way of just using the bump2version workflow described in PR Preferences for CD workflow to publish to PyPI #36 to release a v0.2.0 to PyPI which will only successfully be able to upload a v0.2.0 wheel to PyPI as there was already an sdist at the release version, and then immediately afterwards release v0.2.1.

  2. Apply the attached patch 0001-Bump-version-0.1.0-0.2.0.patch.txt (that GitHub made me name .txt) with

$ git apply 0001-Bump-version-0.1.0-0.2.0.patch.txt

and then run bump2version with non-stagged changes

bump2version patch --allow-dirty

to go from v0.1.0 to v0.2.1.

I would advocate for option 1 as it is the easiest.

@matthewfeickert
Copy link
Collaborator Author

@matthewfeickert should also make an announcement on Issue #26 when this is done.

@matthewfeickert
Copy link
Collaborator Author

@dguest The workflow that I recommend in Option 1 would explicitly be:

First release v0.2.0

$ git checkout master && git pull
$ bump2version minor
$ git push origin master --tags
  • Then on GitHub:
    1. Go to releases: https://github.com/dguest/pandamonium/releases
    2. Click "Draft a new release"
    3. On the new page enter the tag you just pushed (e.g. v0.2.0) in the "Tag version" box and the "Release title" box (to make it easy unless you really want to get descriptive)
    4. Enter any release notes and click "Publish release"

Next release v0.2.1

$ git checkout master && git pull
$ bump2version patch
$ git push origin master --tags
  • Then on GitHub:
    1. Go to releases: https://github.com/dguest/pandamonium/releases
    2. Click "Draft a new release"
    3. On the new page enter the tag you just pushed (e.g. v0.2.1) in the "Tag version" box and the "Release title" box (to make it easy unless you really want to get descriptive)
    4. Enter any release notes and click "Publish release"

@matthewfeickert
Copy link
Collaborator Author

@dguest Now that PR #45 is in, this can move forward.

@matthewfeickert matthewfeickert self-assigned this Nov 13, 2020
@matthewfeickert
Copy link
Collaborator Author

This is done and pandamomium v0.2.1 is up on PyPI. Congratulations @dguest! 🚀

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

No branches or pull requests

1 participant