Accepting request 710929 from home:pgajdos

- version update to 1.5.0.1
  * Fix broken 'sdist'. LP #1639585.
  * Fix 'console_scripts' entry point syntax. LP #1810734.
  * Add support for JSON output from the CLI.
  * Add support for installed wheels.  E.g., 'dist-info/' dirs.
  * Add support for Python 3.6 and 3.7.
  * Drop support for Python 3.3.

OBS-URL: https://build.opensuse.org/request/show/710929
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=12
This commit is contained in:
Ondřej Súkup 2019-06-20 15:54:21 +00:00 committed by Git OBS Bridge
parent bd6fc462a9
commit 85fd4214e1
4 changed files with 22 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5878d542a4b3f237e359926384f1dde4e099c9f5525d236b1840cf704fa8d474
size 33539

3
pkginfo-1.5.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7424f2c8511c186cd5424bbf31045b77435b37a8d604990b79d4e70d741148bb
size 34496

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Jun 19 12:59:08 UTC 2019 - pgajdos@suse.com
- version update to 1.5.0.1
* Fix broken 'sdist'. LP #1639585.
* Fix 'console_scripts' entry point syntax. LP #1810734.
* Add support for JSON output from the CLI.
* Add support for installed wheels. E.g., 'dist-info/' dirs.
* Add support for Python 3.6 and 3.7.
* Drop support for Python 3.3.
-------------------------------------------------------------------
Wed Dec 19 00:05:38 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pkginfo
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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,10 +17,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests are currently broken.
%bcond_without tests
Name: python-pkginfo
Version: 1.4.2
Version: 1.5.0.1
Release: 0
Summary: Python package for querying metadatdata from sdists/bdists/installed packages
License: MIT
@ -32,10 +30,12 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires: python-setuptools
BuildArch: noarch
%if %{with tests}
# SECTION test requirements
BuildRequires: %{python_module nose}
%endif
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@ -49,8 +49,7 @@ 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
sed -i "s|'2\.1'|None|" pkginfo/tests/test_installed.py
%build
%python_build
@ -60,12 +59,8 @@ sed -i "s|'1\.1'|None|" pkginfo/tests/test_installed.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pkginfo
%if %{with tests}
%check
%{python_expand $python setup.py develop --user
$python setup.py test -q
}
%endif
%pytest
%post
%python_install_alternative pkginfo