Commit graph

2300 commits

Author SHA1 Message Date
Jeffery To
88632b7b64 python-pluggy: Update to 1.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:16:07 +08:00
Jeffery To
6b6ea7efe1 python-trio: Update to 0.22.2, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:15:37 +08:00
Jeffery To
e7a8d18385 python-tornado: Update to 6.3.3, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:15:12 +08:00
Jeffery To
8b6a817af2 python-sqlalchemy: Update to 2.0.20, update list of dependencies
This also adds a build dependency on python-cython/host.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:14:50 +08:00
Jeffery To
1ec68a6e98 python-slugify: Update to 8.0.1, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:14:29 +08:00
Jeffery To
f279ae9418 python-sentry-sdk: Update to 1.29.2, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:14:08 +08:00
Jeffery To
8c7709b911 python-schema: Update to 0.7.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:13:49 +08:00
Jeffery To
53dadf2c50 python-schedule: Update to 1.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:13:37 +08:00
Jeffery To
a694ed7b0c python-rsa: Update to 4.9, update list of dependencies
The package changed to the poetry-core build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-31 16:13:21 +08:00
Alexandru Ardelean
11ae2c3061
Merge pull request #21552 from jefferyto/python-platform-triplet
python3: Restore platform triplet to paths
2023-08-31 07:59:57 +03:00
Quintin Hill
8dc77f3267 python-ble2mqtt: update to 0.1.9
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-08-28 08:54:07 +08:00
Quintin Hill
b915dbb7a2 python-dbus-fast: update to 1.93.0
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-08-28 08:54:07 +08:00
Jeffery To
0fe1011420
python3: Restore platform triplet to paths
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:

* C extensions (*.cpython-311-*.so)

* Build config data directory (/usr/lib/python3.11/config-3.11-*/)

* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)

Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 02:24:38 +08:00
Jeffery To
5a0055df06
python3: Fix/expand platform triplet detection
Currently, configure does not find the correct platform triplet for musl
as the default build/host values passed by OpenWrt buildroot does not
contain the text "linux-musl".

This backports
c163d7f0b6
to add detection for mips soft float and musl.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 02:19:53 +08:00
Jeffery To
b595362b85
python3: Centralize config file adjustments in Build/Install
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 01:47:43 +08:00
Jeffery To
2ffb87726b
python: Rework filespec install script
* Support wildcards in install (`+`) paths

* Add fourth parameter to set directory permissions

  If file permissions are given (third parameter), these will now apply
  to files only.

* Add non-recursive set permissions command (`==`)

* Be more strict about filespec format

  Blank lines and lines starting with `#` will be ignored. Other errors
  (unknown command, missing path parameter, etc.) will cause the script
  to exit.

* Be more strict about ensuring paths exist for all commands

* Avoid spawning subshells

This also removes outdated filespec paths in the python3 package; these
paths delete files that are no longer present.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 01:47:43 +08:00
Jeffery To
329f9a1391
python3: Fix package descriptions
* Fix default Python package description not included in individual
  package descriptions

* Update default Python package description text (from General Python
  FAQ, "What is Python?")

* Add package descriptions for Python module packages

