From nobody Mon Oct 26 22:14:35 2026 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jD7G32NzRz6xkmC for ; Mon, 26 Oct 2026 22:14:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jD7G31Rr4z4WZg for ; Mon, 26 Oct 2026 22:14:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793052875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ITXi+qCJv16LeTl9SRovUtg58YlSTl4q8+uwjR5B+VQ=; b=w7TJjADByzo6xwVLo42q279wBzdwUDwQfrzejj8rfIb0iTW2+7afyIlSSwkeVQ8vERE3gQ Jc310Mt07Q/r2jsck4mNVit2oq+He10Hlifv+v7+d0voyQqNWqNzK0/oVZfR/im995h5Ny hIHe06uOP5SOeP78Y7BEFvD5NBSR4et55MuqCQTpj7Wnb/zwEJYrnunfqYKspZ/CNQGo8b cRhlSVMuKH7wDg/i6xfxXnVIIXQIQgSgiE8ZLBavKOPHZ3OIJbFDu3v5K5fKybpGDmZUeW aJL7bF6NyG91AUnz4DaC44aoT1p44raPeqfJlqXETAvVUSxX45xtaaRHbQEkXQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793052875; b=PhOoDaJrpVT/I4Pa4citeqMi7aUxhPCRGDhRyqOGRf2wLzh9VmzT53K9cirraB7mQow9Vh YpXKMjXl80/3vPSZGuKkgcsVbr3BDK0YfgJJ7lLtOnTualThuAsWELhc17wSvajd7HK1WS ezEaCqW1MfxCoVRuirGE+ky8nRBP06dhmMXCQTSLSCGc+2lw5P9GNNMYxWFg4YFGvKin/Q 1CwW/AZ7S1VeZWkhQpd6UawXPvNYax8BPbQET3tBJaXqDEvMtzxnnJZNMwYWojEC0oisrS WokrQ/MmiwQLYfzpepba08zf5/kwwh5aa4+iY/A1Q4ZHJdNR98K9cwbBEL4CUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793052875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ITXi+qCJv16LeTl9SRovUtg58YlSTl4q8+uwjR5B+VQ=; b=T02rvVfd31X4BPPI4fcuXUgGZs4s6LhdK7TY264sgG0xQl8Z26r7t5UUsHKCUrqBM84Cfi oHgLODUe0Qq71bWU01dbuVSdyx2mIcDVdIW/zPfsMyl23OcG4lVrbHE57sqPnWJni0qvEX QgqisFvDt4NLMsd2sqd4SKcSwSAljW3XjCMSUjuatgKlnyJeZWMeN3xdliJzSAOXOtsrig tpBHEVptwFqeCUaiiPqBATkh25e082FXeGnfAWKoVvZsH5YwOqnf/XKbiYQZMqWMEPPTd+ BX/9xTLYhK3VIQJlzLQQbnpv/okiL7LBlt3YlGT1L9AKOjIsTJNN/dHNe63qnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jD7G3175KzsqD for ; Mon, 26 Oct 2026 22:14:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 69QMEZE5051283 for ; Mon, 26 Oct 2026 22:14:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69QMEZiI051280 for python@FreeBSD.org; Mon, 26 Oct 2026 22:14:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 300115] www/py-django-bitfield: Update to 2.4.0 Date: Mon, 26 Oct 2026 22:14:35 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Archive: https://lists.freebsd.org/archives/freebsd-python X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 300115: www/py-django-bitfield: Update to 2.4.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300115 --- Description --- django-bitfield cannot be imported when Django uses psycopg 3, which its postgresql backend prefers when it is installed, on any Python version: AttributeError: module 'psycopg' has no attribute 'extensions' bitfield/types.py registers its PostgreSQL adapters through Database.extensions, which only psycopg2 has. In addition, 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. 2.4.0 still has both. The patch keeps the psycopg2 path and registers int dumpers for Bit and BitHandler with psycopg 3 otherwise, takes the last value of the filter parameters, as Django's own filters do, and updates the port to 2.4.0 (2026-08-02): - the sdist is now django_bitfield-.tar.gz, so DISTNAME is set; - six is dropped (2.4.0 no longer imports it); - the admin patch is rebased and the types patch refreshed; - concurrent is added to USE_PYTHON (the package does not change), pkg-descr is expanded and the patches in files/ get a header saying what each one does and its upstream status (Description, Issue ID, Changeset, TODO). Misc changes: - the port switches to USE_PYTHON=3Dpep517 (the package metadata becomes dist-info) Impact: no ports depend on it. Tested: poudriere bulk -C -t on 14.5-RELEASE amd64, both with Python 3.12 and with DEFAULT_VERSIONS+=3Dpython=3D3.13: builds, all 7 modules import from the built package, and BitHandler works with Django 5.2.18. Earlier, with 2.2.0 and the same patches, the admin changelist with the bitfield filter returned 200 on Django 5.2, and with psycopg 3.3.6 Bit and BitHandler adapt to integer literals and binary int8. After the switch to USE_PYTHON=3Dpep517, the package installs its metadata as .dist-info, and the modules still import from the built package. Upstream: master has the same code; both fixes have been submitted upstream: the psycopg 3 support (https://github.com/disqus/django-bitfield/pull/139) and the admin filter (https://github.com/disqus/django-bitfield/pull/140).