Commit Graph

2453 Commits

Author SHA1 Message Date
Alexandru Ardelean
1f70e73e5b python-pynacl: upgrade to version 1.6.1
Drop 'six' requirement (no longer needed).
python-setuptools/host needed for build.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 19:32:33 +02:00
Alexandru Ardelean
909b2ee5a0 python-hatchling: add python-setuptools/host as dep
Previously this was provided by python3/host

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 19:32:33 +02:00
Alexandru Ardelean
ab19a033fb python-calver: add python-setuptools/host as dep to HostBuild
Required now, since python-setuptools/host is separate from python3

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 14:42:11 +02:00
Alexandru Ardelean
1d1dbae89b python-setuptools-scm: bump to version 9.2.2
And add python-setuptools/host as dependency.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 14:42:11 +02:00
Alexandru Ardelean
974dc9753c python-automat: bump to version 25.4.16
Patches can be dropped.
They don't seem to be needed anymore.
The 'visualize' parts seem to be optional.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 14:42:11 +02:00
Vladimir Ermakov
dbc8106ecc python-toml: fix build dependency on python-setuptools
Fix #27855

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-11-13 13:49:06 +02:00
Alexandru Ardelean
2590594111 python-cffi: bump to version 2.0.0
Bump to version 2.0.0 because the CI seems to also include this.
Drop patch for un-pinning setuptools.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
fabcdb58c6 python3: remove lib2to3 dep from 'python3-package-dev'
lib2to3 no longer exists.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
0ae94ee364 python-setuptools: fix host deps
setuptools does not require that many deps.
This also fixes some circular dependencies.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
bf0fc7ba7a python-markupsafe: add python-setuptools/host to HostBuild dep
Required, since python3 no longer installs this for the host-build.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
2b1fb50b8d python-pyproject-hooks: bump to version 1.2.0
Since python3 no longer provides setuptools host-side, we need
to provide it as an explicit dependency.
Removing 'wheel' since it's not a dep of pyproject-hooks.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
256f9d30f8 python-semantic-version: add python-setuptools/host dep to HostBuild
This is needed now, since python3/host no longer installs setuptools
host-side.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
5ab2317cc9 python-ply: add python-setuptools/host dep to HostBuild & pkg build
This is needed now, since python3/host no longer installs setuptools
host-side.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
1c88e9fc8a pymysql: bump to version 1.1.2
Also fixes error with wheel file name.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
f10ff694d1 pyproject-metadata: bump to 0.9.1 & add python-setuptools/host dep for HostBuild
Required now that python3 doesn't provide setuptools during the hostpkg
installation.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-12 21:44:33 +02:00
Alexandru Ardelean
0c37af5289 python-cython: add python-setuptools/host as dep
Required now, since python3 doesn't have any setuptools bundled.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-09 16:46:33 +02:00
Alexandru Ardelean
e60b7674d2 python-requests: bump to version 2.32.5
Bumps to version 2.32.5

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-09 16:46:33 +02:00
Alexandru Ardelean
f62be41f47 lxml: bump to version 6.0.2
Was currently blocked by Cython being old.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-09 16:46:33 +02:00
Alexandru Ardelean
4474c5fbaa numpy: bump to version 2.3.4
This change bumps the version to 2.3.4

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-09 16:46:33 +02:00
Alexandru Ardelean
3e61a5e05c python3: add libatomic as dependency
For some architectures (like mips24) this solves some build errors.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-08 14:01:18 +02:00
Alexandru Ardelean
7ada8de6b7 django: bump to version 5.2.8
Because the old one needs an older version of setuptools, than the
one we currently have.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-08 11:21:38 +02:00
Alexandru Ardelean
9a5f1dc8a1 python-installer: patch behavior for when script file exists
This seems to happen when re-triggering a build.
The destination path is already there, so this exception gets raised.

Another approach is to do 'make package/<python-package>/clean' and
re-trigger the build.
But that becomes annoying.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-08 11:21:38 +02:00
Alexandru Ardelean
545e926fd1 python-asgiref: add use python-setuptools/host for pkg build
Newer versions of Python no longer ship setuptools.
We need to use the one from the packages feed instead.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-08 11:21:38 +02:00
Alexandru Ardelean
97a92f2e7a python3: bump to version 3.13.9
Explicitly disable readline and tkinter modules for host-build.
Host-build will not build if these fail.
  - readline isn't a hard requirement for host-python; some minor lack of
    functionality would be felt, but nothing terrible
  - tkinter is also disabled on the target; but for the host-python we
    don't need it either