* Reduce duplication in package titles

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 01:47:42 +08:00
Jeffery To
87631ecdd4
python3: Use regular package recipes for python3 package
There is no need to use Py3Package for python3 as it does not package
any Python files; it is an empty package with dependencies to install
the full Python installation.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-25 01:47:42 +08:00
Jeffery To
09e06f9594 python-setuptools: Update to 68.1.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:21:44 +08:00
Jeffery To
bc32e54713 python-poetry-core: Update to 1.7.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:21:35 +08:00
Jeffery To
dd5146b208 python-click: Update to 8.1.7
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:21:25 +08:00
Jeffery To
6facae339e python-pytest-xdist: Update to 3.3.1, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:21:16 +08:00
Jeffery To
b130986e17 python-pytest: Update to 7.4.0, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:21:07 +08:00
Jeffery To
383b8c1658 python-pyrsistent: Update to 0.19.3, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:20:58 +08:00
Jeffery To
dbe5283ed0 python-pyparsing: Update to 3.1.1
The package has changed to the flit-core build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:20:49 +08:00
Jeffery To
001c2cbe0d python-pyotp: Update to 2.9.0, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:20:39 +08:00
Jeffery To
a9b23f4683 python-pyfuse3: Update to 3.3.0, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:20:30 +08:00
Jeffery To
f9e3847599 python-py: Update to 1.11.0, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-24 17:20:17 +08:00
Jeffery To
3d497b2bc4 python-trove-classifiers: Update to 2023.8.7
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:47:57 +08:00
Jeffery To
3a5f9999ca python-psycopg2: Update to 2.9.7, update list of dependencies
This also adds a source package (python-psycopg2-src).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:46:09 +08:00
Jeffery To
53d3fc6f44 python-msgpack: Update to 1.0.5, add host Cython dependency
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:45:55 +08:00
Jeffery To
56bac94a03 python-psutil: Update to 5.9.5, replace patch
100_add_cross_platform_build_ability.patch was submitted upstream in
https://github.com/giampaolo/psutil/pull/2068, but that pull request was
closed without being merged.

This replaces that patch with a simpler version that only updates
setup.py, leaving the run-time library code unchanged.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:45:41 +08:00
Jeffery To
96880b435b python-more-itertools: Update to 10.1.0
The package has changed to the flit-core build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:45:03 +08:00
Jeffery To
ec19051980 python-markdown: Update to 3.4.4, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:44:56 +08:00
Jeffery To
0068a50193 python-distro: Update to 1.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:44:42 +08:00
Quintin Hill
87d42fbe0e python3-ble2mqtt: update to 0.1.8
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-08-16 18:22:58 +08:00
Quintin Hill
3f7f1b6e66 python3-dbus-fast: update to 1.91.2
The patch is no longer required as host setuptools is now new enough.

Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-08-16 18:22:58 +08:00
Quintin Hill
8810da08f2 python3-aio-mqtt-mod: update to 0.3.4
python3-openssl is now optional.

Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-08-16 18:22:58 +08:00
Jeffery To
8a8991dfbf python-iniconfig: Update to 2.0.0
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-13 10:55:05 +08:00
Jeffery To
8bf67793bc python-jsonpath-ng: Update to 1.5.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-13 10:54:54 +08:00
Jeffery To
cde28d04e6 python-jmespath: Update to 1.0.1
This also updates the Python dependency from python3 to python3-light.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-13 10:54:46 +08:00
Jeffery To
0bcbdf129b python-intelhex: Update to 2.3.0
This version includes the fix from the removed patch.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-13 10:54:38 +08:00
Josef Schlehofer
0662554483
Merge pull request #21748 from jefferyto/python-influxdb-5.3.1
python-influxdb: Update to 5.3.1
2023-08-13 00:28:04 +02:00
Josef Schlehofer
1583724fc3
Merge pull request #21795 from jefferyto/python-netdisco-3.0.0
python-netdisco: Update to 3.0.0, update list of dependencies
2023-08-12 23:59:13 +02:00
Jeffery To
da25e99725
python-netdisco: Update to 3.0.0, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-12 01:51:19 +08:00
Jeffery To
d219b6d28f
python-multidict: Update to 6.0.4, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-12 01:47:53 +08:00
Josef Schlehofer
1d08138c77
Merge pull request #21747 from jefferyto/python-ifaddr-0.2.0
python-ifaddr: Update to 0.2.0
2023-08-10 00:06:55 +02:00
Jeffery To
d86deca765 python-click: Update to 8.1.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:11:28 +08:00
Jeffery To
aa6aa15f4b python-wheel: Update to 0.41.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:11:18 +08:00
Jeffery To
68c434dd6a python-flask-seasurf: Update to 1.1.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:10:32 +08:00
Jeffery To
d91ddd5d75 python-flask-login: Update to 0.6.2, update list of dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:10:23 +08:00
Jeffery To
f5411f260a python-flask-httpauth: Update to 4.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:10:03 +08:00
Jeffery To
c579a4ab0e python-flask-babel: Update to 3.1.0
The package changed to the poetry-core build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:09:41 +08:00
Jeffery To
58c9de9ede python-flask-socketio: Update to 5.3.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:08:50 +08:00
Jeffery To
7e931594c7 python-socketio: Update to 5.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:08:18 +08:00
Jeffery To
466dfed2f2 python-engineio: Update to 4.5.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-10 05:07:59 +08:00
Jean-Paul Etienne
4c1b74ede3 micropython: fix stackctrl compilation for GCC 13
On host PC using GCC 13, stackctrl.c fails to compile
with the following error:

