Skip to content

Commit

Permalink
Upload to git before uploading to PyPI (#359)
Browse files Browse the repository at this point in the history
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
3 people authored Dec 1, 2020
1 parent 5037e4c commit fc86d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ def release(session):
# Check and upload distribution files.
session.run("twine", "check", *files)

# Upload the distribution.
session.run("twine", "upload", *files)

# Push the commits and tag.
# NOTE: The following fails if pushing to the branch is not allowed. This can
# happen on GitHub, if the master branch is protected, there are required
# CI checks and "Include administrators" is enabled on the protection.
session.run("git", "push", "upstream", "master", release_version, external=True)

# Upload the distribution.
session.run("twine", "upload", *files)


# -----------------------------------------------------------------------------
# Helpers
Expand Down

0 comments on commit fc86d7e

Please sign in to comment.