Commit Graph

3 Commits

Author SHA1 Message Date
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
Mingli Yu
9b5c9136df python3-django: Upgrade 5.0.13 -> 5.2
Release note:
https://docs.djangoproject.com/en/5.2/releases/5.2/

Backport a patch [1] to fix the below build failure:
 | ERROR Missing dependencies:
 | 	setuptools<69.3.0,>=61.0.0

[1] 3ae049b26b

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-11 08:20:13 -07:00