15
0

Accepting request 850536 from home:jayvdb:branches:devel:languages:python

- Update to v3.0.0
  * Change default behavior to `--from=mixed`

OBS-URL: https://build.opensuse.org/request/show/850536
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-licenses?expand=0&rev=10
This commit is contained in:
2020-11-24 16:18:35 +00:00
committed by Git OBS Bridge
parent 5c64430107
commit df14943c52
4 changed files with 15 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:630f7e1b51ac0751c9c218e2ed76bb982e769301510a0bcca0dd4a47d05198fd
size 24158

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:318f09905529492d13b048a90cbdf92e196fc660e8700dc2e3cf99c7c957c775
size 24441

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 24 00:58:48 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v3.0.0
* Change default behavior to `--from=mixed`
-------------------------------------------------------------------
Sun Oct 4 14:33:50 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pip-licenses
Version: 2.3.0
Version: 3.0.0
Release: 0
Summary: Python packages license list
License: MIT
@@ -49,10 +49,10 @@ Dump the software license list of Python packages installed with pip.
%setup -q -n pip-licenses-%{version}
# PTable is an incompatible PrettyTable fork, and pip-licenses supports
# either https://github.com/raimon49/pip-licenses/pull/52
sed -i 's/PTable/PrettyTable/' setup.py
sed -i 's/PTable/prettytable/' setup.cfg piplicenses.py test_piplicenses.py
sed -i '/addopts/d' setup.cfg
sed -i '/pytest-/d' setup.py
sed -i '/pytest-/d' setup.cfg
sed -i '1{/^#!/d}' piplicenses.py
%build
@@ -65,8 +65,9 @@ sed -i '1{/^#!/d}' piplicenses.py
%check
export LANG=en_US.UTF-8
# Fails due to pytest output incompatibility
%pytest -k 'not test_format_plain_vertical'
# test_format_plain_vertical fails due to pytest output incompatibility
# test_from_meta fails due to SPDX license naming
%pytest -k 'not (test_format_plain_vertical or test_from_meta)'
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{buildroot}%{_bindir}/pip-licenses-%{$python_bin_suffix} -s
%post