Commit Graph

1877 Commits

Author SHA1 Message Date
Javier Marcet
e2219cf5e0 python-jsonschema: Update to 4.17.3
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit b80213e65e)
2023-10-15 08:03:41 +02:00
Javier Marcet
86b1319f30 python-jsonschema: Update to 4.16.0
- Improve the base URI behavior when resolving a $ref to a resolution
 URI which is different from the resolved schema's declared $id.
 - Accessing jsonschema.draftN_format_checker is deprecated. Instead,
 if you want access to the format checker itself, it is exposed as
 jsonschema.validators.DraftNValidator.FORMAT_CHECKER on any
 jsonschema.protocols.Validator.

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 6c553c35b3)
2023-10-15 08:03:37 +02:00
Javier Marcet
f3b387e0f5 python-jsonschema: Update to 4.15.0, broken since 4.6.0
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 617efbc02e)
2023-10-15 08:03:32 +02:00
Javier Marcet
9b03119741 python-jsonschema: Update to 4.9.0
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 500cdd1243)
2023-10-15 08:03:27 +02:00
Javier Marcet
3bc7fa6305 python-jsonschema: Update to 4.6.1
What's Changed:

 - Type annotate format checker methods by @sirosen
 - Fix fuzzer to include instrumentation by @DavidKorczynski
 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 83de96fbb3)
2023-10-15 08:03:22 +02:00
Javier Marcet
03b91e65d7 python-jsonschema: Update to 4.6.0
What's Changed:

 - Add package_url for changelog by @fhightower
 - Only validate unevaluated properties/items on applicable types by
 @EpicWink
 - Mark library as typed (PEP-561) by @ssbarnea
 - Add v4.5.1 to changelog by @sirosen
 - Modernize the packaging setup via PEP 621 and Hatch. by @Julian

New Contributors:

 - @fhightower made their first contribution
 - @EpicWink made their first contribution

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit f7a00eb6ab)
2023-10-15 08:03:16 +02:00
Javier Marcet
5ba23fd033 python-jsonschema: Update to 4.5.1
What's Changed:

 - Extend dynamicRef keyword by @nezhar
 - Add FORMAT_CHECKER attribute for Validator by @TiborVoelcker
 - Remove stray double-quote by @lurch
 - Ensure proper sorting of list in error message by @ssbarnea

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit f1ed3f5bc2)
2023-10-15 08:03:11 +02:00
Jeffery To
6fecfdea20 python-yaml: Update to 6.0.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 60315a6638)
2023-10-14 17:58:32 +02:00
Jeffery To
c8d4bb4759 python-packages: Clean up build variables
* Rename PYTHON3_PKG_SETUP_VARS to PYTHON3_PKG_BUILD_VARS, and
  PYTHON3_PKG_SETUP_DIR to PYTHON3_PKG_BUILD_PATH

  The new variable names emphasize that these values apply to the new
  build process.

* Remove PYTHON3_PKG_SETUP_ARGS set to the empty string

  These were set to override the default arguments in the old build
  process and not applicable to the new build process.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b1b008f42f)
