All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pylibfdt: Fix version normalization warning
@ 2022-12-15 22:37 Marek Vasut
  2022-12-16 18:34 ` Simon Glass
  2022-12-23 15:01 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2022-12-15 22:37 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Tom Rini, Simon Glass

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 <marex@denx.de>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pylibfdt: Fix version normalization warning
  2022-12-15 22:37 [PATCH] pylibfdt: Fix version normalization warning Marek Vasut
@ 2022-12-16 18:34 ` Simon Glass
  2022-12-23 15:01 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2022-12-16 18:34 UTC (permalink / raw)
  To: Marek Vasut; +Cc: u-boot, Tom Rini

Hi Marek,

On Thu, 15 Dec 2022 at 14:38, Marek Vasut <marex@denx.de> wrote:
>
> 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 <marex@denx.de>
> ---
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  scripts/dtc/pylibfdt/setup.py | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Another option would be to drop the leading 0 from U-Boot, but that
would mess with sorting so that 2022.10 would come before 2022.04


>
> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pylibfdt: Fix version normalization warning
  2022-12-15 22:37 [PATCH] pylibfdt: Fix version normalization warning Marek Vasut
  2022-12-16 18:34 ` Simon Glass
@ 2022-12-23 15:01 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-12-23 15:01 UTC (permalink / raw)
  To: Marek Vasut; +Cc: u-boot, Simon Glass

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

On Thu, Dec 15, 2022 at 11:37:59PM +0100, Marek Vasut wrote:

> 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 <marex@denx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-23 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 22:37 [PATCH] pylibfdt: Fix version normalization warning Marek Vasut
2022-12-16 18:34 ` Simon Glass
2022-12-23 15:01 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.