From 1cee9ce667f6ffaac884f3b363e877c074b9f44f344b886dd6ec48a7b812f023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 20 May 2018 16:41:20 +0000 Subject: [PATCH] Accepting request 610774 from home:frispete:python - fix failing tests with sed - enable tests - Update to version 1.4.2 - Use relative imports in pkginfo modules. Supports vendoring of the package into setuptools. - Add support for ``Provides-Extra`` and ``Description-Content-Type`` fields. Per https://packaging.python.org/specifications/. See: PEP 566. - Remove support for old setuptools leaving ``PKG-INFO`` in the root of the project directory. OBS-URL: https://build.opensuse.org/request/show/610774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=6 --- pkginfo-1.4.1.tar.gz | 3 --- pkginfo-1.4.2.tar.gz | 3 +++ python-pkginfo.changes | 17 +++++++++++++++++ python-pkginfo.spec | 13 ++++++++----- 4 files changed, 28 insertions(+), 8 deletions(-) delete mode 100644 pkginfo-1.4.1.tar.gz create mode 100644 pkginfo-1.4.2.tar.gz diff --git a/pkginfo-1.4.1.tar.gz b/pkginfo-1.4.1.tar.gz deleted file mode 100644 index 1c6ed32..0000000 --- a/pkginfo-1.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb1a6aeabfc898f5df124e7e00303a5b3ec9a489535f346bfbddb081af93f89e -size 32001 diff --git a/pkginfo-1.4.2.tar.gz b/pkginfo-1.4.2.tar.gz new file mode 100644 index 0000000..982b703 --- /dev/null +++ b/pkginfo-1.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5878d542a4b3f237e359926384f1dde4e099c9f5525d236b1840cf704fa8d474 +size 33539 diff --git a/python-pkginfo.changes b/python-pkginfo.changes index 28d4019..795b928 100644 --- a/python-pkginfo.changes +++ b/python-pkginfo.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sun May 20 16:11:28 UTC 2018 - hpj@urpla.net + +- fix failing tests with sed +- enable tests + +------------------------------------------------------------------- +Sat May 19 09:48:01 UTC 2018 - hpj@urpla.net + +- Update to version 1.4.2 + - Use relative imports in pkginfo modules. Supports vendoring of the + package into setuptools. + - Add support for ``Provides-Extra`` and ``Description-Content-Type`` fields. + Per https://packaging.python.org/specifications/. See: PEP 566. + - Remove support for old setuptools leaving ``PKG-INFO`` in the root of + the project directory. + ------------------------------------------------------------------- Wed Apr 19 15:35:40 UTC 2017 - toddrme2178@gmail.com diff --git a/python-pkginfo.spec b/python-pkginfo.spec index bea70e2..a3e3159 100644 --- a/python-pkginfo.spec +++ b/python-pkginfo.spec @@ -1,7 +1,7 @@ # # spec file for package python-pkginfo # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,21 +17,21 @@ # Tests are currently broken. -%bcond_with tests +%bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pkginfo -Version: 1.4.1 +Version: 1.4.2 Release: 0 Summary: Query metadatdata from sdists / bdists / installed packages License: MIT Group: Development/Languages/Python Url: http://pypi.python.org/pypi/pkginfo/ Source: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros %if %{with tests} BuildRequires: %{python_module nose} %endif @@ -51,6 +51,9 @@ the *.egg-info stored in a "development checkout" %prep %setup -q -n pkginfo-%{version} +# fix tests until fixed upstream +sed -i 's|1\.1|2.1|' pkginfo/tests/__init__.py +sed -i "s|'1\.1'|None|" pkginfo/tests/test_installed.py %build %python_build