Commit Graph

2174 Commits

Author SHA1 Message Date
Tianling Shen
9745a8f925 Merge pull request #21295 from jefferyto/passlib-1.7.4-openwrt-23.05
[openwrt-23.05] passlib: Update to 1.7.4, rename source package
2023-06-07 21:53:23 +08:00
Tianling Shen
dc5f021f36 Merge pull request #21288 from jefferyto/python-typing-extensions-4.6.3-openwrt-23.05
[openwrt-23.05] python-typing-extensions: Update to 4.6.3
2023-06-07 21:53:12 +08:00
Tianling Shen
69b00c1f30 Merge pull request #21287 from jefferyto/python-poetry-core-1.6.1-openwrt-23.05
[openwrt-23.05] python-poetry-core: Update to 1.6.1
2023-06-07 21:52:57 +08:00
Tianling Shen
2ba8a0c4e2 Merge pull request #21286 from jefferyto/python-hatchling-1.17.1-openwrt-23.05
[openwrt-23.05] python-hatchling: Update to 1.17.1
2023-06-07 21:52:49 +08:00
Jeffery To
347e07e4a8 passlib: Update to 1.7.4, rename source package
This renames the source package from passlib to python-passlib to match
other Python packages.

This also updates the package URL and list of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5b965e4d79)
2023-06-07 13:38:59 +08:00
Tianling Shen
002cea57c0 python3-bottle: Update to 0.12.25
Fix build with Python 3.11

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a6980eb933)
2023-06-06 13:44:05 +02:00
Tianling Shen
050ed92068 python-yarl: Update to 1.9.2
Fix build with Python 3.11.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 0e6fe09a34)
2023-06-06 13:43:43 +02:00
Jeffery To
6e94390c0b python-typing-extensions: Update to 4.6.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b638f3f8c0)
2023-06-06 13:26:38 +08:00
Jeffery To
66019fd42f python-poetry-core: Update to 1.6.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit ac59c69237)
2023-06-06 13:23:29 +08:00
Jeffery To
234049b6e6 python-hatchling: Update to 1.17.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0aed79d2a7)
2023-06-06 13:21:08 +08:00
Alexandru Ardelean
1abc7665d8 numpy: bump version to 1.24.3
Need to also fix build for GCC 13 + musl.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 8f176e30f3)
2023-06-05 19:38:41 +08:00
Jeffery To
e9dda77cc4 micropython-mpremote: Add new package
From the README:

This CLI tool provides an integrated set of utilities to remotely
interact with and automate a MicroPython device over a serial
connection.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit a83dcf0d5c)
2023-06-04 01:00:22 +08:00
Jeffery To
b4ae1c5dd0 python-hatch-requirements-txt: Add new host-only package
From the README:

Hatchling plugin to read project dependencies from requirements.txt

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9071deb1c7)
2023-06-04 01:00:22 +08:00
Jeffery To
761ba28159 micropython-lib: Update to master, split target package
The package has been reworked to install the same files that are
available to be downloaded/installed by mip, the package manager new to
MicroPython 1.20.0.

This also splits the original target package into four:

* micropython-lib
  * Includes packages common to all MicroPython ports (python-stdlib,
    python-ecosys, micropython)
  * Contains mpy bytecode files

* micropython-lib-src
  * Includes packages common to all MicroPython ports (python-stdlib,
    python-ecosys, micropython)
  * Contains py source files

* micropython-lib-unix
  * Includes packages specific to the MicroPython Unix port (unix-ffi)
  * Contains mpy bytecode files
  * Installs a specific launcher (micropython-unix) that adds the Unix
    package directory into MicroPython's library path

* micropython-lib-unix-src
  * Includes packages specific to the MicroPython Unix port (unix-ffi)
  * Contains py source files

This also updates the package license, title, and description.

Patches:

* 001-build-unix-ffi.patch

  This enables the repo build script to also build the Unix-specific
  packages. Not sure if upstream is open to accepting this since the
  Unix-specific packages don't fit well into the existing package
  distribution mechanism.

