Commit Graph

1925 Commits

Author SHA1 Message Date
Jeffery To
400936a98c numpy: Fix compilation when OpenBLAS support is not enabled
Currently, if OpenBLAS support is not enabled, a site.cfg file is not
written and numpy will use build host paths for libraries. If the build
host has any conflicting libraries, specifically libpython3.10.a, then
compilation will fail.

This ensures site.cfg is always written with buildroot paths.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5cafab68ff)
2023-11-02 11:20:32 +01:00
Jeffery To
ca0cbe1e97 numpy: Fix pyproject.toml-based build
The versions of setuptools and wheel pinned in pyproject.toml are older
than the versions available in the packages repo. This unpins the
versions so that the build can proceed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8d331953f3)
2023-11-02 11:20:25 +01:00
Jeffery To
18ce57bb6d python-incremental: Add missing host build dependencies
Fixes: 8d81b67327 ("python-incremental: Update to 22.10.0, redo patch, add host build")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 2c54b7637e)
2023-11-02 11:10:37 +01:00
Jeffery To
dd019cb9bd python-ubus: Update to 0.1.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 99d8554bcd)
2023-11-02 01:48:13 +01:00
Jeffery To
436bca63d7 python-ubus: Force old build process
This package will not build with the pyproject.toml-based build process
because it has a build dependency on pytest-runner[1].

pytest-runner has been deprecated[2], so instead of adding a package for
pytest-runner to fulfill the build dependency, force this package to use
the old build process.

[1]: https://gitlab.nic.cz/turris/python-ubus/-/blob/v0.1.1/setup.py#L35
[2]: https://github.com/pytest-dev/pytest-runner#deprecation-notice

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 4a7173d27d)
2023-11-02 01:47:32 +01:00
Jeffery To
12028f6043 python3-packages: Set PYTHON3_PKG_BUILD:=0
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>
(cherry picked from commit bcba053fb0)
2023-11-02 01:43:27 +01:00
Jeffery To
5171a8341a python-trove-classifiers: Add new host-only package
From the README:

Canonical source for classifiers on PyPI.

Classifiers categorize projects per PEP 301. Use this package to
validate classifiers in packages for PyPI upload or download.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 7dc6b103c5)
2023-11-02 01:37:57 +01:00
Jeffery To
897e1e12d1 python-pathspec: Add new host-only package
From the README:

pathspec is a utility library for pattern matching of file paths. So far
this only includes Git's wildmatch pattern matching which itself is
derived from Rsync's wildmatch. Git uses wildmatch for its gitignore
files.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit a1cfdba19c)
2023-11-02 01:36:49 +01:00
Jeffery To
f42d8f7e19 python-editables: Add new host-only package
From the README:

A Python library for creating "editable wheels"

This library supports the building of wheels which, when installed, will
expose packages in a local directory on sys.path in "editable mode". In
other words, changes to the package source will be reflected in the
package visible to Python, without needing a reinstall.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 4465e57e5d)
2023-11-02 01:36:27 +01:00
Josef Schlehofer
13529ea17f Revert "python-libraries: Force old build process"
This commit was already applied 3 weeks ago in d640b11160, thus I bring it once again back, which was mistake as it was redone in 903003695a.

This reverts commit 60f0e661c5.
2023-11-02 01:19:51 +01:00
Jeffery To
a61e86e982 python-jsonschema: Remove previous build workaround
With proper support for pyproject.toml-based builds in place, this is no
longer necessary.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 107e037763)
2023-11-02 01:14:01 +01:00
Jeffery To
1b3fa88251 python-exceptiongroup: Remove previous build workaround
With proper support for pyproject.toml-based builds in place, this is no
longer necessary.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 7734502693)
2023-11-02 01:14:01 +01:00
Jeffery To
c5224c74d1 python-astral: Remove BROKEN
With proper support for pyproject.toml-based builds in place, this
package will now build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 628202d269)
2023-11-02 01:14:01 +01:00
Jeffery To
60f0e661c5 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-11-02 01:14:01 +01:00
Jeffery To
36b997a113 python-twisted: Update to 22.10.0
Includes fix for CVE-2022-39348 (NameVirtualHost Host header injection).

