Commit Graph

6 Commits

Author SHA1 Message Date
Gyorgy Sarvari
de2d1e10f1 python3-django: consolidate dependencies in .inc file
Django 4.2.x recipe has been deleted, the dependencies that were specific
to version 5.x can be moved to the common .inc file.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-17 14:57:58 -08:00
Gyorgy Sarvari
035fb64599 python3-django: add ptest support
Execute the standard, non-selenium tests. The execution is
on the slower side: on my idle machine, KVM enabled it takes
a bit more than 2.5 minutes to execute it (executing tests with
4 threads parallel, 1/core, the default configuration). If the machine is
under load, it easily grows to over 10 minutes.

Added two backported patches for Django 5.2 to fix some tests that
would otherwise fail:

0001-Fix-test_strip_tags-test.patch: tag stripping tests failed due to
changed Python behavior

0001-fix-test_msgfmt_error_including_non_ascii-test.patch: tests were
updated to work with msgfmt 0.25

Most of the skipped tests require some specific database backend
(Postgres, MySQL, Oracle...) or are Selenium tests.

When the default parallelism is used for the execution, the package
needs 3GB RAM at least.

The output is very long (the suite contains way over 15k tests),
so I omit the example output here.

The current summary (for v5.2.9):
Ran 18121 tests in 140.891s
OK (skipped=1394, expected failures=5)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-17 14:57:58 -08:00
Soumya Sambu
64f25a7663 python3-django: Upgrade 5.2 -> 5.2.6
Release notes:
https://docs.djangoproject.com/en/5.2/releases/5.2.6/
https://docs.djangoproject.com/en/5.2/releases/5.2.5/
https://docs.djangoproject.com/en/5.2/releases/5.2.4/
https://docs.djangoproject.com/en/5.2/releases/5.2.3/
https://docs.djangoproject.com/en/5.2/releases/5.2.2/
https://docs.djangoproject.com/en/5.2/releases/5.2.1/

Drop patch 0001-Fixed-35980-Updated-setuptools-to-normalize-package.patch:
already present in the upgraded version.

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-06 22:08:46 -07:00
Jason Schonberg
37e9b17b1e Use https:// in HOMEPAGE variable instead of http://
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-25 18:32:07 -07:00
Derek Straka
c089690f57 python3-*: Update recipes to correctly check the upstream packages
With the upstream check migrated to the simple repo API, a number of the
recipes required updates to:
1. Remove outdated UPSTREAM_CHECK_REGEX checks
2. Add recipe specific UPSTREAM_CHECK_PYPI_PACKAGE definitions for
   packages that use '_', CamelCase, or other deviations from PEP625 in
   the source archive

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-19 09:41:21 -08:00
Martin Jansa
b2a66eead1 python3-django: rename .inc file to BPN.inc
* this one has 2 versions, so the .inc file cannot be folded into .bb files
  but we can at least rename it to start with BPN for consistency

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:26 -07:00