[Bug 300115] www/py-django-bitfield: Update to 2.4.0
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 300115] www/py-django-bitfield: Update to 2.4.0"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Dec 2026 10:12:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300115
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch 2026Q4 references this bug:
URL:
https://cgit.FreeBSD.org/ports/commit/?id=62fff813767f9e95cf759460ee3affc286e23f65
commit 62fff813767f9e95cf759460ee3affc286e23f65
Author: Pattems <patrick@crandol.com>
AuthorDate: 2026-12-01 10:04:53 +0000
Commit: Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2026-12-01 10:10:59 +0000
www/py-django-bitfield: Update to 2.4.0
* bitfield/types.py registers its PostgreSQL adapters through
Database.extensions, which only psycopg2 has. Django's postgresql
backend uses psycopg 3 when it is installed, so "import bitfield"
fails with AttributeError: module 'psycopg' has no attribute
'extensions'. Keep the psycopg2 path and register int dumpers for
Bit and BitHandler with psycopg 3 otherwise; 2.4.0 still has the
psycopg2-only code.
* Since Django 5.0 FieldListFilter.used_parameters holds lists, so the
admin changelist fails with TypeError in BitHandler as soon as the
bitfield filter is used. Take the last value, as Django's own
filters do; 2.4.0 has the same code.
* Switch to the PEP517 build framework to make the port future-proof.
While here, add concurrent to USE_PYTHON, expand pkg-descr and switch
to the more preferred DISTVERSION.
PR: 300115
MFH: 2026Q4
With hat python
Co-Authored-By: Kai Knoblich <kai@FreeBSD.org>
(cherry picked from commit 1c4d5aeabf8003916ef1c578bcf7dc8e371ed4f6)
www/py-django-bitfield/Makefile | 11 ++++---
www/py-django-bitfield/distinfo | 6 ++--
.../files/patch-bitfield_admin.py (new) | 21 ++++++++++++
.../files/patch-bitfield_types.py (new) | 38 ++++++++++++++++++++++
www/py-django-bitfield/pkg-descr | 8 ++++-
5 files changed, 75 insertions(+), 9 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.