2023-10-14 17:58:03 +02:00
Javier Marcet
e98966545a python-stem: update to v1.8.1
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit e6cc43a7f0)
2023-10-14 17:56:59 +02:00
Jeffery To
45b1c9ca8f python-cffi: Update to 1.15.1, add host build
The host build replaces the use of the host pip requirements file. This
also updates the dependants of cffi to depend on the host build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit aabe27a379)
2023-10-14 17:56:24 +02:00
Fabian Lipken
122b71b980 python-pycares: PKG_RELEASE:=1
Signed-off-by: Fabian Lipken <dynasticorpheus@gmail.com>
(cherry picked from commit 85a4c5978b)
2023-10-14 17:56:18 +02:00
Fabian Lipken
ccf85044e4 python-pycares: bump to 4.3.0
Signed-off-by: Fabian Lipken <dynasticorpheus@gmail.com>
(cherry picked from commit b0afdf5991)
2023-10-14 17:56:11 +02:00
Javier Marcet
740a2b4206 python3-paramiko: update to version 2.12.0
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 2ee0f893e3)
2023-10-14 17:52:14 +02:00
Javier Marcet
e20a4a84fb python3-paramiko: update to version 2.11.0
2.11.0:

 - [Feature] Add SSH config token expansion (eg %h, %p) when parsing
 ProxyJump directives. Patch courtesy of Bruno Inec.

 - [Support] (via #2011) Apply unittest skipIf to tests currently
 using SHA1 in their critical path, to avoid failures on systems
 starting to disable SHA1 outright in their crypto backends (eg RHEL
 9). Report & patch via Paul Howarth.

 - [Support] Update camelCase method calls against the threading
 module to be snake_case; this and related tweaks should fix some
 deprecation warnings under Python 3.10. Thanks to Karthikeyan
 Singaravelan for the report, @Narendra-Neerukonda for the patch,
 and to Thomas Grainger and Jun Omae for patch workshopping.

 - [Support] Recent versions of Cryptography have deprecated Blowfish
 algorithm support; in lieu of an easy method for users to remove it
 from the list of algorithms Paramiko tries to import and use, we’ve
 decided to remove it from our “preferred algorithms” list. This will
 both discourage use of a weak algorithm, and avoid warnings. Credit
 for report/patch goes to Mike Roest.

2.10.5:

 - [Bug] Windows-native SSH agent support as merged in 2.10 could
 encounter Errno 22 OSError exceptions in some scenarios (eg server
 not cleanly closing a relevant named pipe). This has been worked
 around and should be less problematic. Reported by Danilo Campana
 Fuchs and patched by Jun Omae.

 - [Bug] OpenSSH 7.7 and older has a bug preventing it from
 understanding how to perform SHA2 signature verification for RSA
 certificates (specifically certs - not keys), so when we added SHA2
 support it broke all clients using RSA certificates with these
 servers. This has been fixed in a manner similar to what OpenSSH’s
 own client does: a version check is performed and the algorithm used
 is downgraded if needed. Reported by Adarsh Chauhan, with fix
 suggested by Jun Omae.

 - [Bug] Align signature verification algorithm with OpenSSH re:
 zero-padding signatures which don’t match their nominal size/length.
 This shouldn’t affect most users, but will help Paramiko-implemented
 SSH servers handle poorly behaved clients such as PuTTY. Thanks to
 Jun Omae for catch & patch.

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 117e3d6a18)
2023-10-14 17:52:08 +02:00
Javier Marcet
e7c5bafb2c python3-paramiko: update to version 2.10.4
- [Bug] Servers offering certificate variants of hostkey algorithms
 (eg ssh-rsa-cert-v01@openssh.com) could not have their host keys
 verified by Paramiko clients, as it only ever considered non-cert key
 types for that part of connection handshaking. This has been fixed.

 - [Bug] PKey instances’ __eq__ did not have the usual safety guard in
 place to ensure they were being compared to another PKey object,
 causing occasional spurious BadHostKeyException (among other things).
 This has been fixed. Thanks to Shengdun Hua for the original report
 /patch and to Christopher Papke for the final version of the fix.

 - [Support] Update camelCase method calls against the threading
 module to be snake_case; this and related tweaks should fix some
 deprecation warnings under Python 3.10. Thanks to Karthikeyan
 Singaravelan for the report, @Narendra-Neerukonda for the patch, and
 to Thomas Grainger and Jun Omae for patch workshopping.

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit b1159e8764)
2023-10-14 17:52:02 +02:00
Javier Marcet
f3edfff2f6 python3-paramiko: update to version 2.10.3
2.10.2:

 - [Bug] Fix Python 2 compatibility breakage introduced in 2.10.1.
 Spotted by Christian Hammond.

2.10.3:

 - [Bug] Switch from module-global to thread-local storage when
 recording thread IDs for a logging helper; this should avoid one
 flavor of memory leak for long-running processes. Catch & patch via
 Richard Kojedzinszky.

 - [Bug] Certificate-based pubkey auth was inadvertently broken when
 adding SHA2 support; this has been fixed. Reported by Erik Forsberg
 and fixed by Jun Omae.

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 539f9d07a1)
2023-10-14 17:51:54 +02:00
Jeffery To
0e03455310 python-docker: Add missing build dependency
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit be90d8aecd)
2023-10-14 17:50:58 +02:00
Javier Marcet
cf369e8caf python-docker: Update to 6.0.1
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 360383a997)
2023-10-14 17:50:45 +02:00
Javier Marcet
0beda4d9de python-docker: Update to 6.0.0
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 7b3ceb95d9)
2023-10-14 17:50:40 +02:00
Jeffery To
903003695a python-libraries: Update build options
This updates the build options for these packages to work with the
pyproject.toml-based build process, and removes
PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 63d13aa15f)
2023-10-14 17:48:56 +02:00
Alexandru Ardelean
e9286627e7 pillow: bump to version 9.5.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 0b0232ed66)
2023-10-14 17:48:46 +02:00
Alexandru Ardelean
ed6f79a6e7 pillow: bump to version 9.4.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit acc96ee984)
2023-10-14 17:48:34 +02:00
Alexandru Ardelean
f90542f6e1 pillow: bump to version 9.3.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit b8e20215a2)
2023-10-14 17:48:31 +02:00
Alexandru Ardelean
b7fcfa261a python-evdev: bump to version 1.6.1
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 23b09de42d)
2023-10-13 15:34:54 +02:00
Alexandru Ardelean
34dadda85c python-evdev: bump to 1.6.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit f5f282f0bb)
2023-10-13 15:34:42 +02:00
Alexandru Ardelean
812bd60797 python-evdev: bump to version 1.5.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 306af23e08)
2023-10-13 15:34:36 +02:00
Waldemar Konik
9d81c43e51 python-curl: update to version 7.45.2
PycURL changeLog:

