Commit Graph

2206 Commits

Author SHA1 Message Date
Tianling Shen
77583c7dbf Merge pull request #22888 from jefferyto/python-3.11.7-openwrt-23.05
[openwrt-23.05] python3: Update to 3.11.7, refresh patches
2023-12-16 17:20:21 +08:00
Jeffery To
40a730516c python3: Update to 3.11.7, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit d4f5759190)
2023-12-14 01:36:41 +08:00
Quintin Hill
c82697da69 python3-ble2mqtt: bump version to 0.2.1
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
(cherry picked from commit 0937af539d)
2023-12-11 23:26:57 +00:00
Quintin Hill
bb3a340200 python3-bleak: bump version to 0.21.1
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
(cherry picked from commit 64fa106b07)
2023-12-11 23:26:54 +00:00
Quintin Hill
5c9de3c0a2 python3-dbus-fast: bump version to 2.20.0
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
(cherry picked from commit ca2171c005)
2023-12-11 23:26:46 +00:00
Jeffery To
4fa89ac516 python-cryptography: Update to 41.0.7
41.0.6 included a fix for CVE-2023-49083 (loading certificates from a
PKCS#7 bundle could lead to a null-pointer-dereference and segfault).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5f829ad162)
2023-12-08 22:44:26 +08:00
Jeffery To
672a209367 python-cryptography: Update to 41.0.5
This also adds a CPE ID for the package and updates the test.sh script
to use an assert.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit c4a223ed87)
2023-12-08 22:44:26 +08:00
Eneas U de Queiroz
f9b6c2c5de pymysql: add meta-package for sha256 support
Replace the PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT option, which is
causing circular dependencies, with a meta-package that installs both
python3-pymysql and python3-cryptography.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 79b173a0c5)
2023-11-16 08:44:13 +02:00
Jeffery To
66774c3b30 pyodbc: Fix segmentation fault
4.0.36 included a change to decimal parsing[1] that requires the decimal
module. Trying to load the pyodbc module without python3-decimal
installed would lead to a segmentation fault.

This adds python3-decimal as a dependency.

This also adds python3-uuid as a dependency as the module can accept and
return uuid objects[2].

[1]: 6b107a2bca
[2]: 2ad7a9ced7

Fixes: f02f3ee8c7 ("pyodbc: Update to 4.0.39")

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 668a0f9dd8)
2023-11-02 11:23:38 +01:00
Jeffery To
f218d96e14 python3: Fix building C extensions with setuptools
setuptools provides a local copy of distutils and when building a C
extension, this distutils will add the target LIBDIR (/usr/lib) to the
list of library paths.

If the build system has a libpython3.11.so in /usr/lib, then the linker
will try to link to this shared library and fail.

This adapts 008-distutils-use-python-sysroot.patch for host setuptools
to add the correct library directory.

Fixes: https://github.com/openwrt/packages/issues/22330

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 624fb95561)
2023-11-02 00:40:44 +08:00
Christian Marangi
a566154dff micropython-lib: move to PCRE2
Add pending patch converting the package to PCRE2.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit d191c3d0c4)
2023-10-23 09:59:50 +02:00
Tianling Shen
416a1b6cdd Merge pull request #22375 from jefferyto/python-zope-interface-6.1-openwrt-23.05
[openwrt-23.05] python-zope-interface: Update to 6.1, refresh patch
2023-10-16 09:01:32 +08:00
Jeffery To
6544ab791e python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in
https://github.com/PyO3/setuptools-rust/pull/364), to read the profile
to pass to cargo from an environment variable.

This also updates the Python include files to set the environment
variable based on values from rust-values.mk.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 29ca9797a6)
2023-10-12 14:04:00 +08:00
Jeffery To
185f27789c rust: Consolidate cargo environment variables
This consolidates all environment variables for cargo into:

* CARGO_HOST_CONFIG_VARS / CARGO_PKG_CONFIG_VARS

  These contain all cargo-specific environment variables, i.e. without
  "common" variables like CC.

* CARGO_HOST_VARS / CARGO_PKG_VARS (renamed from CARGO_VARS)

  These contain all environment variables to be passed to cargo.