* 002-add-unix-ffi-os-path.patch and 003-add-unix-ffi-uu.patch

  These fix instances where the unix-ffi version of the os package is
  overridden by the python-stdlib version. These have been submitted to
  upstream: https://github.com/micropython/micropython-lib/pull/672

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9390bd0262)
2023-06-04 01:00:21 +08:00
Jeffery To
ea58dfac60 micropython: Update to 1.20.0, refresh/rework patches
Patches 000-Makefile-no-errors.patch and 020-mpy-cross-fix-flags.patch
are no longer necessary.

This also adds a Build/InstallDev recipe to install files necessary for
micropython-lib.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit a4ae38494f)
2023-06-04 01:00:21 +08:00
Tianling Shen
d1bb684fb3 Merge pull request #21235 from jefferyto/python-gmpy2-2.1.5-openwrt-23.05
[openwrt-23.05] python-gmpy2: Update to 2.1.5; add new dependencies
2023-06-01 16:01:34 +08:00
Tianling Shen
96c34d7881 pyodbc: Update to 4.0.39
* Fixed build with Python 3.11
* Removed unnecessary build depends

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit f02f3ee8c7)
2023-06-01 14:51:53 +08:00
Tianling Shen
356d32a5ad python-greenlet: Update to 2.0.2
Fix build with Python 3.11.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit e399e1ce2c)
2023-06-01 14:51:34 +08:00
Tianling Shen
aff1ae8b6c Merge pull request #21244 from jefferyto/werkzeug-2.3.4-openwrt-23.05
[openwrt-23.05] Werkzeug: Update to 2.3.4, rename source package
2023-06-01 12:14:17 +08:00
Tianling Shen
c41a508e33 Merge pull request #21243 from jefferyto/markupsafe-2.1.2-openwrt-23.05
[openwrt-23.05] MarkupSafe: Update to 2.1.2, rename source package
2023-06-01 12:14:05 +08:00
Tianling Shen
4616233eda Merge pull request #21242 from jefferyto/jinja2-3.1.2-openwrt-23.05
[openwrt-23.05] Jinja2: Update to 3.1.2, rename source package
2023-06-01 12:13:41 +08:00
Tianling Shen
54f976bea7 Merge pull request #21241 from jefferyto/click-log-0.4.0-openwrt-23.05
[openwrt-23.05] click-log: Update to 0.4.0, rename source package
2023-06-01 12:13:30 +08:00
Tianling Shen
c9b7d29efb Merge pull request #21240 from jefferyto/bcrypt-3.2.2-openwrt-23.05
[openwrt-23.05] bcrypt: Update to 3.2.2, rename source package
2023-06-01 12:12:53 +08:00
Tianling Shen
656ce7c10e Merge pull request #21239 from jefferyto/python-typing-extensions-4.6.2-openwrt-23.05
[openwrt-23.05] python-typing-extensions: Update to 4.6.2
2023-06-01 12:12:34 +08:00
Jeffery To
5f0c4ad0a4 python-trove-classifiers: Update to 2023.5.24
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 17007845bc)
2023-06-01 04:18:19 +03:00
Jeffery To
15d89f3c34 python-hatch-fancy-pypi-readme: Update to 23.1.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9f8a5fb25b)
2023-06-01 04:18:04 +03:00
Jeffery To
fdd6334160 python-cython: Update to 0.29.35
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f47802949c)
2023-06-01 04:17:47 +03:00
Jeffery To
aad1936885 Werkzeug: Update to 2.3.4, rename source package
This renames the source package from Werkzeug to python-werkzeug to
match other Python packages.

This also updates the package title, description, and list of
dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 574d43fca6)
2023-05-31 22:37:22 +08:00
Jeffery To
cb346ffe84 MarkupSafe: Update to 2.1.2, rename source package
This renames the source package from MarkupSafe to python-markupsafe to
match other Python packages.

This also updates the package title and description.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5602cc85d3)
2023-05-31 22:34:44 +08:00
Jeffery To
92b307a302 Jinja2: Update to 3.1.2, rename source package
This renames the source package from Jinja2 to python-jinja2 to match
other Python packages.

