From 994385f0264a2a980874b22b4ca8d986b3accdb30cfa3d5fb9dc31edb301bedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 11 Mar 2020 14:50:30 +0000 Subject: [PATCH] Accepting request 783880 from home:mcalabkova:branches:devel:languages:python - Update to 20.3 * Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU (e.g. ARM-v8, aarch64), to report the wrong bitness. - Drop already upstreamed patch issue_254.patch OBS-URL: https://build.opensuse.org/request/show/783880 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=38 --- issue_254.patch | 80 ---------------------------------------- packaging-20.1.tar.gz | 3 -- packaging-20.3.tar.gz | 3 ++ python-packaging.changes | 8 ++++ python-packaging.spec | 4 +- 5 files changed, 12 insertions(+), 86 deletions(-) delete mode 100644 issue_254.patch delete mode 100644 packaging-20.1.tar.gz create mode 100644 packaging-20.3.tar.gz diff --git a/issue_254.patch b/issue_254.patch deleted file mode 100644 index 0a62898..0000000 --- a/issue_254.patch +++ /dev/null @@ -1,80 +0,0 @@ -From f1d67cb7b6903c29c725fe46777d6e28757e04d5 Mon Sep 17 00:00:00 2001 -From: Marius Bakke -Date: Tue, 4 Feb 2020 09:29:23 +0100 -Subject: [PATCH] Fix test_linux_platforms_manylinux* on architectures other - than x86_64 (#256) - -* Fix test_linux_platforms_manylinux tests for i686. - - By not assuming the platform is x86_64. Fixes #254. - -* Allow test_linux_platforms_manylinux tests to pass on non x86. - - The expected output only occurs on x86 platforms, so mock it on other - architectures. - -Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> ---- - tests/test_tags.py | 30 ++++++++++++++++++------------ - 1 file changed, 18 insertions(+), 12 deletions(-) - -diff --git a/tests/test_tags.py b/tests/test_tags.py -index 1c05969..d7c1514 100644 ---- a/tests/test_tags.py -+++ b/tests/test_tags.py -@@ -435,37 +435,43 @@ def test_linux_platforms_manylinux_unsupported(self, monkeypatch): - linux_platform = list(tags._linux_platforms(is_32bit=False)) - assert linux_platform == ["linux_x86_64"] - -- def test_linux_platforms_manylinux1(self, monkeypatch): -+ def test_linux_platforms_manylinux1(self, is_x86, monkeypatch): - monkeypatch.setattr( - tags, "_is_manylinux_compatible", lambda name, _: name == "manylinux1" - ) -- if platform.system() != "Linux": -+ if platform.system() != "Linux" or not is_x86: - monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64") -+ monkeypatch.setattr(platform, "machine", lambda: "x86_64") - platforms = list(tags._linux_platforms(is_32bit=False)) -- assert platforms == ["manylinux1_x86_64", "linux_x86_64"] -+ arch = platform.machine() -+ assert platforms == ["manylinux1_" + arch, "linux_" + arch] - -- def test_linux_platforms_manylinux2010(self, monkeypatch): -+ def test_linux_platforms_manylinux2010(self, is_x86, monkeypatch): - monkeypatch.setattr( - tags, "_is_manylinux_compatible", lambda name, _: name == "manylinux2010" - ) -- if platform.system() != "Linux": -+ if platform.system() != "Linux" or not is_x86: - monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64") -+ monkeypatch.setattr(platform, "machine", lambda: "x86_64") - platforms = list(tags._linux_platforms(is_32bit=False)) -- expected = ["manylinux2010_x86_64", "manylinux1_x86_64", "linux_x86_64"] -+ arch = platform.machine() -+ expected = ["manylinux2010_" + arch, "manylinux1_" + arch, "linux_" + arch] - assert platforms == expected - -- def test_linux_platforms_manylinux2014(self, monkeypatch): -+ def test_linux_platforms_manylinux2014(self, is_x86, monkeypatch): - monkeypatch.setattr( - tags, "_is_manylinux_compatible", lambda name, _: name == "manylinux2014" - ) -- if platform.system() != "Linux": -+ if platform.system() != "Linux" or not is_x86: - monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64") -+ monkeypatch.setattr(platform, "machine", lambda: "x86_64") - platforms = list(tags._linux_platforms(is_32bit=False)) -+ arch = platform.machine() - expected = [ -- "manylinux2014_x86_64", -- "manylinux2010_x86_64", -- "manylinux1_x86_64", -- "linux_x86_64", -+ "manylinux2014_" + arch, -+ "manylinux2010_" + arch, -+ "manylinux1_" + arch, -+ "linux_" + arch, - ] - assert platforms == expected - diff --git a/packaging-20.1.tar.gz b/packaging-20.1.tar.gz deleted file mode 100644 index 13a4e85..0000000 --- a/packaging-20.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 -size 72955 diff --git a/packaging-20.3.tar.gz b/packaging-20.3.tar.gz new file mode 100644 index 0000000..ebe8008 --- /dev/null +++ b/packaging-20.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c292b474fda1671ec57d46d739d072bfd495a4f51ad01a055121d81e952b7a3 +size 73015 diff --git a/python-packaging.changes b/python-packaging.changes index 09e8ecd..a091aeb 100644 --- a/python-packaging.changes +++ b/python-packaging.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Mar 11 14:37:16 UTC 2020 - Marketa Calabkova + +- Update to 20.3 + * Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU + (e.g. ARM-v8, aarch64), to report the wrong bitness. +- Drop already upstreamed patch issue_254.patch + ------------------------------------------------------------------- Mon Feb 10 14:51:38 UTC 2020 - Ondřej Súkup diff --git a/python-packaging.spec b/python-packaging.spec index 3b6180f..e05fd06 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -26,14 +26,13 @@ %bcond_with test %endif Name: python-packaging%{psuffix} -Version: 20.1 +Version: 20.3 Release: 0 Summary: Core utilities for Python packages License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/pypa/packaging Source: https://pypi.io/packages/source/p/packaging/packaging-%{version}.tar.gz -Patch0: issue_254.patch BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,7 +55,6 @@ Core utilities for Python packages %prep %setup -q -n packaging-%{version} -%patch0 -p1 # sdist must provide a packaging.egg-info, used below in install phase test -d packaging.egg-info