Hello community,
here is the log from the commit of package python-pip-licenses for
openSUSE:Factory checked in at 2020-11-24 22:17:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pip-licenses (Old)
and /work/SRC/openSUSE:Factory/.python-pip-licenses.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pip-licenses"
Tue Nov 24 22:17:15 2020 rev:5 rq:850560 version:3.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pip-licenses/python-pip-licenses.changes
2020-10-23 12:22:22.708684017 +0200
+++
/work/SRC/openSUSE:Factory/.python-pip-licenses.new.5913/python-pip-licenses.changes
2020-11-24 22:17:28.943773726 +0100
@@ -1,0 +2,6 @@
+Tue Nov 24 00:58:48 UTC 2020 - John Vandenberg <[email protected]>
+
+- Update to v3.0.0
+ * Change default behavior to `--from=mixed`
+
+-------------------------------------------------------------------
Old:
----
pip-licenses-2.3.0.tar.gz
New:
----
pip-licenses-3.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pip-licenses.spec ++++++
--- /var/tmp/diff_new_pack.j18U5K/_old 2020-11-24 22:17:30.555775220 +0100
+++ /var/tmp/diff_new_pack.j18U5K/_new 2020-11-24 22:17:30.559775223 +0100
@@ -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 @@
%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 @@
%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
++++++ pip-licenses-2.3.0.tar.gz -> pip-licenses-3.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/CHANGELOG.md
new/pip-licenses-3.0.0/CHANGELOG.md
--- old/pip-licenses-2.3.0/CHANGELOG.md 2020-08-02 08:27:29.000000000 +0200
+++ new/pip-licenses-3.0.0/CHANGELOG.md 2020-10-25 02:28:51.000000000 +0100
@@ -1,5 +1,13 @@
## CHANGELOG
+### 3.0.0
+
+* Dropped support Python 3.5
+* Clarified support for Python 3.9
+* Migrate package metadata to `setup.cfg`
+* Breaking changes
+ * Change default behavior to `--from=mixed`
+
### 2.3.0
* Implement new option for manage unicode characters
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/PKG-INFO
new/pip-licenses-3.0.0/PKG-INFO
--- old/pip-licenses-2.3.0/PKG-INFO 2020-08-02 08:30:42.341660000 +0200
+++ new/pip-licenses-3.0.0/PKG-INFO 2020-10-25 02:39:18.472749700 +0100
@@ -1,10 +1,13 @@
Metadata-Version: 2.1
Name: pip-licenses
-Version: 2.3.0
+Version: 3.0.0
Summary: Dump the software license list of Python packages installed with pip.
Home-page: https://github.com/raimon49/pip-licenses
Author: raimon
+Author-email: [email protected]
License: MIT License
+Project-URL: Releases, https://github.com/raimon49/pip-licenses/releases
+Project-URL: Issues, https://github.com/raimon49/pip-licenses/issues
Description: pip-licenses
============
@@ -105,9 +108,9 @@
Option: from
~~~~~~~~~~~~
- By default, this tool finds the license from package Metadata
- (``--from=meta``). However, depending on the type of package, it does
- not declare a license only in the Classifiers.
+ By default, this tool finds the license from `Trove
+ Classifiers <https://pypi.org/classifiers/>`__ or package Metadata.
Some
+ Python packages declare their license only in Trove Classifiers.
(See also): `Set license to MIT in setup.py by alisianoi ・ Pull Request
#1058 ・
@@ -128,22 +131,20 @@
Author-email: [email protected]
License: UNKNOWN
- If you want to refer to the license declared in `the
- Classifiers
<https://pypi.python.org/pypi?%3Aaction=list_classifiers>`__,
- use the ``--from=classifier`` option.
+ The mixed mode (``--from=mixed``) of this tool works well and looks for
+ licenses.
.. code:: bash
- (venv) $ pip-licenses --from=classifier --with-system | grep
setuptools
+ (venv) $ pip-licenses --from=mixed --with-system | grep setuptools
setuptools 38.5.0 MIT License
- If you want to find a license from whichever, mixed mode
- (``--from=mixed``) is available in ``pip-licenses`` version 1.14.0 or
- later.
-
- In mixed mode, it first tries to look for licenses in the Classifiers.
- When not found in the Classifiers, the license declared in Metadata is
- displayed.
+ In mixed mode, it first tries to look for licenses in the Trove
+ Classifiers. When not found in the Trove Classifiers, the license
+ declared in Metadata is displayed.
+
+ If you want to looks only in metadata, use ``--from=meta``. If you want
+ to looks only in Trove Classifiers, use ``--from=classifier``.
**Note:** If neither can find license information, please check with
the
``with-authors`` and ``with-urls`` options and contact the software
@@ -153,6 +154,8 @@
- The ``c`` keyword is prepared as alias of ``classifier``.
- The ``mix`` keyword is prepared as alias of ``mixed``.
+ - Default behavior in this tool
+
Option: with-system
~~~~~~~~~~~~~~~~~~~
@@ -629,6 +632,16 @@
CHANGELOG
---------
+ 3.0.0
+ ~~~~~
+
+ - Dropped support Python 3.5
+ - Clarified support for Python 3.9
+ - Migrate package metadata to ``setup.cfg``
+ - Breaking changes
+
+ - Change default behavior to ``--from=mixed``
+
2.3.0
~~~~~
@@ -854,11 +867,12 @@
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: System :: System Shells
-Requires-Python: ~=3.5
+Requires-Python: ~=3.6
Provides-Extra: test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/README.md
new/pip-licenses-3.0.0/README.md
--- old/pip-licenses-2.3.0/README.md 2020-08-02 08:19:12.000000000 +0200
+++ new/pip-licenses-3.0.0/README.md 2020-08-24 11:33:31.000000000 +0200
@@ -81,7 +81,7 @@
### Option: from
-By default, this tool finds the license from package Metadata (`--from=meta`).
However, depending on the type of package, it does not declare a license only
in the Classifiers.
+By default, this tool finds the license from [Trove
Classifiers](https://pypi.org/classifiers/) or package Metadata. Some Python
packages declare their license only in Trove Classifiers.
(See also): [Set license to MIT in setup.py by alisianoi ・ Pull Request #1058
・ pypa/setuptools](https://github.com/pypa/setuptools/pull/1058), [PEP
314\#License](https://www.python.org/dev/peps/pep-0314/#license)
@@ -98,22 +98,23 @@
License: UNKNOWN
```
-If you want to refer to the license declared in [the
Classifiers](https://pypi.python.org/pypi?%3Aaction=list_classifiers), use the
`--from=classifier` option.
+The mixed mode (`--from=mixed`) of this tool works well and looks for licenses.
```bash
-(venv) $ pip-licenses --from=classifier --with-system | grep setuptools
+(venv) $ pip-licenses --from=mixed --with-system | grep setuptools
setuptools 38.5.0 MIT License
```
-If you want to find a license from whichever, mixed mode (`--from=mixed`) is
available in `pip-licenses` version 1.14.0 or later.
+In mixed mode, it first tries to look for licenses in the Trove Classifiers.
When not found in the Trove Classifiers, the license declared in Metadata is
displayed.
-In mixed mode, it first tries to look for licenses in the Classifiers. When
not found in the Classifiers, the license declared in Metadata is displayed.
+If you want to looks only in metadata, use `--from=meta`. If you want to looks
only in Trove Classifiers, use `--from=classifier`.
**Note:** If neither can find license information, please check with the
`with-authors` and `with-urls` options and contact the software author.
* The `m` keyword is prepared as alias of `meta`.
* The `c` keyword is prepared as alias of `classifier`.
* The `mix` keyword is prepared as alias of `mixed`.
+ * Default behavior in this tool
### Option: with-system
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/pip_licenses.egg-info/PKG-INFO
new/pip-licenses-3.0.0/pip_licenses.egg-info/PKG-INFO
--- old/pip-licenses-2.3.0/pip_licenses.egg-info/PKG-INFO 2020-08-02
08:30:42.000000000 +0200
+++ new/pip-licenses-3.0.0/pip_licenses.egg-info/PKG-INFO 2020-10-25
02:39:18.000000000 +0100
@@ -1,10 +1,13 @@
Metadata-Version: 2.1
Name: pip-licenses
-Version: 2.3.0
+Version: 3.0.0
Summary: Dump the software license list of Python packages installed with pip.
Home-page: https://github.com/raimon49/pip-licenses
Author: raimon
+Author-email: [email protected]
License: MIT License
+Project-URL: Releases, https://github.com/raimon49/pip-licenses/releases
+Project-URL: Issues, https://github.com/raimon49/pip-licenses/issues
Description: pip-licenses
============
@@ -105,9 +108,9 @@
Option: from
~~~~~~~~~~~~
- By default, this tool finds the license from package Metadata
- (``--from=meta``). However, depending on the type of package, it does
- not declare a license only in the Classifiers.
+ By default, this tool finds the license from `Trove
+ Classifiers <https://pypi.org/classifiers/>`__ or package Metadata.
Some
+ Python packages declare their license only in Trove Classifiers.
(See also): `Set license to MIT in setup.py by alisianoi ・ Pull Request
#1058 ・
@@ -128,22 +131,20 @@
Author-email: [email protected]
License: UNKNOWN
- If you want to refer to the license declared in `the
- Classifiers
<https://pypi.python.org/pypi?%3Aaction=list_classifiers>`__,
- use the ``--from=classifier`` option.
+ The mixed mode (``--from=mixed``) of this tool works well and looks for
+ licenses.
.. code:: bash
- (venv) $ pip-licenses --from=classifier --with-system | grep
setuptools
+ (venv) $ pip-licenses --from=mixed --with-system | grep setuptools
setuptools 38.5.0 MIT License
- If you want to find a license from whichever, mixed mode
- (``--from=mixed``) is available in ``pip-licenses`` version 1.14.0 or
- later.
-
- In mixed mode, it first tries to look for licenses in the Classifiers.
- When not found in the Classifiers, the license declared in Metadata is
- displayed.
+ In mixed mode, it first tries to look for licenses in the Trove
+ Classifiers. When not found in the Trove Classifiers, the license
+ declared in Metadata is displayed.
+
+ If you want to looks only in metadata, use ``--from=meta``. If you want
+ to looks only in Trove Classifiers, use ``--from=classifier``.
**Note:** If neither can find license information, please check with
the
``with-authors`` and ``with-urls`` options and contact the software
@@ -153,6 +154,8 @@
- The ``c`` keyword is prepared as alias of ``classifier``.
- The ``mix`` keyword is prepared as alias of ``mixed``.
+ - Default behavior in this tool
+
Option: with-system
~~~~~~~~~~~~~~~~~~~
@@ -629,6 +632,16 @@
CHANGELOG
---------
+ 3.0.0
+ ~~~~~
+
+ - Dropped support Python 3.5
+ - Clarified support for Python 3.9
+ - Migrate package metadata to ``setup.cfg``
+ - Breaking changes
+
+ - Change default behavior to ``--from=mixed``
+
2.3.0
~~~~~
@@ -854,11 +867,12 @@
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: System :: System Shells
-Requires-Python: ~=3.5
+Requires-Python: ~=3.6
Provides-Extra: test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/piplicenses.py
new/pip-licenses-3.0.0/piplicenses.py
--- old/pip-licenses-2.3.0/piplicenses.py 2020-08-02 08:27:50.000000000
+0200
+++ new/pip-licenses-3.0.0/piplicenses.py 2020-10-25 02:27:28.000000000
+0100
@@ -61,7 +61,7 @@
open = open # allow monkey patching
__pkgname__ = 'pip-licenses'
-__version__ = '2.3.0'
+__version__ = '3.0.0'
__author__ = 'raimon'
__license__ = 'MIT License'
__summary__ = ('Dump the software license list of '
@@ -583,10 +583,10 @@
version='%(prog)s ' + __version__)
parser.add_argument('--from',
action='store', type=str,
- default='meta', metavar='SOURCE',
+ default='mixed', metavar='SOURCE',
help=('where to find license information\n'
'"meta", "classifier, "mixed"\n'
- 'default: --from=meta'))
+ 'default: --from=mixed'))
parser.add_argument('-s', '--with-system',
action='store_true',
default=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/setup.cfg
new/pip-licenses-3.0.0/setup.cfg
--- old/pip-licenses-2.3.0/setup.cfg 2020-08-02 08:30:42.345660000 +0200
+++ new/pip-licenses-3.0.0/setup.cfg 2020-10-25 02:39:18.472749700 +0100
@@ -1,3 +1,46 @@
+[metadata]
+author_email = [email protected]
+project_urls =
+ Releases = https://github.com/raimon49/pip-licenses/releases
+ Issues = https://github.com/raimon49/pip-licenses/issues
+keywords = pip pypi package license check
+classifiers =
+ Development Status :: 5 - Production/Stable
+ Intended Audience :: Developers
+ License :: OSI Approved :: MIT License
+ Programming Language :: Python :: 3
+ Programming Language :: Python :: 3 :: Only
+ Programming Language :: Python :: 3.6
+ Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
+ Programming Language :: Python :: 3.9
+ Topic :: System :: Systems Administration
+ Topic :: System :: System Shells
+
+[options]
+packages = find:
+include_package_data = True
+python_requires = ~=3.6
+py_modules =
+ piplicenses
+setup_requires =
+ setuptools >= 40.9.0
+ pytest-runner
+install_requires =
+ PTable
+tests_require =
+ docutils
+ pytest-cov
+ pytest-pycodestyle
+ pytest-runner
+
+[options.extras_require]
+test =
+ docutils
+ pytest-cov
+ pytest-pycodestyle
+ pytest-runner
+
[bdist_wheel]
universal = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/setup.py
new/pip-licenses-3.0.0/setup.py
--- old/pip-licenses-2.3.0/setup.py 2020-07-24 12:13:49.000000000 +0200
+++ new/pip-licenses-3.0.0/setup.py 2020-08-24 10:47:54.000000000 +0200
@@ -27,7 +27,7 @@
"""
import os
-from setuptools import setup, find_packages
+from setuptools import setup
from codecs import open
from os import path
@@ -60,14 +60,6 @@
LONG_DESC = read_file('README.md')
-TEST_DEPENDS = [
- 'docutils',
- 'pytest-cov',
- 'pytest-pycodestyle',
- 'pytest-runner',
-]
-
-
setup(
name=PKG_NAME,
version=VERSION,
@@ -75,30 +67,7 @@
long_description=LONG_DESC,
url=URL,
author=AUTHOR,
- classifiers=[
- 'Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: MIT License',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Topic :: System :: Systems Administration',
- 'Topic :: System :: System Shells',
- ],
- keywords='pip pypi package license check',
- py_modules=['piplicenses'],
license=LICENSE,
- python_requires='~=3.5',
- install_requires=['PTable'],
- setup_requires=[
- 'pytest-runner',
- ],
- tests_require=TEST_DEPENDS,
- extras_require={
- 'test': TEST_DEPENDS,
- },
entry_points={
'console_scripts': [
PKG_NAME + '=piplicenses:main',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pip-licenses-2.3.0/test_piplicenses.py
new/pip-licenses-3.0.0/test_piplicenses.py
--- old/pip-licenses-2.3.0/test_piplicenses.py 2020-08-02 08:07:41.000000000
+0200
+++ new/pip-licenses-3.0.0/test_piplicenses.py 2020-08-24 11:40:43.000000000
+0200
@@ -106,9 +106,21 @@
output_string = create_output_string(args)
self.assertNotIn('<table>', output_string)
+ def test_from_meta(self):
+ from_args = ['--from=meta']
+ args = self.parser.parse_args(from_args)
+ table = create_licenses_table(args)
+
+ output_fields = get_output_fields(args)
+ self.assertIn('License', output_fields)
+
+ license_columns = self._create_license_columns(table)
+ license_notation_as_meta = 'BSD-3-Clause'
+ self.assertIn(license_notation_as_meta, license_columns)
+
def test_from_classifier(self):
- from_classifier_args = ['--from=classifier']
- args = self.parser.parse_args(from_classifier_args)
+ from_args = ['--from=classifier']
+ args = self.parser.parse_args(from_args)
table = create_licenses_table(args)
output_fields = get_output_fields(args)
@@ -119,8 +131,8 @@
self.assertIn(license_notation_as_classifier, license_columns)
def test_from_mixed(self):
- from_classifier_args = ['--from=mixed']
- args = self.parser.parse_args(from_classifier_args)
+ from_args = ['--from=mixed']
+ args = self.parser.parse_args(from_args)
table = create_licenses_table(args)
output_fields = get_output_fields(args)
@@ -346,11 +358,11 @@
self.assertEqual(RULE_FRAME, table.hrules)
def test_format_plain_vertical(self):
- format_plain_args = ['--format=plain-vertical']
+ format_plain_args = ['--format=plain-vertical', '--from=classifier']
args = self.parser.parse_args(format_plain_args)
output_string = create_output_string(args)
self.assertIsNotNone(
- re.search(r'pytest\n\d\.\d\.\d\nMIT license\n', output_string))
+ re.search(r'pytest\n\d\.\d\.\d\nMIT License\n', output_string))
def test_format_markdown(self):
format_markdown_args = ['--format=markdown']
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]