This also updates the package license files, title, and list of
dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 572387f0cb)
2023-05-31 22:32:04 +08:00
Jeffery To
2c15e8a290 click-log: Update to 0.4.0, rename source package
This renames the source package from click-log to python-click-log to
match other Python packages.

This also updates the package to download from PyPI, and updates the
package title, URL, and dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 67a854aee2)
2023-05-31 22:29:18 +08:00
Jeffery To
ee5c9e2073 bcrypt: Update to 3.2.2, rename source package
This is the last released version before bcrypt's Rust rewrite; this
package can be further updated after the OpenWrt Rust toolchain has
stablized.

This also renames the source package from bcrypt to python-bcrypt to
match other Python packages, and updates the list of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 3def783d3c)
2023-05-31 22:26:33 +08:00
Jeffery To
b31dcee0bf python-typing-extensions: Update to 4.6.2
This also updates the SPDX license identifier, title, description and
URL for the package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f45f067f3f)
2023-05-31 22:22:49 +08:00
Jeffery To
20d295b993 python-gmpy2: Update to 2.1.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit a7d33e9e3a)
2023-05-31 22:11:35 +08:00
Jeffery To
1a3df95f7e python-packages: Replace --global-option with --build-option
setuptools 64.0.0 deprecated the use of --global-option to pass build
parameters[1]. This replaces the use of --global-option with
--build-option.

[1]: https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b76fa19b26)
2023-05-28 15:47:24 +03:00
Jeffery To
d6cc46e2c2 python3: Split setuptools into separate source package
Packaging setuptools from a separate source package allows it to stay
updated with upstream.

Host setuptools will remain installed as part of python3. Host
setuptools is used in a much more controlled way and so is less critical
for it to track upstream.

setuptools was in a separate source package that was removed in
a53d0c5a403d1669e2cf6c59c2be6a9d3ed633a0; this work is not based on that
earlier package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b4975f8bbb)
2023-05-28 15:47:08 +03:00
Jeffery To
b997e1bb69 python3: Split pip into separate source package
Packaging pip from a separate source package allows it to stay updated
with upstream.

Host pip will remain installed as part of python3. Host pip is used in a
much more controlled way and so is less critical for it to track
upstream.

This also removes the python-pip-conf package and installs the pip.conf
file as part of python3-pip.

The patch 003-disable-pip-version-check.patch is originally from Debian:
bb079efb8c/debian/patches/disable-pip-version-check.patch

pip was in a separate source package that was removed in
a53d0c5a403d1669e2cf6c59c2be6a9d3ed633a0; this work is not based on that
earlier package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit eee273507b)
2023-05-28 15:47:08 +03:00
Jeffery To
28b70d4fa9 python3: Split venv module from python3-light into separate package
This adds a new subpackage for the venv module. This also moves the
ensurepip module from python3-pip into python3-venv, as ensurepip is not
necessary for pip but often used for venv.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit d53475ac21)
2023-05-28 15:47:08 +03:00
Jeffery To
1ca7a53fdb python-tomli: Remove package
Python added tomli to its standard library in 3.11. Now that Python in
the packages feed has been updated to 3.11, the separate tomli package
is no longer necessary.

This removes python-tomli and updates all dependant packages, removing
python-tomli from their lists of dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0509d460c8)
2023-05-27 16:51:02 +08:00
Jeffery To
550f3f07a4 python-packages: Remove __PYVENV_LAUNCHER__ environment variable
Setting __PYVENV_LAUNCHER__ for Python package builds was added in
a91a992abb, but neither the commit message
nor the pull request[1] explain its purpose in detail.

My guess is this was done to set the shebang for installed Python
scripts. We now have a Makefile recipe to set the shebang, so it would
be unnecessary to set this variable for this purpose.

It appears that Python 3.11 has changed the handling of this (internal)
environment variable, and setting it appears to be causing build errors
for all Python packages.

This removes setting __PYVENV_LAUNCHER__ for Python package builds.

