From e7f60b17ecaf9ffd6f5eea7d62ec844747c4544e Mon Sep 17 00:00:00 2001 From: lixiang_yewu Date: Mon, 15 Jan 2024 01:25:41 +0000 Subject: [PATCH] update pyporter/pyporter.py. Signed-off-by: lixiang_yewu update pyporter/pyporter.py. Signed-off-by: lixiang_yewu --- pyporter/pyporter.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pyporter/pyporter.py b/pyporter/pyporter.py index 41425c4..2751ddf 100755 --- a/pyporter/pyporter.py +++ b/pyporter/pyporter.py @@ -80,7 +80,18 @@ class PyPorter: def do_init(self, arch, pkg, ver=""): """ - receive json from pypi.org + Initialize the PyPorter instance by fetching metadata from pypi.org. + + Args: + arch (str): The architecture to check if the module is architecture dependent. + pkg (str): The name of the Python module. + ver (str): The version of the Python module (default is "latest"). + + Raises: + SystemExit: If the specified package or version does not exist on pypi.org. + + Returns: + None """ if not ver: ver = "latest" -- Gitee