../py/stackctrl.c: In function 'mp_stack_ctrl_init':
../py/stackctrl.c:32:32: error: storing the address of
   local variable 'stack_dummy'
   in 'mp_state_ctx.thread.stack_top' [-Werror=dangling-pointer=]
   32 |     MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
../py/stackctrl.c:31:18: note: 'stack_dummy' declared here
   31 |     volatile int stack_dummy;
      |                  ^~~~~~~~~~~
In file included from ../py/runtime.h:29,
                 from ../py/stackctrl.c:27:
../py/mpstate.h:296:23: note: 'mp_state_ctx' declared here
  296 | extern mp_state_ctx_t mp_state_ctx;
      |                       ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Fixed accordingly by ignoring -dangling-pointer warning
inside mp_stack_ctrl_init function.

Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
2023-08-07 11:41:14 +02:00
Jeffery To
f477ad0ef9
python-influxdb: Update to 5.3.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-07 14:04:27 +08:00
Jeffery To
fbc3629eca
python-ifaddr: Update to 0.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-07 14:00:25 +08:00
Jeffery To
03f78eff74 python-dns: Update to 2.4.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:58:29 +08:00
Jeffery To
c0552ae0d4 python-contextlib2: Update to 21.6.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:58:19 +08:00
Jeffery To
197c34e62d python-ciso8601: Update to 2.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:58:08 +08:00
Jeffery To
008de77a8a python-certifi: Update to 2023.7.22
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:57:56 +08:00
Jeffery To
2eabda9a1e python-cachetools: Update to 5.3.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:57:42 +08:00
Jeffery To
d6d4222e97 python-cachelib: Update to 0.10.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:57:30 +08:00
Jeffery To
54f9f2777c python-colorama: Update to 0.4.6
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:55:02 +08:00
Jeffery To
c2a725ec00 python-docutils: Update to 0.20.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:53:32 +08:00
Jeffery To
360427948e python-editables: Update to 0.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:52:23 +08:00
Jeffery To
31d02be16a python-pathspec: Update to 0.11.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-04 01:52:10 +08:00
Eneas U de Queiroz
219edcfa31 python-certifi: add github runtime test
This loads the module, which should return the path of the CA bundle
and verifies that the file exists.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-07-28 10:39:18 -03:00
Jeffery To
787e2ba027 python-gnupg: Update to 0.5.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:48:00 -07:00
Jeffery To
6e1785d148 python-wheel: Update to 0.41.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:49 -07:00
Jeffery To
211724c3fc python-awscli: Update to 1.29.7, update dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:29 -07:00
Jeffery To
182eaed42d python-boto3: Update to 1.28.7, update dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:29 -07:00
Jeffery To
1ac094d012 python-s3transfer: Update to 0.6.1, update dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:29 -07:00
Jeffery To
3d83c5c8d6 python-botocore: Update to 1.31.7, update dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:29 -07:00
Jeffery To
446e52ab26 python-awesomeversion: Update to 23.5.0, update dependencies
The package changed to the poetry-core build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:47:14 -07:00
Jeffery To
d5ac6e103e python-atomicwrites: Update to 1.4.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:41 -07:00
Jeffery To
aa44ed23ce python3-sqlparse: Update to 0.4.4, rename source package
This renames the source package to python-sqlparse to match other Python
packages.

This also updates the build dependencies; package now uses the flit-core
build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:27 -07:00
Jeffery To
2c1b66c886 python-aiohttp: Update 3.8.5, update dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:12 -07:00
Jeffery To
0eabbb8ef7 python-aiosignal: Add new package
From the README:

