Functions | Variables
verify_python_release Namespace Reference

Functions

def _get_local_artifacts ()
 
def _get_md5_checksum (filename)
 
def _get_remote_artifacts_for_package (package, version)
 
def _get_remote_artifacts_for_packages (packages, version)
 
def _verify_release (version, packages)
 

Variables

list _DEFAULT_PACKAGES
 
 args = parser.parse_args()
 
 Artifact = collections.namedtuple("Artifact", ("filename", "checksum"))
 
 default
 
 nargs
 
 parser
 
 type
 

Function Documentation

◆ _get_local_artifacts()

def verify_python_release._get_local_artifacts ( )
private
Get a set of artifacts representing all files in the cwd.

Definition at line 61 of file verify_python_release.py.

◆ _get_md5_checksum()

def verify_python_release._get_md5_checksum (   filename)
private
Calculate the md5sum for a file.

Definition at line 52 of file verify_python_release.py.

◆ _get_remote_artifacts_for_package()

def verify_python_release._get_remote_artifacts_for_package (   package,
  version 
)
private
Get a list of artifacts based on PyPi's json metadata.

Note that this data will not updated immediately after upload. In my
experience, it has taken a minute on average to be fresh.

Definition at line 67 of file verify_python_release.py.

◆ _get_remote_artifacts_for_packages()

def verify_python_release._get_remote_artifacts_for_packages (   packages,
  version 
)
private

Definition at line 82 of file verify_python_release.py.

◆ _verify_release()

def verify_python_release._verify_release (   version,
  packages 
)
private
Compare the local artifacts to the packages uploaded to PyPI.

Definition at line 89 of file verify_python_release.py.

Variable Documentation

◆ _DEFAULT_PACKAGES

list verify_python_release._DEFAULT_PACKAGES
private
Initial value:
1 = [
2  "grpcio",
3  "grpcio-tools",
4  "grpcio-status",
5  "grpcio-health-checking",
6  "grpcio-reflection",
7  "grpcio-channelz",
8  "grpcio-testing",
9  "grpcio-admin",
10  "grpcio-csds",
11 ]

Definition at line 37 of file verify_python_release.py.

◆ args

verify_python_release.args = parser.parse_args()

Definition at line 118 of file verify_python_release.py.

◆ Artifact

verify_python_release.Artifact = collections.namedtuple("Artifact", ("filename", "checksum"))

Definition at line 49 of file verify_python_release.py.

◆ default

verify_python_release.default

Definition at line 117 of file verify_python_release.py.

◆ nargs

verify_python_release.nargs

Definition at line 115 of file verify_python_release.py.

◆ parser

verify_python_release.parser
Initial value:
1 = argparse.ArgumentParser(
2  "Verify a release. Run this from a directory containing only the"
3  "artifacts to be uploaded. Note that PyPI may take several minutes"
4  "after the upload to reflect the proper metadata.")

Definition at line 109 of file verify_python_release.py.

◆ type

verify_python_release.type

Definition at line 116 of file verify_python_release.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:56