-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): minimum needed to run twine to publish (#1021)
* fix(release): minimum needed to run twine to publish Earlier attempts to publish 0.17 have failed mysteriously at the pypa/gh-action-pypi-publish step. This PR replaces that with a command that I can test locally. TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-*** bazel run --stamp --embed_label=1.2.4 //python/runfiles:wheel.publish -- --repository testpypi Uploading bazel_runfiles-1.2.4-py3-none-any.whl 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 kB • 00:00 • 27.3 MB/s View at: https://test.pypi.org/project/bazel-runfiles/1.2.4/ * fixup! fix(release): minimum needed to run twine to publish * refactor: move twine deps to its own folder * Update WORKSPACE Co-authored-by: Thulio Ferraz Assis <[email protected]> * Update python/runfiles/BUILD.bazel Co-authored-by: Thulio Ferraz Assis <[email protected]> * show CI failure * remove actual publish for this PR * chore: exclude requirements test on RBE * Add darwin requirements --------- Co-authored-by: Thulio Ferraz Assis <[email protected]>
- Loading branch information
Showing
10 changed files
with
753 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
docs/*.md linguist-generated=true | ||
tools/publish/*.txt linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("//python:pip.bzl", "compile_pip_requirements") | ||
|
||
compile_pip_requirements( | ||
name = "requirements", | ||
requirements_darwin = "requirements_darwin.txt", | ||
requirements_windows = "requirements_windows.txt", | ||
# This fails on RBE right now, and we don't need coverage there: | ||
# WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) | ||
# after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3784e08110>: | ||
# Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/twine/ | ||
# | ||
# ERROR: Could not find a version that satisfies the requirement twine==4.0.2 | ||
# (from -r tools/publish/requirements.in (line 1)) (from versions: none) | ||
tags = ["no-remote-exec"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Publish to pypi with twine | ||
|
||
https://packaging.python.org/en/latest/tutorials/packaging-projects/ indicates that the twine | ||
package is used to publish wheels to pypi. | ||
|
||
See more: https://twine.readthedocs.io/en/stable/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
twine |
Oops, something went wrong.