A project to manage callbacks in asyncio projects.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:12 -07:00
Jeffery To
9c8e4c4aef python-frozenlist: Add new package
From the README:

frozenlist.FrozenList is a list-like structure which implements
collections.abc.MutableSequence. The list is mutable until
FrozenList.freeze is called, after which list modifications raise
RuntimeError.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:12 -07:00
Jeffery To
5ef294f64f python-charset-normalizer: Add new package
From the README:

A library that helps you read text from an unknown charset encoding.
Motivated by chardet, I'm trying to resolve the issue by taking a new
approach. All IANA character set names for which the Python core library
provides codecs are supported.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:46:12 -07:00
Jeffery To
c5c02c060b python3-pyroute2: Update to 0.7.9, rename source package
This renames the source package to python-pyroute2 to match other Python
packages.

This also updates/simplifies the package dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:45:55 -07:00
Jeffery To
bbf35edc5f python-apipkg: Update to 3.0.1
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:45:38 -07:00
Jeffery To
ca7fdf61dc python3-maxminddb: Update to 2.4.0, rename source package
This renames the source package to python-maxminddb to match other
Python packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:45:26 -07:00
Jeffery To
e0c13a145d python-async-timeout: Update to 4.0.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:45:11 -07:00
Jeffery To
0218c9067a python-execnet: Update to 2.0.2
The package changed to the hatchling build backend and removed the
dependency on apipkg.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:44:44 -07:00
Jeffery To
87fe943112 python-pip: Update to 23.2.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-24 22:42:05 -07:00
Alexandru Ardelean
868f09900d
Merge pull request #21585 from commodo/python-updates2
django,numpy,lxml: bump versions
2023-07-21 10:53:02 +03:00
Josef Schlehofer
d5c939160a
Merge pull request #21604 from jefferyto/python3-netifaces-0.11.0
python3-netifaces: Update to 0.11.0, rename source package
2023-07-21 08:23:26 +02:00
Jeffery To
35d6cdf8bb
python3-unidecode: Update to 1.3.6, rename source package
This renames the source package to python-unidecode to match other
Python packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-20 02:45:44 +08:00
Jeffery To
935f791e76
python3-netifaces: Update to 0.11.0, rename source package
This renames the source package to python-netifaces to match other
Python packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-20 01:10:00 +08:00
Jeffery To
5e66a69433 python-pip: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-17 11:44:53 -07:00
Jeffery To
0174cea697 python-babel: Update to 2.12.1, add host build
Also updated dependencies for the new version.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-16 17:00:04 -07:00
Alexandru Ardelean
d6252bcb76 numpy: bump to version 1.25.1
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-16 22:09:55 +03:00
Alexandru Ardelean
a5e58afe19 python-django: bump to 4.2.3
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-16 21:29:34 +03:00
Alexandru Ardelean
6c3899e6a4 python-lxml: bump to 4.9.3
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-16 21:29:34 +03:00
Alexandru Ardelean
640f4592db
Merge pull request #21566 from jefferyto/python-mako-reimport
python-mako: Re-import host-only package from abandoned packages repo
2023-07-16 21:06:07 +03:00
Alexandru Ardelean
11ebe528df pillow: bump to version 10.0.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-14 21:44:59 +03:00
Alexandru Ardelean
2c44ddcb83 pymysql: bump to version 1.1.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-14 21:42:38 +03:00
Alexandru Ardelean
04774bb720 python-requests: bump to version 2.31.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-14 21:42:38 +03:00
Jeffery To
666ea93977
python-mako: Re-import host-only package from abandoned packages repo
Mako was removed in 60ce07b9a1d5c7a53297f177f10af68f3304be9e; at the
time we were using host pip to install host Python packages and so
having this package was not necessary.

With the move away from host pip and toward proper host packages, it
would be better to have a Mako host-only package here to support the
mesa package in the video feed.

This re-imports the package from the abandoned packages feed, updates
the makefile with current Python package conventions, and updates the
package to the latest version.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-14 19:32:20 +08:00
Jeffery To
b68832d51e python-trove-classifiers: Update to 2023.7.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-13 16:17:48 -07:00
Jeffery To
5710f272db click: Update to 8.1.4, rename source package
This renames the source package to python-click to match other Python
packages.