-----------------------------------------------------------------
PycURL 7.45.2 - 2022-12-16
-----------------------------------------------------------------
This release fixes several minor issues and adds support for several libcurl options.

-----------------------------------------------------------------
PycURL 7.45.1 - 2022-03-13
-----------------------------------------------------------------
This release fixes build when libcurl < 7.64.1 is used.

-----------------------------------------------------------------
PycURL 7.45.0 - 2022-03-09
-----------------------------------------------------------------
This release adds support for SecureTransport SSL backend (MacOS), adds ability to unset a number of multi options, adds ability to duplicate easy handles and permits pycurl classes to be subclassed.

-----------------------------------------------------------------
PycURL 7.44.1 - 2021-08-15
-----------------------------------------------------------------
This release repairs incorrect Python thread initialization logic which caused operations to hang.
-----------------------------------------------------------------

Signed-off-by: Waldemar Konik <informatyk74@interia.pl>

Compile tested: x86_64

(cherry picked from commit da564ae8cc)
2023-10-13 15:33:31 +02:00
Jeffery To
d640b11160 python-libraries: Force old build process
These packages will need adjustments to work with pyproject.toml-based
builds, so set PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1 to force the old
build process (when pyproject.toml-based builds are in place) for now.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit e6ae9e29d5)
2023-10-13 15:32:02 +02:00
Jeffery To
4c9e11252a python-packaging: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 78bcdd0fd1)
2023-10-13 08:39:26 +02:00
Jeffery To
25f1bf2301 python-packaging: Update to 23.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 16779c2d6e)
2023-10-13 08:39:19 +02:00
Jeffery To
339495faa4 python-packaging: Remove BROKEN
With proper support of pyproject.toml-based builds in place, this
package will now build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 84d9831dcb)
2023-10-13 08:39:13 +02:00
Jeffery To
a675c4efd5 python-flask-seasurf: Update to 1.1.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 68c434dd6a)
2023-10-13 08:36:04 +02:00
Jeffery To
46f1ed0d55 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-10-13 08:35:35 +02:00
Jeffery To
584000d8ea python-markupsafe: Update to 2.1.3, add host build
The host build will be used for mako (to be added later).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit ff51716aaa)
2023-10-13 08:33:36 +02:00
Jeffery To
3bc27a7441 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-10-13 08:33:31 +02:00
Daniel Golle
d9239a79d4 MarkupSafe: update to version 2.1.1
Version 2.1.1
Released 2022-03-14
  Avoid ambiguous regex matches in striptags. pallets/markupsafe#293

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 6957a4275a)
2023-10-13 08:33:22 +02:00
Alexandru Ardelean
2919eb1d06 python-pytz: bump to version 2023.3
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit c59cbd13f3)
2023-10-13 08:31:27 +02:00
Alexandru Ardelean
c04ebe3f8f python-pytz: bump to version 2022.7.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 5257477a02)
2023-10-13 08:31:20 +02:00
Jeffery To
27d5d5cd3a python-ply: Add host build
The host build replaces the use of the host pip requirements file. This
also updates the dependants of ply to depend on the host build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 790beee430)
2023-10-13 08:26:25 +02:00
Jeffery To
271d067cb3 python-pyproject-hooks: Add new host-only package
From the README:

This is a low-level library for calling build-backends in
pyproject.toml-based project. It provides the basic functionality to
help write tooling that generates distribution files from Python
projects.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f6d68782d9)
2023-10-13 08:26:17 +02:00
Jeffery To
6a367bc3a2 python-build: Add new host-only package
From the documentation:

A simple, correct PEP 517 build frontend.

