Message ID | 20220930161921.266633-5-stephen@that.guru |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=Gv3dSll3; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MfFn914lqz1yql for <incoming@patchwork.ozlabs.org>; Sat, 1 Oct 2022 02:19:57 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MfFn90WNBz3c6w for <incoming@patchwork.ozlabs.org>; Sat, 1 Oct 2022 02:19:57 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=Gv3dSll3; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=that.guru (client-ip=136.175.108.92; helo=mail-108-mta92.mxroute.com; envelope-from=stephen@that.guru; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=Gv3dSll3; dkim-atps=neutral Received: from mail-108-mta92.mxroute.com (mail-108-mta92.mxroute.com [136.175.108.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MfFmn6mbVz3c6Q for <patchwork@lists.ozlabs.org>; Sat, 1 Oct 2022 02:19:36 +1000 (AEST) Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta92.mxroute.com (ZoneMTA) with ESMTPSA id 1838f321c040002b7a.001 for <patchwork@lists.ozlabs.org> (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Fri, 30 Sep 2022 16:19:29 +0000 X-Zone-Loop: 578b811d774a0bb7cbb3983bcd230adcdaeeb226e802 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=x; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CEJ3VeHGOjiT0dJQhteFnSJ9tyt1M/ywCAaYK+cxW4k=; b=Gv3dSll3uIRWCmGmXd9h/afI4b p8o1bMUO0TySWHRIlT2j/Qx5z+6qk4n/MvBRTKSOX1wWVi1owDEphbpBtCAG0VuwHtgol9UjXJS/m T4m1o+NxMlZ8hstfVFYZtUEpTzm2JxjICFi5cZQxP05vgqdSQN3QsDCavbh1+C9LYkqJ7K9d2d57B QGAQGEYR41Km1jeoVmF5gF6DtLbBjPdzApx/t77T5qiuZxa9HlYnO+G19NV2l6aXkJaSDC+HKN0on 5KabiXWMd4Bcxo7iEZeshT6J/wpBKuP84t3UZTCPs/++MTm+gpB+Mza0LbzPBfw9rYy+o/213txuQ puHp6rpA==; From: Stephen Finucane <stephen@that.guru> To: patchwork@lists.ozlabs.org Subject: [PATCH 05/10] manage: Check Django version on startup Date: Fri, 30 Sep 2022 17:19:16 +0100 Message-Id: <20220930161921.266633-5-stephen@that.guru> In-Reply-To: <20220930161921.266633-1-stephen@that.guru> References: <20220930161921.266633-1-stephen@that.guru> MIME-Version: 1.0 X-Authenticated-Id: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development <patchwork.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/patchwork/> List-Post: <mailto:patchwork@lists.ozlabs.org> List-Help: <mailto:patchwork-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=subscribe> Cc: Carlos O'Donell <carlos@redhat.com>, Siddhesh Poyarekar <sipoyare@redhat.com>, DJ Delorie <dj@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
[01/10] tests: Change from expectedFailure to skip
|
expand
|
diff --git manage.py manage.py index 033c8ae4..e227481e 100755 --- manage.py +++ manage.py @@ -7,6 +7,11 @@ if __name__ == "__main__": "DJANGO_SETTINGS_MODULE", "patchwork.settings.production" ) + import django + + if django.VERSION < (3, 2): + raise Exception('patchwork requires Django 3.2 or greater') + from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
This was recently reported as an issue. Add a simple check to ensure people update their dependencies as expected. Signed-off-by: Stephen Finucane <stephen@that.guru> Cc: Siddhesh Poyarekar <sipoyare@redhat.com> Cc: DJ Delorie <dj@redhat.com> Cc: Carlos O'Donell <carlos@redhat.com> --- manage.py | 5 +++++ 1 file changed, 5 insertions(+)