This also updates the package dependencies, licence file, package title
and description.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-13 16:17:32 -07:00
Jeffery To
9a5f66acc3 python-editables: Update to 0.4
The build backend was changed from setuptools to flit-core.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-13 16:12:42 -07:00
Jeffery To
96c4a3f0c7 python-cython: Update to 0.29.36
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-13 15:03:06 -07:00
Javier Marcet
c045680a62 python-docker: Update to 6.1.3
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-07-05 02:24:58 +08:00
Javier Marcet
47665d7ac0 python-docker: Update to 6.1.2
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-07-05 02:24:58 +08:00
Jeffery To
207d01c3a9 python-typing-extensions: Update to 4.7.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-03 07:30:34 -07:00
Javier Marcet
8f04b59b19 python-dotenv: update to v1.0.0
- 1.0.0:

  - What's Changed:
    - Handle situations where the cwd does not exist.
    - Add python-decouple as a related project
    - Drop support for python 3.7, add python 3.12-dev

- 0.21.1:

  - Added:
    - Use Python 3.11 non-beta in CI
    - Modernize variables code
    - Modernize main.py and parser.py code
    - Improve conciseness of cli.py and init.py
    - Improve error message for get and list commands when env file
    can't be opened
    - Updated Licence to align with BSD OSI template

Signed-off-by: Javier Marcet <javier@marcet.info>
2023-07-03 07:29:50 -07:00
Javier Marcet
db1c50e1ca python-websocket-client: update to 1.6.1
- 1.6.1
  - Fix Dispatcher keyboard interrupt. Should solve reconnect loop
  with rel

- 1.6.0
  - Fix teardown issue when ping thread is not properly ended
  - Fix double ping wait time on first ping
  - Minor typehints improvements

- 1.5.3
  - Add logic to avoid error in the case where content-length header
  does not exist, bug introduced in 1.5.2
  - Fix wsdump.py script typing, bug introduced in 1.5.2

- 1.5.2
  - Add typehints
  - Fix pytype errors
  - Fix args passed to logging function
  - Standardize PEP 3101 formatting
  - Add more verbose exception for unsuccessful handshake

Signed-off-by: Javier Marcet <javier@marcet.info>
2023-07-02 16:30:20 +02:00
Javier Marcet
429f76316e python-stem: update to v1.8.2
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-07-02 16:29:57 +02:00
Jeffery To
2ec3b9f095 python-hatchling: Update to 1.18.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-01 04:45:46 -07:00
Jeffery To
f6190a379b python-pluggy: Update to 1.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-01 04:45:35 -07:00
Jeffery To
ff51716aaa 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>
2023-07-01 04:44:13 -07:00
Jeffery To
e1ef13a30c python-service-identity: Update to 23.1.0
This adds new build dependencies as the package switched to
pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-01 04:43:38 -07:00
Jeffery To
40b9f05a58 python-libmodbus: Update to 0.6.2
This also adds a source package (python3-libmodbus-src).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-07-01 04:43:26 -07:00
Jeffery To
67af34188d python-gnupg: Update to 0.5.0
This also removes the dependency on gnupg as there are two packages for
gpg, gnupg and gnupg2; this library should work with either one.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 18:04:34 -07:00
Jeffery To
acc915083d python-werkzeug: Update to 2.3.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-29 18:04:22 -07:00
Jeffery To
c698a615f9 python-setuptools: Update to 68.0.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-27 07:25:11 +02:00
Jeffery To
b5dbf77501 python-packages: Take over maintainership from Daniel Golle
This was requested in
https://github.com/openwrt/packages/pull/21227#issuecomment-1567676980.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-27 07:15:47 +02:00
Tianling Shen
7414d8c6dd
Merge pull request #21405 from jefferyto/selinux-update
selinux: Update selinux packages to 3.5, setools to 4.4.2, reorganize packages
2023-06-25 17:04:14 +08:00
Quintin Hill
5cf3046055 python-ble2mqtt: fix installation of python program
This was broken when the init script was added in 408502ee0.

Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-06-20 22:39:58 +01:00
Jeffery To
23ff8177f0
python3-libsemanage: Update to 3.5, rename source/target package
* Rename:

  * Source package from python3-libsemanage to python-semanage
  * Target package from python3-libsemanage to python3-semanage