Dropped patch: 010-no-ncursesw.patch
  - Since we're disabling readline in the host build

Drop setuptools from python3 - the only reason we kept it there, was
because it was required by pip; pip is still there and seems to install and
work fine without setuptools. There's also a separate setuptools package in
openwrt anyway:
  https://github.com/openwrt/packages/tree/master/lang/python/python-setuptools
Also, Python no longer installs it:
  https://github.com/python/cpython/issues/95299

Drop python3-cgi - 08d5923896
Drop distutils - 0faa0ba240
Drop lib2to3 - ae00b810d1

Drop patch: 0001-Adjust-library-header-paths-for-cross-compilation.patch
  - A lot of stuff has changed regarding cross-compilation; at this point
    it's unclear what we need moving forward.

Drop patch: 006-do-not-add-multiarch-local-paths.patch
  - setup.py went away, so no idea if this is needed anymore

Re-applied: 003-do-not-run-compileall.patch

Drop: 008-distutils-use-python-sysroot.patch
  - Buildroot seems to have also dropped this; this patch is from them

Added: 09-don-t-run-profile-task-during-cross-build.patch
  - For cross_compilation, running the profile-task will not work, it also
    mentions this in a comment, but nobody dared to patch it yet (at least
    in this release (3.13.9)

Re-applied: 026-openssl-feature-flags.patch
  - This could have been dropped completely, but upstream decided to keep
    scrypt on by default; for host-build this fails, because OpenWrt keeps
    libressl

Drop patch: 100-gh-95855-Refactor-platform-triplet-detection-code-GH-107221.patch
  - This was a backport; it probably should have been removed sooner

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>

wip
2025-11-08 11:21:38 +02:00
Alexandru Ardelean
e3a1f5b0b9 python-setuptools: add host-build
Newer Python 3 versions don't ship setuptools anymore.
Packages will need to use this one instead.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-08 11:21:38 +02:00
Josef Schlehofer
7f64f6c0cf python-calver: update to version 2025.10.20
Fixes:
 SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()

Release notes:
https://github.com/di/calver/releases/tag/2025.10.20

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
69539619b6 python-markupsafe: update to version 3.0.3
Release notes:
https://github.com/pallets/markupsafe/releases/tag/3.0.3

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
182156cfad python-wheel: update to 0.45.1
Release notes:
https://github.com/pypa/wheel/releases/tag/0.45.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
7f233be4ce python-cython: update to version 3.1.5
Fixes:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/turris/build/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module>
_main(sys.argv[1:], "python -m installer")
  File "/turris/build/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 86, in _main
with WheelFile.open(args.wheel) as source:
  File "/turris/build/staging_dir/hostpkg/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
   ^^^^^^^^^^^^^^
  File "/turris/build/staging_dir/hostpkg/lib/python3.11/site-packages/installer/sources.py", line 162, in open
with zipfile.ZipFile(path) as f:
 ^^^^^^^^^^^^^^^^^^^^^
  File "/turris/build/staging_dir/hostpkg/lib/python3.11/zipfile.py", line 1311, in __init__
self.fp = io.open(file, filemode)
  ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/turris/build/build_dir/hostpkg/pypi/Cython-3.0.10//openwrt-build/Cython-3.0.10-*.whl'

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
9bf59d5f67 python-setuptools: update to version 80.9.0
Release notes:
https://setuptools.pypa.io/en/stable/history.html#v80-9-0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
f4395c5d31 python-uci: drop patches due to newer setuptools
These patches were required with older setuptools version,
but in Python 3.11.4 is bundled setuptools updated, thus
we can remove these patches.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
ef509da52b python3: update to version 3.11.4
In this release, there is updated setuptools, so update
it as well.

Fixes CVEs:
- CVE-2025-47273
- CVE-2024-6345

Release notes:
https://pythoninsider.blogspot.com/2025/10/python-31212-31114-31019-and-3924-are.html

Patch:
- 0001-Adjust-library-header-paths-for-cross-compilation.patch
comes from buildroot [1], but they removed it as they switched to Python 3.12,
however Python 3.11 still supports distutils, but it is marked as deprecated [2]
and it will be gone in 3.12. So, don't rebase it this time as this patch does not apply
anymore due to this commit [3] and sooner switch to more up-to-date Python3 version.

[1] b37e4a5f56
[2] https://peps.python.org/pep-0632/
[3] 88eb8cc66f

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-31 09:52:11 +02:00
Josef Schlehofer
4ba2c1487c python-build: update to version 1.3.0
Release notes:
https://github.com/pypa/build/releases/tag/1.3.0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-28 10:13:52 +01:00
Josef Schlehofer
caed169831 python-flit-core: update to version 3.12.0
Release notes:
5714d1f78f/doc/history.rst (version-312)

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-28 10:13:52 +01:00
Josef Schlehofer
f182a567aa python-hatch-requirements-txt: bump to 0.4.1
Release notes:
https://github.com/repo-helper/hatch-requirements-txt/releases/tag/v0.4.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-22 12:54:31 +02:00
George Sapkin
d856cb45e3 python-trove-classifiers: bump to 2025.9.11.17
Adds classifier for Python 3.15.
More details can be found in their tags:
https://github.com/pypa/trove-classifiers/releases

Signed-off-by: George Sapkin <george@sapk.in>
2025-10-03 12:11:54 +02:00
Wei-Ting Yang
c6ba0ce292 python-urllib3: update to 2.5.0
Changelogs can be found in https://github.com/urllib3/urllib3/releases.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-10-02 08:17:48 +02:00
Wei-Ting Yang
7289cb0119 python-packaging: update to 25.0
Changelogs can be found in https://github.com/pypa/packaging/releases.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-10-02 08:17:48 +02:00
Josef Schlehofer
4d521dfbeb python-hatchling: update to version 1.27.0
Release notes:
https://github.com/pypa/hatch/releases/tag/hatchling-v1.27.0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-01 08:35:00 +02:00
George Sapkin
6408f9ef6e python-atomicwrites: drop package
- archived upstream
- drop confirmed by Python maintainer
- last local commit:
  commit: d5ac6e103e
  Author: Jeffery To <jeffery.to@gmail.com>
  Date:   Mon, 24 Jul 2023 22:46:41 -0700

  python-atomicwrites: Update to 1.4.1

Link: https://github.com/openwrt/packages/pull/26400#issuecomment-2848164601
Signed-off-by: George Sapkin <george@sapk.in>
2025-09-23 13:11:55 +02:00
Alexandru Ardelean
5e1d07b162 numpy: bump to version 2.3.3
Bump the version number to 2.3.3

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-09-23 12:03:36 +03:00
Fabrice Fontaine
76ff404bc3 python-cryptography: fix PKG_CPE_ID
cryptography_project:cryptography has been deprecated in favour of
cryptography.io:cryptography:
https://nvd.nist.gov/products/cpe/detail/2EBA50FC-F3F9-40D5-82BD-EFB67F761153

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2025-09-20 23:13:41 +08:00
Wei-Ting Yang
e236bede74 django-restframework: assign PKG_CPE_ID
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:django-rest-framework:django_rest_framework

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-08-29 11:56:26 +03:00
Rosen Penev
d9fee08632 python3: fix host uuid and ncurses
pkgconfig doesn't work correct for these two packages. Just readd the
proper paths.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-08-24 20:28:15 +03:00
Austin Lane
f2d141912f python-pyelftools: Update to v0.32
- Update pyelftools to version 0.32 (minor)

Signed-off-by: Austin Lane <vidplace7@gmail.com>
2025-08-19 07:48:45 +02:00
Wei-Ting Yang
6d9d0d2bf8 python-certifi: update to 2025.8.3
Fix CVE-2024-39689.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-08-15 23:24:03 -03:00
Wei-Ting Yang
dc6724fca5 python-certifi: assign PKG_CPE_ID
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:certifi:certifi

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-08-15 23:24:03 -03:00
Wei-Ting Yang
23646be59e python-urllib3: update to 2.0.7
Fix CVE-2023-45803 and CVE-2023-43804.

Full changelogs:
- https://github.com/urllib3/urllib3/releases/tag/v2.0.5
- https://github.com/urllib3/urllib3/releases/tag/2.0.6
- https://github.com/urllib3/urllib3/releases/tag/2.0.7

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2025-08-14 15:48:28 +02:00
Josef Schlehofer
3686cbe417 python3: update to version 3.11.13
Release notes:
https://docs.python.org/release/3.11.13/whatsnew/changelog.html#python-3-11-13

Fixes CVEs:
CVE 2024-12718
CVE 2025-4138
CVE 2025-4330
CVE 2025-4517

Patch refreshed

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-08-14 15:48:04 +02:00
Alexandru Ardelean
12738a8eec django: allow test.sh only for python3-django package
No idea how this worked before.
But the '/usr/bin/django-admin' is available only for python3-django

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-08-14 15:10:10 +03:00