Commit Graph

2196 Commits

Author SHA1 Message Date
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
Jeffery To
c876fc96be xmltodict: Update to 0.13.0, rename source package
This renames the source package to python-xmltodict 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 4872c32580)
2023-09-11 12:45:12 +02:00
Jeffery To
359a6d5117 python-websockets: Update to 11.0.3, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 98453732e2)
2023-09-08 19:01:04 +08:00
Jeffery To
e47c399cb4 python-wcwidth: Update to 0.2.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 3684df0dc3)
2023-09-08 19:00:23 +08:00
Jeffery To
ef04b76dc0 python-voluptuous-serialize: Update to 2.6.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 92d49899e4)
2023-09-08 19:00:11 +08:00
Quintin Hill
9da8115e8f python-ble2mqtt: update to 0.2.0
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
(cherry picked from commit bfe98f95b6)
2023-09-08 18:59:55 +08:00
Quintin Hill
fe702c9f11 python-dbus-fast: update to 1.94.1
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
(cherry picked from commit 689f0e0105)
2023-09-08 18:59:55 +08:00
Jeffery To
6bb9bdd5db python-voluptuous: Update to 0.13.1, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6c7a53bd7d)
2023-09-08 18:59:38 +08:00
Jeffery To
646800830b python-urllib3: Update to 2.0.4
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 1b2811920a)
2023-09-08 18:59:28 +08:00
Jeffery To
08b5fe210e python-ubus: Update to 0.1.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 99d8554bcd)
2023-09-08 18:59:15 +08:00
Jeffery To
ec9d61450e python3: Restore platform triplet to paths
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:

* C extensions (*.cpython-311-*.so)

* Build config data directory (/usr/lib/python3.11/config-3.11-*/)

* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)

Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0fe1011420)
2023-09-05 12:42:50 +08:00