* Update dependents with new target package name

* Update package title, license files, and dependencies

* Remove Build/InstallDev (files not used by any other package)

* Use Py3Package to build Python bytecode and source packages

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-19 15:47:09 +08:00
Jeffery To
a205483547
python3-libselinux: Update to 3.5, rename source/target package
* Rename:

  * Source package from python3-libselinux to python-selinux
  * Target package from python3-libselinux to python3-selinux

* Update dependents with new target package name

* Remove patches:

  * 010-setup-py-custom-cc.patch: LDSHARED is already set as part of
    $(PYTHON3_VARS)

  * 020-Make-use-of-variables-when-defining-libdir-and-inclu.patch: This
    package doesn't install the libselinux.pc file

* Update package title and dependencies

* Remove Build/InstallDev (files not used by any other package)

* Use Py3Package to build Python bytecode and source packages

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-19 15:47:09 +08:00
Quintin Hill
e7181b3452 python-ble2mqtt: update to 0.1.7
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-06-14 13:43:45 +08:00
Quintin Hill
76306b1bbb python-bleak: upgrade to 0.20.2
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-06-14 13:43:45 +08:00
Quintin Hill
4105ce9294 python-dbus-fast: update to 1.86.0
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-06-14 13:43:45 +08:00
Jeffery To
4627ed7c43
python3: Update to 3.11.4, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-12 14:10:01 +08:00
Jeffery To
b098f2ac40 python3-asgiref: Update to 3.7.2, rename source package
This renames the source package to python-asgiref to match other Python
packages.

This also updates the package title and URL.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-07 23:19:54 +03:00
Jeffery To
0b35054fb0 python3-django-etesync-journal: Remove package
This package was originally added[1] as it was a dependency of
etesync-server 0.3.0. When etesync-server was renamed to etebase and
upgraded to 0.6.1[2], this dependency was removed. No other package in
the packages feed depends on this package.

Upstream has also archived the git repo[3] and stated that the
repo/package is deprecated. It does not appear that any newer version of
etebase uses this package.

This removes the python3-django-etesync-journal package; it will be
submitted to the abandoned packages repo.