build will invoke the PEP 517 hooks to build a distribution package. It
is a simple build tool and does not perform any dependency management.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 34fb0202f9)
2023-10-13 08:26:11 +02:00
Jeffery To
a2f357c21a python-installer: Add host-only package
From the README:

This is a low-level library for installing a Python package from a wheel
distribution. It provides basic functionality and abstractions for
handling wheels and installing packages from wheels.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 37caea7c93)
2023-10-13 08:25:49 +02:00
Jeffery To
55c9fba5df python-cython: Add new host-only package
The host build replaces the use of the host pip requirements file. This
also updates the dependants of Cython to depend on the host build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit dcf551fbcf)
2023-10-13 08:25:29 +02:00
Jeffery To
fe1c3ae0c7 python-wheel: Add new host-only package
From the README:

This library is the reference implementation of the Python wheel
packaging standard, as defined in PEP 427.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit afd6f8e445)
2023-10-13 08:25:19 +02:00
Jeffery To
2f7e60a850 python-flit-core: Add host-only package
From the README:

This provides a PEP 517 build backend for packages using Flit. The only
public interface is the API specified by PEP 517, at flit_core.buildapi.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 2f37a616af)
2023-10-13 08:25:09 +02:00
Jeffery To
d819ce7b23 python-packaging: Update to 23.0, add host build
This also adds myself as maintainer, and marks the target package as
BROKEN (for now) as the update requires proper support for
pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit e9dd1a1dfc)
2023-10-13 08:25:02 +02:00
Jeffery To
19e6300f0c python: Better host pip options
pip by default will read system-wide and per-user configuration
files[1]. Setting PIP_CONFIG_FILE=/dev/null instructs pip to not read
any config files[2].

pip will spawn child processes of itself to do work, but not all options
are passed down to the child processes[3]. Setting global options as
environment variables[4] ensures they are passed down to any child
processes.

[1]: https://pip.pypa.io/en/stable/topics/configuration/#configuration-files
[2]: https://pip.pypa.io/en/stable/topics/configuration/#pip-config-file
[3]: https://github.com/pypa/pip/issues/9081#issue-733819665
[4]: https://pip.pypa.io/en/stable/topics/configuration/#environment-variables

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8c2abb7403)
2023-10-13 08:23:39 +02:00
Jeffery To
b5ccf456df python: Add pyproject.toml-based builds for host Python packages
Using pip to install host packages with pyproject.toml-based (PEP 517)
builds is problematic:

* If build isolation is used, pip will create an isolated build
  environment, install any build dependencies for the requested package,
  then build the requested package.

  It does not appear currently possible to have pip install the build
  dependencies with hash-checking mode enabled[1].

* If build isolation is not used, any build dependencies must be
  installed in the build environment before invoking pip to build the
  requested package[2].

  This would require creating a package dependency resolution system to
  install build dependencies, and any dependencies of dependencies, in
  the correct order.

* It is very difficult to patch the packages installed by pip.

This adds a new include file (python3-host-build.mk) with recipes to
install host Python packages with pyproject.toml-based builds. This is
backwards-compatible with packages that require running setup.py.

Besides addressing the above issues (the OpenWrt build system already
resolves dependencies between packages, checks all source downloads
against known hashes, and supports patching packages), host packages
also:

* Capture package licensing and maintainer information
* Enable uscan checking for package updates/CVEs
* Are a known concept for OpenWrt packagers/developers

The existing functionality of using host pip to install packages will
remain for now, but should be considered deprecated and expected to be
removed in the future.

This also updates Py3Build/CheckHostPipVersionMatch for the case where
the host-pip-requirements directory does not exist or is empty.

[1]: https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020
[2]: https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-no-build-isolation

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit fe78c07a31)
2023-10-13 08:23:16 +02:00
Alexandru Ardelean
dc68822dcc python-build: add support for pyproject.toml files
A new PEP 517 (https://www.python.org/dev/peps/pep-0517/) has defined that
Python packages can be shipped without any `setup.py` file, and that a
`pyproject.toml` file is sufficient.

A `setup.py` shim layer is suggested as a method for running the build.

For these cases, we will add a support in the OpenWrt build-system to
provide the default `setup.py` shim layer in case this file does not exist,
but there is a `pyproject.toml` file.

We also seem to need to tweak the shim layer with the PKG_VERSION,
otherwise the detected version is 0.0.0.
We will need to see if this will be fixed later in setuptools{-scm}.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 61f202c017)
2023-10-13 08:23:08 +02:00