From nobody Thu Oct 29 22:31:19 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 4jFzTz5Tysz6xm4v for ; Thu, 29 Oct 2026 22:31:19 +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 4jFzTz4L39z4f4K for ; Thu, 29 Oct 2026 22:31:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793313079; 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=SjCIW2VRvTdHfm5imEfLOGdk4qn2JNTTGsnNrUrWWhs=; b=avggd6pm0+sCh+AB1BZPjmk54nAWJbCQI+nvdeimNaNvlebWfQbekG3XXAGgRwHNGItfdV xgqTq0680GC6DcNYppVO1MOWpMHgLFDcIXHy9gMfofjeDAnirhqnyZW5dMl/dx0tZXI6Rz TPZtoBjOdKRMQNajnWyFDgS2BNEfuxsEaHzgKOot/ErlCEYoUtKB3YCLh+mpTOu84WIRaS TCuuJJ+/ox9oy6PSDLXsDBXVpnEpp9S0z3vDHIVtCplcIyN0SByV9T5Ou/x1wJcFKTjdd6 pB1Rr7sY8dyL5jNHNgidfySXlcFEEL6CyFfoFidyNgwsVn9pH6B0vf3wEpmH6A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793313079; b=N6/9gHkli90AIm70PpLE4kv6nwQ/b5w93RFaSsyW51QrBb1ojmJ+cFgzDnw6w0J0vwaMOM r6a7l9YPH7bRKOIwhT2ujfFLKhWYWTUywJ37DiAbUxt7tmC0k40ZCz3m810FqGDoxixVkK LiFy5QxF5s1lB0xDzPFZEOP/qIMfw8eBGOm9LA/qHg7kcdUPcczNUYEhNw7OnPXM+CORS7 YXnUfFQnQEYb4/UaRqHlAfUE51utElwxKOQ9wesG73pRjR90da1BEsEzUhvLI05OC4DqGM pLE+5sNlVK96t86MJy6bTGDuzr69bzyg/fFgiOvQCGEOGjHae6zhQDLj8+6kMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793313079; 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=SjCIW2VRvTdHfm5imEfLOGdk4qn2JNTTGsnNrUrWWhs=; b=Kxs11lBj/PE5A0xR5qnmw7yzpzDv71U94l7lvI4Bn120VLuDC+k32P80e+N1/h7oeG6zsH jSYu1S3UBAJcwSYWEUgfF6hZ07pCz6OIQKpGW6ZCCU6/Idzob2/fOkuZtI0KYmJy0iOxlC TSAt2GFGIr6runFQ+zzev6IEhCrNapPC4zoeUqUrsjYZYVeGVt51KLogP4WR60TUpwZxAq DAjJsc2wKt+Gh/jW2WYMSPnIunH2et8beBi8FGdc9KXx98Lysii6nJMUra6nbIAV+stz89 j7n1tLTsuCpy0392af85FJ5IazIbY3MnLcqxxkIBiJA/LOEbPk0GnQxNfvzZpg== 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 4jFzTz3jJ6z10Lf for ; Thu, 29 Oct 2026 22:31:19 +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 69TMVJX9025420 for ; Thu, 29 Oct 2026 22:31:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69TMVJPR025419 for python@FreeBSD.org; Thu, 29 Oct 2026 22:31:19 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 300270] www/py-flask-uploads: Fix import with Werkzeug 1.0+ (cannot import name 'secure_filename') Date: Thu, 29 Oct 2026 22:31:19 +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 300270: www/py-flask-uploads: Fix import with Werkzeug 1.0+ (cannot imp= ort name 'secure_filename') https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300270 --- Description --- flask_uploads cannot be imported with the tree's Werkzeug 3.1, on any Python version (3.12, the current default, shown): $ python3.12 -c 'import flask_uploads' ImportError: cannot import name 'secure_filename' from 'werkzeug' (/usr/local/lib/python3.12/site-packages/werkzeug/__init__.py) flask_uploads.py:26 imports secure_filename and FileStorage from the werkzeug top level. Werkzeug 1.0 removed those re-exports. The patch imports them from werkzeug.utils and werkzeug.datastructures, bumps PORTREVISION and gives the patch in files/ a header saying what it 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 with Python 3.12: builds, and flask_uploads imports from the built package; the package code also imports on 3.13 and 3.14. With Werkzeug 3.1.8 and Flask 3.1.3, uploading a file, refusing a disallowed one and serving an upload work on 3.12 and 3.13. 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: 0.2.1 (2016-07-23) is the last release. The maintained community fork is Flask-Reuploaded; switching the port to it would be the long-term option.