[1]: https://github.com/openwrt/packages/pull/10469
[2]: https://github.com/openwrt/packages/pull/14063
[3]: https://github.com/etesync/journal-manager

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-07 17:46:12 +03:00
Jeffery To
5b965e4d79 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>
2023-06-06 19:53:19 +03:00
Tianling Shen
4078ffa6b8
Merge pull request #21275 from jefferyto/python-typing-extensions-4.6.3
python-typing-extensions: Update to 4.6.3
2023-06-06 13:12:46 +08:00
Tianling Shen
96cd37e45d
Merge pull request #21274 from jefferyto/python-poetry-core-1.6.1
python-poetry-core: Update to 1.6.1
2023-06-06 13:12:36 +08:00
Tianling Shen
64613c0d13
Merge pull request #21273 from jefferyto/python-hatchling-1.17.1
python-hatchling: Update to 1.17.1
2023-06-06 13:12:24 +08:00
Tianling Shen
a6980eb933 python3-bottle: Update to 0.12.25
Fix build with Python 3.11

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-05 11:31:42 +02:00
Tianling Shen
0e6fe09a34 python-yarl: Update to 1.9.2
Fix build with Python 3.11.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-05 10:32:04 +02:00
Jeffery To
b638f3f8c0
python-typing-extensions: Update to 4.6.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-05 15:43:15 +08:00
Jeffery To
ac59c69237
python-poetry-core: Update to 1.6.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-05 15:17:17 +08:00
Jeffery To
0aed79d2a7
python-hatchling: Update to 1.17.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-05 13:58:47 +08:00
Jeffery To
a83dcf0d5c
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>
2023-06-02 21:39:58 +08:00
Jeffery To
9071deb1c7
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>
2023-06-02 21:39:58 +08:00
Jeffery To
9390bd0262
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>
2023-06-02 21:39:58 +08:00
Jeffery To
a4ae38494f
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>
2023-06-02 21:39:44 +08:00
Jeffery To
574d43fca6 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>
2023-05-30 03:19:49 +01:00
Jeffery To
5602cc85d3 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>
2023-05-30 03:19:33 +01:00
Jeffery To
572387f0cb 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>
2023-05-30 03:19:21 +01:00
Jeffery To
67a854aee2 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>
2023-05-29 18:16:56 +03:00
Jeffery To
f45f067f3f 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>
2023-05-29 18:16:38 +03:00
Jeffery To
17007845bc python-trove-classifiers: Update to 2023.5.24
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-29 18:16:19 +03:00
Jeffery To
a7d33e9e3a python-gmpy2: Update to 2.1.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-29 18:15:59 +03:00
Jeffery To
f47802949c python-cython: Update to 0.29.35
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-29 18:15:05 +03:00
Jeffery To
9f8a5fb25b python-hatch-fancy-pypi-readme: Update to 23.1.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-29 18:14:46 +03:00
Jeffery To
3def783d3c 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>
2023-05-29 18:14:14 +03:00
Tianling Shen
f02f3ee8c7 pyodbc: Update to 4.0.39
* Fixed build with Python 3.11
* Removed unnecessary build depends

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-28 09:31:24 +03:00
Jeffery To
b76fa19b26 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>
2023-05-28 09:30:31 +03:00
Alexandru Ardelean
9f19a64e02
Merge pull request #21194 from 1715173329/pgr
python-greenlet: Update to 2.0.2
2023-05-27 21:17:35 +03:00
Alexandru Ardelean
0f858d5076
Merge pull request #21190 from jefferyto/python-split-packages
python3: Split venv into separate package, pip and setuptools into separate source packages
2023-05-27 21:15:06 +03:00
Tianling Shen
e399e1ce2c python-greenlet: Update to 2.0.2
Fix build with Python 3.11.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-27 21:51:37 +08:00
Tianling Shen
e7e66545b1
Merge pull request #21188 from jefferyto/python-tomli-remove-package
python-tomli: Remove package
2023-05-27 14:55:12 +08:00
Jeffery To
b4975f8bbb
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>
2023-05-26 22:06:24 +08:00
Jeffery To
eee273507b
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>
2023-05-26 22:06:08 +08:00
Jeffery To
d53475ac21
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>
2023-05-26 22:01:41 +08:00
Jeffery To
0509d460c8
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>
2023-05-26 17:51:53 +08:00
Alexandru Ardelean
8f176e30f3 numpy: bump version to 1.24.3
Need to also fix build for GCC 13 + musl.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2023-05-26 11:16:17 +03:00
Alexandru Ardelean
de130fadb5
Merge pull request #21167 from jefferyto/python-packages-do-not-set-pyvenv-launcher
python-packages: Remove __PYVENV_LAUNCHER__ environment variable
2023-05-26 10:11:59 +03:00
Tianling Shen
f17a701722
Merge pull request #21168 from jefferyto/python-poetry-core-1.6.0
python-poetry-core: Update to 1.6.0
2023-05-26 01:28:42 +08:00
Jeffery To
626c7efda9
python-poetry-core: Update to 1.6.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-25 15:30:08 +08:00
Jeffery To
9e95dff9ac
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>
2023-05-25 15:01:28 +08:00
Jeffery To
60bf01cb60
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>
2023-05-25 13:42:00 +08:00
Jeffery To
6b8340d3ca python-flit-core: Update to 3.9.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-24 06:09:41 +03:00
Jeffery To
5059cfccae 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>
2023-05-24 06:08:51 +03:00
Jeffery To
2445fe9fb2 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>
2023-05-24 06:04:33 +03:00
Jeffery To
02eb5c100c 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>
2023-05-24 06:04:33 +03:00
Jeffery To
44fb4927f1 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>
2023-05-24 06:04:33 +03:00
Jeffery To
f006d0ea23 python3: Fix multiarch/local paths added when building host Python
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
84202f17e1 to stop the Python build
process from adding these paths.