This adds a build dependency that will be required for
pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 56b10770fc)
2023-11-02 01:14:01 +01:00
Jeffery To
faaf36ed35 python-pytest-forked: Update to 1.6.0
The overly-strict build requirements in 1.3.0[1] would cause a build
failure with pyproject.toml-based builds.

[1]: https://github.com/pytest-dev/pytest-forked/blob/v1.3.0/pyproject.toml#L2

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 17d5bf224c)
2023-11-02 01:14:01 +01:00
Jeffery To
ee6708a027 python-jsonschema: Add build dependencies
These will be required for pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b1a8e4769f)
2023-11-02 01:14:01 +01:00
Jeffery To
43e34d9b7d python-exceptiongroup: Update to 1.1.1
This adds a build dependency that will be required for
pyproject.toml-based builds.

This also removes the run-time dependency on python3-attrs; there is no
indication this package is required.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 59b7a81964)
2023-11-02 01:14:01 +01:00
Jeffery To
d8b19b3df4 python-dns: Update to 2.3.0
This adds a build dependency that will be required for
pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 68c0c77df6)
2023-11-02 01:14:01 +01:00
Jeffery To
c97f1fe239 python-cryptography: Update patch to disable Rust
This extends the patch to also apply for pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0b5091bbff)
2023-11-02 01:14:01 +01:00
Jeffery To
ad0abb4159 python-astral: Update to 3.2
This adds a build dependency that will be required for
pyproject.toml-based builds.

This also marks the package as BROKEN (for now) as it requires proper
support for pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 1a1b444571)
2023-11-02 01:14:01 +01:00
Jeffery To
7442839f3a borgbackup: Add missing build dependencies
setuptools-scm is a declared build dependency[1], and pkgconfig will
allow setup to find the required libraries, replacing the need to set
environment variables.

[1]: https://github.com/borgbackup/borg/blob/1.2.4/setup.py#L313

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6649314a03)
2023-11-02 01:14:01 +01:00
Jeffery To
7e763dc59d python-incremental: Update to 22.10.0, redo patch, add host build
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8d81b67327)
2023-10-31 23:05:43 +01:00
Jeffery To
8d550f045f python-pytest: Update to 7.3.0
This also removes BROKEN from the package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit c7820e4fb1)
2023-10-31 23:04:01 +01:00
Jeffery To
1a022f0173 python-pluggy: Update to 1.0.0, add host build, add myself as maintainer
This also marks python3-pytest as BROKEN (for now) as the in-tree
version is not compatible with this version of pluggy.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b453daa336)
2023-10-31 23:03:33 +01:00
Jeffery To
2ea50079ad python-flit-scm: Add new host-only package
From the README:

A PEP 518 build backend that uses setuptools_scm to generate a version
file from your version control system, then flit_core to build the
package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit bbc9b14470)
2023-10-31 23:01:55 +01:00
Jeffery To
9640b39608 python-pycrate: Update to 0.6.0
This also changes the download to PyPI and updates several package
makefile fields.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 550c29368e)
2023-10-31 22:53:56 +01:00
Jeffery To
d422140731 python-poetry-core: Update to 1.6.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 626c7efda9)
2023-10-31 22:50:16 +01:00
Jeffery To
f48791c906 python-poetry-core: Add new host-only package
From the README:

A PEP 517 build backend implementation developed for Poetry. This
project is intended to be a light weight, fully compliant,
self-contained package allowing PEP 517 compatible build frontends to
build Poetry managed projects.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 82766de815)
2023-10-31 22:50:10 +01:00
Jeffery To
cef09e1fbe python-pkgconfig: Add new host-only package
From the README:

