Skip to content

Commit cdf981f

Browse files
authored
Doc: explaining how to verify provenance (#1331)
1 parent 9994c7b commit cdf981f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ pip install git+https://github.com/py-pdf/fpdf2.git@master
8383

8484
**Developement**: check the [dedicated documentation page](Development.md).
8585

86+
### Verifying provenance
87+
[`pypi-attestations`](https://pypi.org/project/pypi-attestations/) can be used to check the provenance of a `fpdf2-2.X.Y.tar.gz` or `fpdf2-2.X.Y-py2.py3-none-any.whl` package.
88+
89+
Example to check that the [`fpdf2-2.8.2.tar.gz` package on Pypi](https://pypi.org/project/fpdf2/#fpdf2-2.8.2.tar.gz) has been published from the [py-pdf/fpdf2](https://github.com/py-pdf/fpdf2) GitHub repository:
90+
91+
```shell
92+
$ pip install pypi-attestations
93+
94+
$ pypi-attestations verify pypi
95+
--repository https://github.com/py-pdf/fpdf2 https://files.pythonhosted.org/packages/eb/46/7aae9cb2584dcac217e662ab6d4670ef4e447b73d624b6210f7155322411/fpdf2-2.8.2-py2.py3-none-any.whl
96+
OK: fpdf2-2.8.2-py2.py3-none-any.whl
97+
```
98+
99+
The file URL can be retrieved from the [pypi.org/simple/fpdf2 page](https://pypi.org/simple/fpdf2/).
100+
86101
### Displaying deprecation warnings
87102
`DeprecationWarning`s are not displayed by Python by default.
88103

0 commit comments

Comments
 (0)