Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D5E5C4332F for ; Thu, 15 Dec 2022 22:38:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8AEE885337; Thu, 15 Dec 2022 23:38:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671143885; bh=Q6zDBmh//aU8Cv/ZT4u2Kht3RtF8qMc5zq4VQVuArcU=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RbsRoVgjE7ezF8Zk1lG9hMTruoMpYo14pC3djJdG+khJadgF6TlqHIjoOypVNNBJ6 ihWV9wXI/GfkS84uAJo6WVcEipXDcCIucmyMoXCqcR3yws42uL+t5uIBcSFXIteJ9/ kaDu4S9Vz17VmQvAr1PpS1PqWSml2IFVVE3kMU2FtX927WC5C7HJzx8BLgx6cu8lUV BAiTpC5e2TdENA8DL7o/JcUpWPJFrq3+2jY3ShB+q0Qzh2jPKVQBu63R72qqm+Iyzf eVO6XzryaK6O4rPwPgDrVzPcHZtMVB1qiMo3MgS+YovLtYwLQ/hUpdl4mwmt+Nxolp mT/lCUNf4lQyA== Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C3BFD85342; Thu, 15 Dec 2022 23:38:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671143883; bh=Q6zDBmh//aU8Cv/ZT4u2Kht3RtF8qMc5zq4VQVuArcU=; h=From:To:Cc:Subject:Date:From; b=Q5sboxZwz42wioAbaYcLdJ0hKrCWD+1VintUrGdoll1Hcxgu6et18ydFQSykHNFqZ rPEs1PFlDpEeAtQe37/FAC/CipjEuGBZad0eGSBfAlVkn7q8Pm+6W6ztaSodMujKw/ CvHFhNohltfnCNEjyQjmmNG2WRgmzgzzBPWed0FnRv4yhygqPvCbRK+F29G2+F4AvJ nweHzdPoMyvHpMqQcux10OIHl4Htg8/jyqzyHT8x+5O90VaLRiong2+9LK/gxup+Z6 rkc1BfIrcc57R35+ZVWEhIGuRlxvft87LIwI8SvuumCeZP2gKuvrClkCIUwcHkow+Q +ZQ4820xZbXtg== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Tom Rini , Simon Glass Subject: [PATCH] pylibfdt: Fix version normalization warning Date: Thu, 15 Dec 2022 23:37:59 +0100 Message-Id: <20221215223759.137568-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Fix the following version normalization warning: " /usr/lib/python3/dist-packages/setuptools/dist.py:530: UserWarning: Normalizing '2023.01' to '2023.1' " Using suggestion from Richard Jones: https://github.com/pypa/setuptools/issues/308#issuecomment-405817468 Signed-off-by: Marek Vasut --- Cc: Tom Rini Cc: Simon Glass --- scripts/dtc/pylibfdt/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/dtc/pylibfdt/setup.py b/scripts/dtc/pylibfdt/setup.py index ec1fc5002b0..9abdb57595a 100755 --- a/scripts/dtc/pylibfdt/setup.py +++ b/scripts/dtc/pylibfdt/setup.py @@ -22,10 +22,14 @@ allows this script to be run stand-alone, e.g.: from setuptools import setup, Extension from setuptools.command.build_py import build_py as _build_py +from setuptools.extern.packaging import version import os import re import sys +# Disable version normalization +version.Version = version.LegacyVersion + srcdir = os.path.dirname(__file__) with open(os.path.join(srcdir, "../README"), "r") as fh: -- 2.35.1