pkgconfig is a Python module to interface with the pkg-config command
line tool for Python 3.3+.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit d7bc1deb0e)
2023-10-31 22:49:24 +01:00
Jeffery To
8b982ebc56 python: Add proper support for pyproject.toml-based builds
This removes the changes made in
61f202c017 and adds actual support for
pyproject.toml-based (PEP 517) builds of Python packages.

Packages can force the use of the old build process by setting
PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1; this should only be a temporary
workaround until the package can be updated/fixed to use the new build
process.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5156c0c82b)
2023-10-31 10:03:43 +01:00
Jeffery To
6a390b09c3 python-typing-extensions: Add host build
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit abf3f3d77c)
2023-10-23 17:26:28 +02:00
Jeffery To
9bb9351976 python-tomli: Add new host-only package
From the README:

Tomli is a Python library for parsing TOML. Tomli is fully compatible
with TOML v1.0.0.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 7d171049fd)
2023-10-23 17:25:17 +02:00
Jeffery To
088b51202a 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-17 21:03:22 +02:00
Jeffery To
d87f162d21 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-10-17 21:00:27 +02:00
Jeffery To
d2b55246bd python-wheel: Update to 0.41.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6e1785d148)
2023-10-17 20:57:58 +02:00
Jeffery To
42bff8d7d6 python-hatchling: Update to 1.17.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit fdc320dc0c)
2023-10-17 20:41:58 +02:00
Jeffery To
6b2dafb2f0 python-hatchling: Update to 1.14.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 54c1303dc4)
2023-10-17 20:41:53 +02:00
Jeffery To
2943516016 python-hatchling: Update to 1.14.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit fe0dc6f48a)
2023-10-17 20:41:48 +02:00
Alexandru Ardelean
cb38274d9c python-requests: bump to version 2.31.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 04774bb720)
2023-10-17 20:40:05 +02:00
Alexandru Ardelean
d2f44e77f5 python-requests: bump to version 2.30.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 5c131f8a90)
2023-10-17 20:39:17 +02:00
Alexandru Ardelean
7e45090b29 python-requests: bump to version 2.28.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 1f1bd5ade9)
2023-10-17 20:39:11 +02:00
Alexandru Ardelean
897f21a215 python-requests: bump to version 2.28.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 884ac1e35b)
2023-10-17 20:38:56 +02:00
Jeffery To
f0fdbf317c python-pycparser: Add host build
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8f32fd202e)
2023-10-16 10:20:51 +02:00
Jeffery To
88de440581 python-hatchling: Add new host-only package
From the README:

This is the extensible, standards compliant build backend used by Hatch.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5e832f44fc)
2023-10-15 08:06:37 +02:00
Jeffery To
0afac56b78 python-hatch-fancy-pypi-readme: Add new host-only package
From the README:

hatch-fancy-pypi-readme is a Hatch metadata plugin for everyone who
cares about the first impression of their project’s PyPI landing page.
It allows you to define your PyPI project description in terms of
concatenated fragments that are based on static strings, files, and most
importantly: parts of files defined using cut-off points or regular
expressions.

Once you’ve assembled your readme, you can additionally run regular
expression-based substitutions over it. For instance to make relative
links absolute or to linkify users and issue numbers in your changelog.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6294cf26c7)
2023-10-15 08:06:06 +02:00
Jeffery To
7cf4a94aa2 python-hatch-vcs: Add new host-only package
From the README:

This provides a plugin for Hatch that uses your preferred version
control system (like Git) to determine project versions.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit fb48859907)
2023-10-15 08:05:37 +02:00
Jeffery To
2e5c43d72f python-setuptools-scm: Add new host-only package
The host build replaces the use of the host pip requirements file. This
also updates the dependants of setuptools-scm to depend on the host
build.

This also removes the toml host pip requirements file as toml is not
used by any other package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 3ee4e7297c)
2023-10-15 08:03:47 +02:00
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