From ae143b8f81902983c08061b42df043f3c4544fe527e73a153e4286a3954b47f3 Mon Sep 17 00:00:00 2001
From: Matej Cepl <mcepl@suse.com>
Date: Sat, 21 Jan 2023 06:48:38 +0000
Subject: [PATCH] Accepting request 1059936 from home:eroca:python

Update to version 1.9.6

OBS-URL: https://build.opensuse.org/request/show/1059936
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=16
---
 pkginfo-1.5.0.1.tar.gz |   3 --
 pkginfo-1.9.6.tar.gz   |   3 ++
 python-pkginfo.changes | 109 +++++++++++++++++++++++++++++++++++++++++
 python-pkginfo.spec    |  12 ++---
 4 files changed, 117 insertions(+), 10 deletions(-)
 delete mode 100644 pkginfo-1.5.0.1.tar.gz
 create mode 100644 pkginfo-1.9.6.tar.gz

diff --git a/pkginfo-1.5.0.1.tar.gz b/pkginfo-1.5.0.1.tar.gz
deleted file mode 100644
index 3b1fc01..0000000
--- a/pkginfo-1.5.0.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:7424f2c8511c186cd5424bbf31045b77435b37a8d604990b79d4e70d741148bb
-size 34496
diff --git a/pkginfo-1.9.6.tar.gz b/pkginfo-1.9.6.tar.gz
new file mode 100644
index 0000000..160968e
--- /dev/null
+++ b/pkginfo-1.9.6.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8fd5896e8718a4372f0ea9cc9d96f6417c9b986e23a4d116dda26b62cc29d046
+size 379307
diff --git a/python-pkginfo.changes b/python-pkginfo.changes
index 55dc7e6..dc7578e 100644
--- a/python-pkginfo.changes
+++ b/python-pkginfo.changes
@@ -1,3 +1,112 @@
+-------------------------------------------------------------------
+Fri Jan 20 10:58:46 UTC 2023 - Elisei Roca <eroca@suse.com>
+
+- Update to version 1.9.6
+    1.9.6 (2023-01-08)
+    ------------------
+
+    - Fix various typos in docs / docstrings.  LP #2002232.
+
+    1.9.5 (2023-01-06)
+    ------------------
+
+    - Add stricter typing checks, matching those used in 'twine'.
+
+    - Fix typing errors / gaps reported from 'twine' CI failure.  LP #2002104.
+
+    1.9.4 (2023-01-05)
+    ------------------
+
+    - Fix packaging of stub file for Python typing support.
+
+    1.9.3 (2023-01-03)
+    ------------------
+
+    - Added stub files for Python typing support;  verify using 'mypy'. LP #1876591.
+
+    1.9.2 (2022-11-29)
+    ------------------
+
+    - Drop "universal" wheel support (should be redundant with
+      'python_requires >= 3.6', but just in case).  LP #1998258.
+
+    1.9.1 (2022-11-29)
+    ------------------
+
+    - Restore a deprecated alias for the '_must_decode' helper function, moved
+      from 'pkginfo._compat.must_decode' to 'pkginfo.distribution._must_decode'
+      in 1.90.
+
+    - Repair unit tests broken by dropping Python 2.7 classifier.
+
+    1.9.0 (2022-11-29)
+    ------------------
+
+    - Drop support for Python 2.7.
+
+    - Switch to use 'pytest' vs. 'nose', which doesn't support Python > 3.9.
+
+    1.8.3 (2022-06-08)
+    ------------------
+
+    - Specify supported Python versions in 'setup.py' using 'python_requires'.
+      LP #1977981.
+
+    1.8.2 (2021-12-01)
+    ------------------
+
+    - Add fix for installed distributions with '__package__' set to an empty
+      string. LP #1952946.
+
+    1.8.1 (2021-11-19)
+    ------------------
+
+    - Add 'MANIFEST.in' to ensure example files used by tests are included
+      in source distributions.  LP #1951553.
+
+    1.8.0 (2021-11-18)
+    ------------------
+
+    - Support new standard metadata location for installed dists. LP #1865286.
+
+    - Don't overwrite header-based 'description' with empty payload. LP #1885458.
+
+    - Add support for Metadata-Version 2.2. LP #1928729.
+
+    - Add support for uncompressed tarballs for sdists.  LP #1951457.
+
+    - Add support for Python 3.10.
+
+    1.7.1 (2021-07-09)
+    ------------------
+
+    - Use Python3 to build docs, and fix doctest examples to use Python3-
+      compatible syntax.  LP #1933322.
+
+    1.7.0 (2021-01-16)
+    ------------------
+
+    - Add support for Python 3.9.
+
+    - Drop support for Python 3.5.
+
+    1.6.1 (2020-10-26)
+    ------------------
+
+    - Adjust test classifiers to match supported Python versions. LP #1901127.
+
+    1.6.0 (2020-10-20)
+    ------------------
+
+    - Add support for Python 3.8.
+      LP #1869854.
+
+    - Drop support for Python 3.4.
+
+    - Update tests to match setuptools' change, no longer reporting metadata
+      version for installed packages w/o explicit metadata.  LP #1870197.
+ 
+
 -------------------------------------------------------------------
 Sun Aug 16 15:30:46 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
 
diff --git a/python-pkginfo.spec b/python-pkginfo.spec
index 9431ae6..c626322 100644
--- a/python-pkginfo.spec
+++ b/python-pkginfo.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pkginfo
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pkginfo
-Version:        1.5.0.1
+Version:        1.9.6
 Release:        0
 Summary:        Python package for querying metadatdata from sdists/bdists/installed packages
 License:        MIT
@@ -30,10 +29,11 @@ BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(preun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module wheel}
 # /SECTION
 %python_subpackages
 
@@ -47,8 +47,6 @@ the *.egg-info stored in a "development checkout"
 
 %prep
 %setup -q -n pkginfo-%{version}
-# fix tests until fixed upstream
-sed -i "s|'2\.1'|None|" pkginfo/tests/test_installed.py
 
 %build
 %python_build
@@ -64,7 +62,7 @@ sed -i "s|'2\.1'|None|" pkginfo/tests/test_installed.py
 %post
 %python_install_alternative pkginfo
 
-%preun
+%postun
 %python_uninstall_alternative pkginfo
 
 %files %{python_files}