006-remove-multi-arch-and-local-paths.patch was removed in
48277ec915.

006-do-not-add-multiarch-paths-when-cross-compiling.patch was added in
0c8b0b0bf7 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: 48277ec915 ("python3: bump to version 3.8")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-24 06:04:33 +03:00
Jeffery To
67e47f1196 python3: Fix race condition when doing parallel builds
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>
2023-05-24 06:04:33 +03:00
Jeffery To
e1a9578635 python3: Fix readelf program name not replaced in _sysconfigdata.py
The Makefile lines to add READELF to TARGET_CONFIGURE_OPTS was removed
in 4e05541782.

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: 4e05541782 ("python3: bump to version 3.10.0")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-24 06:04:33 +03:00
Jeffery To
8a4da01790 python3: Fix __pycache__ files included in python3-light
003-do-not-run-distutils-tests.patch was removed in
4e05541782. 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: 4e05541782 ("python3: bump to version 3.10.0")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-24 06:04:33 +03:00
Jeffery To
3032e7063f python3: Remove --without-pymalloc
--without-pymalloc was added in 7bf1ae65a8
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>
2023-05-24 06:04:33 +03:00
Tianling Shen
577679a572 python3-libselinux: fix compilation with musl 1.2.4
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>
2023-05-20 13:07:15 +08:00
Tianling Shen
aadc8d0001
Merge pull request #20981 from jefferyto/python3-packages-fix-build
python3-packages: Set PYTHON3_PKG_BUILD:=0
2023-05-20 08:01:25 +08:00
Jeffery To
16779c2d6e python-packaging: Update to 23.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-18 11:13:18 +03:00
Jeffery To
7607e43be4 python-attrs: Update to 23.1.0
The package now uses pyproject.toml-based builds with additional build
dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-18 11:13:02 +03:00
Jeffery To
d2ad1f47d3 python-automat: Update to 22.10.0, refresh patches
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>
2023-05-18 10:30:52 +03:00
Jeffery To
fdc320dc0c
python-hatchling: Update to 1.17.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-17 15:11:08 +08:00
Alexandru Ardelean
5c131f8a90 python-requests: bump to version 2.30.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-05-15 10:21:24 +03:00
Alexandru Ardelean
98d0b78401 django: bump to version 4.2.1
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-05-15 10:21:24 +03:00
Tianling Shen
53959d50fd
Merge pull request #20985 from jefferyto/python-incremental-fix-host-build
python-incremental: Add missing host build dependencies
2023-05-15 01:12:22 +08:00
Jeffery To
2c54b7637e
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>
2023-05-11 15:42:33 +08:00
Jeffery To
bcba053fb0
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>
2023-05-11 02:54:08 +08:00
Jeffery To
3cee44d888
numpy: Avoid build user config files
This stops numpy from reading .numpy-site.cfg in the build user's home
directory. The code actually tries to find both .numpy-site.cfg and
site.cfg in the user's home directory; this patch prevents both.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-11 02:46:57 +08:00
Jeffery To
5cafab68ff
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>
2023-05-11 02:46:57 +08:00
Jeffery To
8d331953f3
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>
2023-05-11 02:46:57 +08:00
Tianling Shen
0aff57d001
Merge pull request #20958 from jefferyto/python-trove-classifiers-2023.5.2
python-trove-classifiers: Update to 2023.5.2
2023-05-10 22:01:00 +08:00
Jeffery To
8a36b03870
Merge pull request #20801 from jefferyto/python-pyproject
python: Add proper support for pyproject.toml-based builds, update Python packages for new build process
2023-05-10 12:11:07 +08:00
Jeffery To
99a0cfdd03
python-trove-classifiers: Update to 2023.5.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-08 13:14:09 +08:00
Jeffery To
54c1303dc4
python-hatchling: Update to 1.14.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-04 14:10:43 +08:00
Jeffery To
fe0dc6f48a python-hatchling: Update to 1.14.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-01 13:34:40 +03:00