mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
python3: Use hash-checking mode when installing host pip packages
In hash-checking mode[1], pip will verify downloaded package archives (source tarballs in our case) against known SHA256 hashes before installing the packages. As a consequence, this requires the use of requirements files[2] and pinning packages to known versions. The syntax for package Makefiles has changed slightly; HOST_PYTHON3_PACKAGE_BUILD_DEPENDS no longer accepts requirement specifiers like "foo>=1.0", only requirements file names (which are the same as package names in the most common case). This also updates affected packages, in particular: * python-zipp: "setuptools_scm[toml]" has been split into "setuptools-scm toml" to reuse the requirements file for setuptools-scm (the extra depends installed by "setuptools_scm[toml]" is toml). * python-pycparser: This previously used ply 3.10, whereas the requirements file will now install 3.11. [1]: https://pip.pypa.io/en/stable/reference/pip_install/#hash-checking-mode [2]: https://pip.pypa.io/en/stable/user_guide/#requirements-files Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
1
lang/python/host-pip-requirements/Cython.txt
Normal file
1
lang/python/host-pip-requirements/Cython.txt
Normal file
@@ -0,0 +1 @@
|
||||
Cython==0.29.21 --hash=sha256:e57acb89bd55943c8d8bf813763d20b9099cc7165c0f16b707631a7654be9cad
|
||||
2
lang/python/host-pip-requirements/Django-1.11.txt
Normal file
2
lang/python/host-pip-requirements/Django-1.11.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Django==1.11.29 --hash=sha256:4200aefb6678019a0acf0005cd14cfce3a5e6b9b90d06145fcdd2e474ad4329c
|
||||
pytz==2020.1 --hash=sha256:c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048
|
||||
2
lang/python/host-pip-requirements/cffi.txt
Normal file
2
lang/python/host-pip-requirements/cffi.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
cffi==1.14.2 --hash=sha256:ae8f34d50af2c2154035984b8b5fc5d9ed63f32fe615646ab435b05b132ca91b
|
||||
pycparser==2.20 --hash=sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0
|
||||
1
lang/python/host-pip-requirements/ply.txt
Normal file
1
lang/python/host-pip-requirements/ply.txt
Normal file
@@ -0,0 +1 @@
|
||||
ply==3.11 --hash=sha256:00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3
|
||||
1
lang/python/host-pip-requirements/setuptools-scm.txt
Normal file
1
lang/python/host-pip-requirements/setuptools-scm.txt
Normal file
@@ -0,0 +1 @@
|
||||
setuptools-scm==4.1.2 --hash=sha256:a8994582e716ec690f33fec70cca0f85bd23ec974e3f783233e4879090a7faa8
|
||||
1
lang/python/host-pip-requirements/toml.txt
Normal file
1
lang/python/host-pip-requirements/toml.txt
Normal file
@@ -0,0 +1 @@
|
||||
toml==0.10.1 --hash=sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f
|
||||
Reference in New Issue
Block a user