[1]: https://github.com/openwrt/packages/pull/525

Fixes: https://github.com/openwrt/packages/issues/21162
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 9e95dff9ac)
2023-05-26 17:00:48 +08:00
Tianling Shen
dc9a678e9a Merge pull request #21173 from jefferyto/python-poetry-core-1.6.0-openwrt-23.05
[openwrt-23.05] python-poetry-core: Update to 1.6.0
2023-05-26 10:21:51 +08:00
Jeffery To
f55a74a3ca python-poetry-core: Update to 1.6.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 626c7efda9)
2023-05-26 01:40:24 +08:00
Jeffery To
f619e26c13 python3: Fix unnecessary linking with libbsd
configure will try to link with libbsd for the flock function, even when
flock is available without it.

Fixes: https://github.com/openwrt/packages/issues/21161
Fixes: 2445fe9fb2 ("python3: Update to 3.11.3, refresh/redo patches")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 60bf01cb60)
2023-05-25 23:27:11 +08:00
Tianling Shen
26f502b9f6 Merge pull request #21154 from jefferyto/python-flit-core-3.9.0-openwrt-23.05
[openwrt-23.05] python-flit-core: Update to 3.9.0
2023-05-25 14:55:04 +08:00
Tianling Shen
db89f065fe Merge pull request #21153 from jefferyto/borgbackup-move-section-openwrt-23.05
[openwrt-23.05] borgbackup: Move from lang/python into utils
2023-05-25 14:54:51 +08:00
Jeffery To
cd8c13d822 python-flit-core: Update to 3.9.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b8340d3ca)
2023-05-24 12:44:06 +08:00
Jeffery To
81ecb5f503 borgbackup: Move from lang/python into utils
lang/python is meant for Python libraries and other packages closely
related to the Python language. It makes more sense for borgbackup to be
in utils instead.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5059cfccae)
2023-05-24 12:41:20 +08:00
Jeffery To
24aa47eb2b python3: Update to 3.11.3, refresh/redo patches
* Removed patches:

  * 001-enable-zlib.patch: zlib module should be enabled automatically

  * 007-distutils-do-not-adjust-path.patch: Not necessary since we
    process shebang lines for all scripts (in python3-package.mk)

  * 030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch:
    Already merged

* Move configure vars from config.site back into Makefile

  Centralizing all build information into one file makes it easier to
  maintain

* No longer set ac_cv_header_uuid_h=yes as configure should detect
  libuuid

* Order configure args by enable-/disable-/with-/without-, then
  alphabetically

* Set ac_cv_working_openssl_hashlib=yes for host configure to bypass the
  OpenSSL API tests with LibreSSL

* Use the default Host/Compile recipe instead of picking out specific
  targets to make

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 2445fe9fb2)
2023-05-24 12:34:32 +08:00
Jeffery To
cc000a1a2c python3: Fix hashlib module not compiled for host Python
026-openssl-feature-flags.patch and
028-host-python-support-ssl-with-libressl.patch were removed in
4ecd9d67e9 to fix the ssl module after
libressl was upgraded to 3.7.0[1].

However, the cause of the ssl module build failure was only
028-host-python-support-ssl-with-libressl.patch.

Removing 026-openssl-feature-flags.patch caused a build failure for the
hashlib module.

This restores 026-openssl-feature-flags.patch with an updated version of
the patch from OpenBSD[2].

[1]: https://github.com/openwrt/packages/issues/20107
[2]: 26a04435bf/lang/python/3.10/patches/patch-Modules__hashopenssl_c

Fixes: 4ecd9d67e9 ("python3: fix ssl support by removing libressl patches")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 02eb5c100c)
2023-05-24 12:34:18 +08:00
Jeffery To
0358c18d02 python3: Fix uuid module not compiled for host Python
This adds $(STAGING_DIR_HOST)/include/e2fsprogs to HOST_CFLAGS and
HOST_CPPFLAGS so that configure can find uuid/uuid.h.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 44fb4927f1)
2023-05-24 12:34:07 +08:00