aboutsummaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAge
...
| * | python-hatchling: Update to 1.17.1Jeffery To2023-06-05
| |/ | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python3-bottle: Update to 0.12.25Tianling Shen2023-06-05
| | | | | | | | | | | | Fix build with Python 3.11 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* | python-yarl: Update to 1.9.2Tianling Shen2023-06-05
|/ | | | | | Fix build with Python 3.11. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* micropython-mpremote: Add new packageJeffery To2023-06-02
| | | | | | | | | | 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>
* python-hatch-requirements-txt: Add new host-only packageJeffery To2023-06-02
| | | | | | | | From the README: Hatchling plugin to read project dependencies from requirements.txt Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* micropython-lib: Update to master, split target packageJeffery To2023-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* micropython: Update to 1.20.0, refresh/rework patchesJeffery To2023-06-02
| | | | | | | | | | 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>
* Werkzeug: Update to 2.3.4, rename source packageJeffery To2023-05-30
| | | | | | | | | | 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>
* MarkupSafe: Update to 2.1.2, rename source packageJeffery To2023-05-30
| | | | | | | | | 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>
* Jinja2: Update to 3.1.2, rename source packageJeffery To2023-05-30
| | | | | | | | | | 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>
* click-log: Update to 0.4.0, rename source packageJeffery To2023-05-29
| | | | | | | | | | 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>
* python-typing-extensions: Update to 4.6.2Jeffery To2023-05-29
| | | | | | | This also updates the SPDX license identifier, title, description and URL for the package. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-trove-classifiers: Update to 2023.5.24Jeffery To2023-05-29
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-gmpy2: Update to 2.1.5Jeffery To2023-05-29
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-cython: Update to 0.29.35Jeffery To2023-05-29
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-hatch-fancy-pypi-readme: Update to 23.1.0Jeffery To2023-05-29
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* bcrypt: Update to 3.2.2, rename source packageJeffery To2023-05-29
| | | | | | | | | | | 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>
* pyodbc: Update to 4.0.39Tianling Shen2023-05-28
| | | | | | | * Fixed build with Python 3.11 * Removed unnecessary build depends Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* python-packages: Replace --global-option with --build-optionJeffery To2023-05-28
| | | | | | | | | | 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>
* Merge pull request #21194 from 1715173329/pgrAlexandru Ardelean2023-05-27
|\ | | | | python-greenlet: Update to 2.0.2
| * python-greenlet: Update to 2.0.2Tianling Shen2023-05-27
| | | | | | | | | | | | Fix build with Python 3.11. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* | Merge pull request #21190 from jefferyto/python-split-packagesAlexandru Ardelean2023-05-27
|\ \ | | | | | | python3: Split venv into separate package, pip and setuptools into separate source packages
| * | python3: Split setuptools into separate source packageJeffery To2023-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | python3: Split pip into separate source packageJeffery To2023-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: https://salsa.debian.org/python-team/packages/python-pip/-/blob/bb079efb8c6dd2c284eee94cf90e61bce19a6f73/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>
| * | python3: Split venv module from python3-light into separate packageJeffery To2023-05-26
| |/ | | | | | | | | | | | | | | 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>
* | Merge pull request #21188 from jefferyto/python-tomli-remove-packageTianling Shen2023-05-27
|\ \ | | | | | | python-tomli: Remove package
| * | python-tomli: Remove packageJeffery To2023-05-26
| |/ | | | | | | | | | | | | | | | | | | | | 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>
* / numpy: bump version to 1.24.3Alexandru Ardelean2023-05-26
|/ | | | | | Need to also fix build for GCC 13 + musl. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* Merge pull request #21167 from ↵Alexandru Ardelean2023-05-26
|\ | | | | | | | | jefferyto/python-packages-do-not-set-pyvenv-launcher python-packages: Remove __PYVENV_LAUNCHER__ environment variable
| * python-packages: Remove __PYVENV_LAUNCHER__ environment variableJeffery To2023-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting __PYVENV_LAUNCHER__ for Python package builds was added in a91a992abb1fe9b7c4e4e5d11532dbf18c5b213d, 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>
* | Merge pull request #21168 from jefferyto/python-poetry-core-1.6.0Tianling Shen2023-05-26
|\ \ | | | | | | python-poetry-core: Update to 1.6.0
| * | python-poetry-core: Update to 1.6.0Jeffery To2023-05-25
| |/ | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* / python3: Fix unnecessary linking with libbsdJeffery To2023-05-25
|/ | | | | | | | | 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: 2445fe9fb25e ("python3: Update to 3.11.3, refresh/redo patches") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-flit-core: Update to 3.9.0Jeffery To2023-05-24
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* borgbackup: Move from lang/python into utilsJeffery To2023-05-24
| | | | | | | | 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>
* python3: Update to 3.11.3, refresh/redo patchesJeffery To2023-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* python3: Fix hashlib module not compiled for host PythonJeffery To2023-05-24
| | | | | | | | | | | | | | | | | | | | | | 026-openssl-feature-flags.patch and 028-host-python-support-ssl-with-libressl.patch were removed in 4ecd9d67e90651a8e93760bf0b5771f7057c74a8 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]: https://github.com/openbsd/ports/blob/26a04435bf2a09dcbe22b718bfee08997617a906/lang/python/3.10/patches/patch-Modules__hashopenssl_c Fixes: 4ecd9d67e906 ("python3: fix ssl support by removing libressl patches") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3: Fix uuid module not compiled for host PythonJeffery To2023-05-24
| | | | | | | 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>
* python3: Fix multiarch/local paths added when building host PythonJeffery To2023-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | By default, the Python build process will add /usr/local/{lib,include}, and multiarch paths (e.g. /usr/{lib,include}/x86_64-linux-gnu) if building on Debian/Ubuntu, to its library and includes paths. 006-remove-multi-arch-and-local-paths.patch was added in 84202f17e1aac6faf66b8d186f7c5c62b6f72ffb to stop the Python build process from adding these paths. 006-remove-multi-arch-and-local-paths.patch was removed in 48277ec9158151763239461c6f60808e38a99c2f. 006-do-not-add-multiarch-paths-when-cross-compiling.patch was added in 0c8b0b0bf727a57b0138a1425d2f32786dddd146 to stop the Python build process from adding these paths for target Python. These paths are still added by the Python build process when building host Python. This replaces the cross-compiling-only patch with the original patch, renamed slightly and adapted for Python 3.10. Fixes: 48277ec91581 ("python3: bump to version 3.8") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3: Fix race condition when doing parallel buildsJeffery To2023-05-24
| | | | | | | | | | | | | | | | | | | | When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: https://github.com/python/cpython/pull/104693 Fixes: https://github.com/openwrt/packages/issues/19241 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3: Fix readelf program name not replaced in _sysconfigdata.pyJeffery To2023-05-24
| | | | | | | | | | | | | | | | | | The Makefile lines to add READELF to TARGET_CONFIGURE_OPTS was removed in 4e05541782edeb06b51d691dadf52648df24c940. Without setting READELF, configure finds the symlink to $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-readelf) instead of $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-muslgnueabi-readelf). This leads to the symlink name being saved to _sysconfigdata.py, and so the readelf name is not replaced correctly (in Py3Package/python3-base/install). This restores the removed Makefile lines. Fixes: 4e05541782ed ("python3: bump to version 3.10.0") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3: Fix __pycache__ files included in python3-lightJeffery To2023-05-24
| | | | | | | | | | | | | | | | 003-do-not-run-distutils-tests.patch was removed in 4e05541782edeb06b51d691dadf52648df24c940. This patch stopped "make install" from, among other things, running compileall. When this patch was removed, "make install" ran compileall as normal and created bytecode files in __pycache__ directories. These files were then packaged in python3-light. This adds a patch to stop compileall from being run during "make install". Fixes: 4e05541782ed ("python3: bump to version 3.10.0") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3: Remove --without-pymallocJeffery To2023-05-24
| | | | | | | | | | | | --without-pymalloc was added in 7bf1ae65a89e380ce20ef5ab13b1a7276d6f7047 because leaving it enabled added an "m" flag/suffix to file names. This flag/suffix was removed in Python 3.8[1], so disabling pymalloc is no longer necessary. [1]: https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python3-libselinux: fix compilation with musl 1.2.4Tianling Shen2023-05-20
| | | | | | | | | musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* Merge pull request #20981 from jefferyto/python3-packages-fix-buildTianling Shen2023-05-20
|\ | | | | python3-packages: Set PYTHON3_PKG_BUILD:=0
| * python3-packages: Set PYTHON3_PKG_BUILD:=0Jeffery To2023-05-11
| | | | | | | | | | | | | | This sets PYTHON3_PKG_BUILD:=0 so that python3-package.mk does not set any default build recipes. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python-packaging: Update to 23.1Jeffery To2023-05-18
| | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python-attrs: Update to 23.1.0Jeffery To2023-05-18
| | | | | | | | | | | | | | The package now uses pyproject.toml-based builds with additional build dependencies. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python-automat: Update to 22.10.0, refresh patchesJeffery To2023-05-18
| | | | | | | | | | | | | | This also removes the patch to avoid setuptools-scm and adds a build dependency on python-setuptools-scm/host. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | python-hatchling: Update to 1.17.0Jeffery To2023-05-17
| | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>