Skip to content

Commit 6c81780

Browse files
authored
Update help: PYPI_FILE can be a local file (#185)
* Update help: PYPI_FILE can be a local file * No need to download for local file
1 parent 61a00ce commit 6c81780

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pypi-attestations verify pypi --repository https://github.com/sigstore/sigstore-
164164
~/Downloads/sigstore-3.6.1-py3-none-any.whl
165165
```
166166
167-
This command downloads the artifact and its provenance from PyPI. The artifact
167+
This command downloads the artifact, if needed, and its provenance from PyPI. The artifact
168168
is then verified against the provenance, while also checking that the provenance's
169169
signing identity matches the repository specified by the user.
170170

src/pypi_attestations/_cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ def _parser() -> argparse.ArgumentParser:
150150
"distribution_file",
151151
metavar="PYPI_FILE",
152152
type=str,
153-
help="PyPI file to verify, can be either: (1) pypi:$FILE_NAME (e.g. "
154-
"pypi:sampleproject-1.0.0.tar.gz) or (2) A direct URL to files.pythonhosted.org",
153+
help="PyPI file to verify, can be: "
154+
"(1) a path to a local file, "
155+
"(2) pypi:$FILE_NAME (e.g. pypi:sampleproject-1.0.0.tar.gz) or "
156+
"(3) A direct URL to files.pythonhosted.org",
155157
)
156158

157159
verify_pypi_command.add_argument(

0 commit comments

Comments
 (0)