This also:

* Set the CARGO_BUILD_TARGET environment variable instead of using the
  --target command-line option

* Update Python include files to use CARGO_HOST_CONFIG_VARS /
  CARGO_PKG_CONFIG_VARS

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9db7284d58)
2023-10-12 14:00:30 +08:00
Jeffery To
c3247d59e8 rust: Install to $(STAGING_DIR)/host
This allows rustc/cargo/etc to be called without having to set PATH, as
$(STAGING_DIR)/host/bin is already in PATH.

This also fixes CARGO_HOME not being set during Host/Configure and
Host/Compile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 49aaf19c65)
2023-10-12 13:59:53 +08:00
Jeffery To
12be20d0c8 python-zope-interface: Update to 6.1, refresh patch
This also updates the list of dependencies and adds a test.sh script for
the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 7e8f7b28d7)
2023-10-12 13:53:32 +08:00
Jeffery To
bec2e7fc81 python3: Update to 3.11.6, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 2aba43afe9)
2023-10-11 09:10:19 +02:00
Josef Schlehofer
fb9265747b Merge pull request #22293 from jefferyto/python-charset-normalizer-3.3.0-openwrt-23.05
[openwrt-23.05] python-charset-normalizer: Update to 3.3.0
2023-10-10 10:08:19 +02:00
Josef Schlehofer
c6d5e3e96f Merge pull request #22326 from jefferyto/python-twisted-23.8.0-openwrt-23.05
[openwrt-23.05] python-twisted: Update to 23.8.0, rework patches
2023-10-08 09:00:20 +02:00
Eneas U de Queiroz
15cfd52f14 python3: avoid unnecessary rebuilds
Move the order in which BuildPackage is called, so that the libpython
package is built ahead of the module packages, to avoid forcing a
clean-build of the package when 'make package/python3/compile' is called
a second time without changes.

The library must be built first, so that when the buildsystem checks for
ABI version changes using libpython3.version, its timestamp should be
older than the dependent package's STAMP_PREPARED file.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit c230d7bd7f)
2023-10-07 19:33:08 +02:00
Jeffery To
9f6eb89ea0 python-twisted: Update to 23.8.0, rework patches
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 00841f9873)
2023-10-07 19:52:32 +08:00
Jeffery To
c5f6b62fdf python-cffi: Update to 1.16.0
This includes a patch to unpin the version of setuptools required for
build; the required version is newer than the version bundled with
Python 3.11. This patch should not be necessary when Python 3.12 is
available.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit dd5af62695)
2023-10-04 17:05:27 +02:00
Jeffery To
4c4fa3cd21 python-packaging: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 78bcdd0fd1)
2023-10-04 17:05:01 +02:00
Jeffery To
8620abe6ad python-bcrypt: Update to 4.0.1, add myself as maintainer
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b3da46777)
2023-10-03 21:28:46 -07:00
Jeffery To
36a473bf52 python-pyopenssl: Update to 23.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit bb278a015c)
2023-10-03 21:28:36 -07:00
Jeffery To
71f226e032 python-charset-normalizer: Update to 3.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 85540346fe)
2023-10-04 11:13:44 +08:00
Jeffery To
88ef5d0ba4 python-typing-extensions: Update to 4.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit cb8648679b)
2023-10-02 19:15:29 +08:00
Jeffery To
66958cef9f python-trove-classifiers: Update to 2023.9.19
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 423235b40a)
2023-10-02 19:15:23 +08:00
Jeffery To
191d367d1b python-setuptools: Update to 68.2.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit c12e4e873d)
2023-10-02 19:15:14 +08:00
Jeffery To
4ed41a0cbe python-cryptography: Update to 41.0.4
This includes a patch to update the version of ouroboros (Rust crate)
used, to fix RUSTSEC-2023-0042[1]. Upstream has switch from ouroboros to
self_cell so this patch should only be necessary for cryptography 41.

[1]: https://rustsec.org/advisories/RUSTSEC-2023-0042.html

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9fdff3ea94)
2023-10-02 19:15:02 +08:00
Jeffery To
402ebe84f8 python: Add environment variables to build Rust extensions
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 4d43be8549)
2023-10-02 19:15:02 +08:00
Jeffery To
f78e60fa8d python-setuptools-rust: Add new host-only package
From the README:

setuptools-rust is a plugin for setuptools to build Rust Python
extensions implemented with PyO3 or rust-cpython.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f467f47f0c)
2023-10-02 19:15:02 +08:00
Jeffery To
882ce5ddf9 python-semantic-version: Add new host-only package
From the README:

This small python library provides a few tools to handle SemVer in
Python. It follows strictly the 2.0.0 version of the SemVer scheme.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b078e01f0c)
2023-10-02 19:15:02 +08:00
Jeffery To
032b5506c7 python3-networkx: Update to 3.1, rename source package
This renames the source package to python-networkx to match other Python
packages.

This also updates the list of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 77cebb0d03)
2023-09-27 16:40:32 -07:00
Jeffery To
76e87af99d python-bidict: Update to 0.22.1
The package no longer has a build dependency on setuptools-scm.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0434413108)
2023-09-27 16:37:43 -07:00
Alexandru Ardelean
5f8895386e django: bump to version 4.2.5
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 331b5f75f4)
2023-09-25 09:40:10 +03:00
Jeffery To
7512e421d2 python-build: Update to 1.0.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 21eb9b7456)
2023-09-17 07:38:31 +02:00
Jeffery To
f0bb5ce09a python-build: Update to 1.0.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit ba17298db5)
2023-09-17 07:38:31 +02:00
Jeffery To
f33c8977a0 python-setuptools: Update to 68.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit e309346104)
2023-09-17 07:38:22 +02:00
Josef Schlehofer
51acc2633b treewide: change my no longer used email
Since February 2023, I decided to no longer work with Turris, I mean CZ.NIC company
due to some reasons how the development goes and since that day my work address is not
available and not sure if there is some redirect to someone else, but if anyone wants to
reach me, use my email address, where they can find me.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit 1e1b2051db)
2023-09-16 12:24:30 +02:00
Jeffery To
e05cf558ff python3: Update to 3.11.5, refresh patches
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed
sockets).

This also:

* Remove 027-install-python3-symlink-after-stdlib.patch

  This was merged upstream in
  https://github.com/python/cpython/pull/104693.

* Remove fix for unnecessary linking with libbsd
  (60bf01cb60)

  This was fixed upstream in
  https://github.com/python/cpython/pull/105236.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit e42c845039)
2023-09-14 15:45:05 +02:00
Jeffery To
f22b83f670 python-crcmod: Fix package section
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8e5ca3fc3e)
2023-09-14 21:37:15 +08:00
Jeffery To
f2a59c9163 python-pyserial: Update to 3.5, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 4f3a0fe623)
2023-09-14 21:37:09 +08:00
Jeffery To
1d3737dfc7 python-cryptodomex: Update to 3.18.0, refresh patches
This also updates the list of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit a1b3595550)
2023-09-14 21:37:01 +08:00
Jeffery To
1e5785e169 python-cryptodome: Update to 3.18.0, refresh patches
This also updates the list of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 03f1f4b9bb)
2023-09-14 21:36:55 +08:00
Jeffery To
1c0e4fc274 ruamel-yaml: Update to 0.17.32, rename source package
This renames the source package to python-ruamel-yaml to match other
Python packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit fdff92f085)
2023-09-14 21:36:49 +08:00
Jeffery To
cedbb68a0b python-zipp: Update to 3.16.2, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 202140aeff)
2023-09-14 21:36:42 +08:00
Jeffery To
eb4ab356cb python-yaml: Update to 6.0.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 60315a6638)
2023-09-14 21:36:34 +08:00
Tianling Shen
12d65dece1 Merge pull request #22048 from jefferyto/python-platform-triplet-openwrt-23.05
[openwrt-23.05] python3: Restore platform triplet to paths
2023-09-12 10:52:17 +08:00
Jeffery To
b4aaffc0ec python-zeroconf: Update to 0.97.0, update list of dependencies
The package changed to the poetry-core build backend (and also requiring
python-cython/host).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8957d34d09)
2023-09-11 12:45:30 +02:00