diff options
Diffstat (limited to 'meta-python')
3 files changed, 42 insertions, 14 deletions
diff --git a/meta-python/recipes-devtools/python/python3-django-4.2.27/0001-lower-setuptools-requirements.patch b/meta-python/recipes-devtools/python/python3-django-4.2.27/0001-lower-setuptools-requirements.patch new file mode 100644 index 0000000000..5f6707467b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-django-4.2.27/0001-lower-setuptools-requirements.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | From 10ddc1ee660ed5ee4d9aa21f751eb07a1b260b6c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Fri, 23 Jan 2026 13:49:53 +0100 | ||
| 4 | Subject: [PATCH] lower setuptools requirements | ||
| 5 | |||
| 6 | Scarthgap ships with version 69.1.1 - adjust the requirements for that. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [specific to OE LTS versions] | ||
| 9 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 10 | --- | ||
| 11 | pyproject.toml | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/pyproject.toml b/pyproject.toml | ||
| 15 | index 4635d0e..319b261 100644 | ||
| 16 | --- a/pyproject.toml | ||
| 17 | +++ b/pyproject.toml | ||
| 18 | @@ -1,6 +1,6 @@ | ||
| 19 | [build-system] | ||
| 20 | requires = [ | ||
| 21 | - "setuptools>=75.8.1; python_version >= '3.9'", | ||
| 22 | + "setuptools>=69.0.0; python_version >= '3.9'", | ||
| 23 | "setuptools<75.4.0; python_version < '3.9'", | ||
| 24 | ] | ||
| 25 | build-backend = "setuptools.build_meta" | ||
diff --git a/meta-python/recipes-devtools/python/python3-django_4.2.20.bb b/meta-python/recipes-devtools/python/python3-django_4.2.20.bb deleted file mode 100644 index 3fb8b03224..0000000000 --- a/meta-python/recipes-devtools/python/python3-django_4.2.20.bb +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | require python-django.inc | ||
| 2 | inherit setuptools3 | ||
| 3 | |||
| 4 | SRC_URI[sha256sum] = "92bac5b4432a64532abb73b2ac27203f485e40225d2640a7fbef2b62b876e789" | ||
| 5 | |||
| 6 | RDEPENDS:${PN} += "\ | ||
| 7 | python3-sqlparse \ | ||
| 8 | python3-asgiref \ | ||
| 9 | " | ||
| 10 | |||
| 11 | # Set DEFAULT_PREFERENCE so that the LTS version of django is built by | ||
| 12 | # default. To build the 4.x branch, | ||
| 13 | # PREFERRED_VERSION_python3-django = "4.2.20" can be added to local.conf | ||
| 14 | DEFAULT_PREFERENCE = "-1" | ||
diff --git a/meta-python/recipes-devtools/python/python3-django_4.2.27.bb b/meta-python/recipes-devtools/python/python3-django_4.2.27.bb new file mode 100644 index 0000000000..038b0220fa --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-django_4.2.27.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | require python-django.inc | ||
| 2 | inherit python_setuptools_build_meta | ||
| 3 | |||
| 4 | SRC_URI += "file://0001-lower-setuptools-requirements.patch" | ||
| 5 | SRC_URI[sha256sum] = "b865fbe0f4a3d1ee36594c5efa42b20db3c8bbb10dff0736face1c6e4bda5b92" | ||
| 6 | |||
| 7 | RDEPENDS:${PN} += "\ | ||
| 8 | python3-sqlparse \ | ||
| 9 | python3-asgiref \ | ||
| 10 | " | ||
| 11 | |||
| 12 | PYPI_PACKAGE = "django" | ||
| 13 | |||
| 14 | # Set DEFAULT_PREFERENCE so that the LTS version of django is built by | ||
| 15 | # default. To build the 4.x branch, | ||
| 16 | # PREFERRED_VERSION_python3-django = "4.2.%" can be added to local.conf | ||
| 17 | DEFAULT_PREFERENCE = "-1" | ||
