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 4jFzV01NCBz6xll9 for ; Thu, 29 Oct 2026 22:31:20 +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 4jFzTz62bgz4f4L 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; bh=QI6bZTN2/usClz5QF2ht0Gc2yYSpELMPThOhr6QCMdo=; b=m7bCamZj3mE4jG3FHYLL8XaauPVESM8R9P/HRqE4dUpbs5/iWIeJPAEc0WbO+dSGWCT8lV mW16yzmF2LYXbS/8sZy1sGQFbju40nxRN/v6dg99D4cNDmCcq+sgYF74yC8Xjik3WLaueb Cro+9ILc/moHu0/55zytBZd3H9bt5AOPGW2pszaGf/Y4pRvvZmqbVoCSqp0SoKE3w90yvn KtsEyF+HyLII/U/aBjb++i+jxIyO1WvVzxVFxg6Av1WiYSxP4wHArtfVPZG6mia3D6k44t CTrT+IuxPPlKPsfYhxdmco6ULRuz3rb0Nz80ew7OnkzQu8PE3+N7jJKo+AICmA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793313079; b=Yy1UTta729ZChZ4+B10/9iXbMc0Pt6co/8YJBO3T4sddlS/O0/Zpsjku9gZLSqmQApUPQ9 znYxW/2rQzFXJSkJCl8HZXfgUNxOTVwuLWesKziqIKxOSMm145kgNb8crRM8aIgVDgxfLM 73GTLYWOS4Y2HYdrJStBiasI0Y13Y3QmTWLuoLsAJBDHl/5dAdFKuUJMPN6boUENaOw2Bj 3o3qAfCTxrMcvaVhMgGqDAbmCTOoGC0ov6Ab7WiacFbPmD9F6fkMAkOeq50biUSoIp2j8/ IzuBqEMrbejG4tfxokZMDjYm3GprjyubgbaQUrmrRn+LfO4UmNsPPxx2ydkpnA== 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; bh=QI6bZTN2/usClz5QF2ht0Gc2yYSpELMPThOhr6QCMdo=; b=pI8eDIXGt7CINz7o99ip4tIBElTFmTxe4N3jgF55jDliTkKBJYS+HnqNAmv2ox/NbUSUwV 5fqgKL1oDDVc8RKon4SZJ94YUtircaoELGHR3KjLba8FbIiIwFTMsZ+/32aH9JN/HdgDxI uK7fn7G5qXquCV5U2T7m4UeTho26nOOpDY1mvZVMapKCvSTTW+YDpePioe/xvxOXIp5PKy hGd9ISCHS/7hgM8IY3QqCQ8Yj7YGHDDyCMAlQE17hnW6WW/oAD2PhA+6zBa/psvkEfQFxn c3jznpaBsdUZrzg8aeRccFuSqTKr8DNxC7ydpUiLJa8JzCHWZEjwx0y5Qr9iVw== 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 4jFzTz5Q71z10Np 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 69TMVJHk025436 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 69TMVJrK025435 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 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [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-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: patrick@crandol.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300270 Bug ID: 300270 Summary: www/py-flask-uploads: Fix import with Werkzeug 1.0+ (cannot import name 'secure_filename') Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: patrick@crandol.com Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org 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. --=20 You are receiving this mail because: You are the assignee for the bug.=