Hello community,

here is the log from the commit of package python-dephell-licenses for 
openSUSE:Factory checked in at 2019-09-13 15:03:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dephell-licenses (Old)
 and      /work/SRC/openSUSE:Factory/.python-dephell-licenses.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dephell-licenses"

Fri Sep 13 15:03:47 2019 rev:2 rq:730649 version:0.1.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dephell-licenses/python-dephell-licenses.changes
  2019-08-13 13:14:38.213514409 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dephell-licenses.new.7948/python-dephell-licenses.changes
        2019-09-13 15:05:11.989258248 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 09:14:15 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.1.6:
+  * ship tests
+
+-------------------------------------------------------------------

Old:
----
  dephell-licenses-0.1.5.tar.gz

New:
----
  dephell-licenses-0.1.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dephell-licenses.spec ++++++
--- /var/tmp/diff_new_pack.21wWAx/_old  2019-09-13 15:05:12.853258065 +0200
+++ /var/tmp/diff_new_pack.21wWAx/_new  2019-09-13 15:05:12.853258065 +0200
@@ -12,31 +12,32 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-dephell-licenses
-Version:        0.1.5
+Version:        0.1.6
 Release:        0
-License:        MIT
 Summary:        Dephell library to get info about OSS licenses
-Url:            https://github.com/dephell/dephell_licenses
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://github.com/dephell/dephell_licenses
 Source:         
https://files.pythonhosted.org/packages/source/d/dephell-licenses/dephell-licenses-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module base >= 3.5}
 BuildRequires:  %{python_module setuptools}
-# SECTION test requirements
-BuildRequires:  %{python_module attrs}
-BuildRequires:  %{python_module requests}
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:       python-attrs
 Requires:       python-requests
 BuildArch:      noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module attrs}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module requests}
+# /SECTION
 %python_subpackages
 
 %description
@@ -52,6 +53,10 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+# test_make_text - online test
+%pytest -k 'not test_make_text'
+
 %files %{python_files}
 %doc README.md
 %license LICENSE

++++++ dephell-licenses-0.1.5.tar.gz -> dephell-licenses-0.1.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-licenses-0.1.5/PKG-INFO 
new/dephell-licenses-0.1.6/PKG-INFO
--- old/dephell-licenses-0.1.5/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dephell-licenses
-Version: 0.1.5
+Version: 0.1.6
 Summary: Get info about OSS licenses
 Project-URL: Repository, https://github.com/dephell/dephell_licenses
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell-licenses.egg-info/PKG-INFO 
new/dephell-licenses-0.1.6/dephell-licenses.egg-info/PKG-INFO
--- old/dephell-licenses-0.1.5/dephell-licenses.egg-info/PKG-INFO       
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell-licenses.egg-info/PKG-INFO       
1970-01-01 01:00:00.000000000 +0100
@@ -1,115 +0,0 @@
-Metadata-Version: 2.1
-Name: dephell-licenses
-Version: 0.1.5
-Summary: Get info about OSS licenses
-Project-URL: Repository, https://github.com/dephell/dephell_licenses
-Author: Gram
-Author-email: [email protected]
-License: MIT
-Requires-Python: >=3.5
-Keywords: dephell,packaging,licenses,pypi
-Classifier: Development Status :: 4 - Beta
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
-Classifier: Programming Language :: Python
-Classifier: Topic :: Software Development :: Libraries :: Python Modules
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: Implementation :: CPython
-Classifier: Programming Language :: Python :: Implementation :: PyPy
-Classifier: Operating System :: MacOS
-Classifier: Operating System :: Microsoft :: Windows
-Classifier: Operating System :: Unix
-
-
-DepHell Licenses
-================
-
-
-.. image:: https://travis-ci.org/dephell/dephell_licenses.svg?branch=master
-   :target: https://travis-ci.org/dephell/dephell_licenses
-   :alt: travis
-
-
-.. image:: 
https://ci.appveyor.com/api/projects/status/github/dephell/dephell_licenses?svg=true
-   :target: https://ci.appveyor.com/project/orsinium/dephell-licenses
-   :alt: appveyor
-
-
-.. image:: https://img.shields.io/pypi/l/dephell-licenses.svg
-   :target: https://github.com/dephell/dephell_licenses/blob/master/LICENSE
-   :alt: MIT License
-
-
-Manage OSS licenses: retrieve information, generate.
-
-Installation
-------------
-
-Install from `PyPI <https://pypi.org/project/dephell-licenses/>`_\ :
-
-.. code-block:: bash
-
-   python3 -m pip install --user dephell_licenses
-
-Usage
------
-
-.. code-block:: python
-
-   from dephell_licenses import licenses
-
-   # ways to get a license:
-   license = licenses.get_by_id('MIT')
-   license = licenses.get_by_name('MIT License')
-   license = licenses.get_by_classifier('License :: OSI Approved :: MIT 
License')
-
-   # license object
-   license
-   # License(id='MIT', classifier='License :: OSI Approved :: MIT License', 
name='MIT License', approved=True, deprecated=False, 
links=['https://opensource.org/licenses/MIT'], 
url='http://spdx.org/licenses/MIT.json')
-
-   # generate license
-   license.make_text(copyright='2019 Gram')
-   # 'MIT License\n\nCopyright (c) 2019 Gram\n\nPermission is hereby granted 
...'
-
-Most popular licenses
----------------------
-
-.. code-block:: bash
-
-   go run stat.go | grep "License :: " | perl -F"\|" -lane 'print $F[0] if 
$F[1]>100' | sort
-
-There is the full list of the license classifiers with more than 100 projects 
that uses it:
-
-.. code-block::
-
-   License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
-   License :: DFSG approved
-   License :: Free for non-commercial use
-   License :: Freely Distributable
-   License :: Freeware
-   License :: OSI Approved
-   License :: OSI Approved :: Apache Software License
-   License :: OSI Approved :: BSD License
-   License :: OSI Approved :: GNU Affero General Public License v3
-   License :: OSI Approved :: GNU Affero General Public License v3 or later 
(AGPLv3+)
-   License :: OSI Approved :: GNU General Public License (GPL)
-   License :: OSI Approved :: GNU General Public License v2 (GPLv2)
-   License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
-   License :: OSI Approved :: GNU General Public License v3 (GPLv3)
-   License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
-   License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
-   License :: OSI Approved :: GNU Lesser General Public License v2 or later 
(LGPLv2+)
-   License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
-   License :: OSI Approved :: GNU Lesser General Public License v3 or later 
(LGPLv3+)
-   License :: OSI Approved :: GNU Library or Lesser General Public License 
(LGPL)
-   License :: OSI Approved :: ISC License (ISCL)
-   License :: OSI Approved :: MIT License
-   License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
-   License :: OSI Approved :: Python Software Foundation License
-   License :: OSI Approved :: Zope Public License
-   License :: Other/Proprietary License
-   License :: Public Domain
-   License :: Repoze Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell-licenses.egg-info/SOURCES.txt 
new/dephell-licenses-0.1.6/dephell-licenses.egg-info/SOURCES.txt
--- old/dephell-licenses-0.1.5/dephell-licenses.egg-info/SOURCES.txt    
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell-licenses.egg-info/SOURCES.txt    
1970-01-01 01:00:00.000000000 +0100
@@ -1,9 +0,0 @@
-README.md
-README.rst
-setup.cfg
-setup.py
-dephell_licenses/_license.py
-dephell_licenses/_cached_property.py
-dephell_licenses/__init__.py
-dephell_licenses/_licenses.py
-dephell_licenses/licenses.json
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell-licenses.egg-info/requires.txt 
new/dephell-licenses-0.1.6/dephell-licenses.egg-info/requires.txt
--- old/dephell-licenses-0.1.5/dephell-licenses.egg-info/requires.txt   
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell-licenses.egg-info/requires.txt   
1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-attrs
-requests
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell-licenses.egg-info/top_level.txt 
new/dephell-licenses-0.1.6/dephell-licenses.egg-info/top_level.txt
--- old/dephell-licenses-0.1.5/dephell-licenses.egg-info/top_level.txt  
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell-licenses.egg-info/top_level.txt  
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-dephell_licenses
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell_licenses.egg-info/PKG-INFO 
new/dephell-licenses-0.1.6/dephell_licenses.egg-info/PKG-INFO
--- old/dephell-licenses-0.1.5/dephell_licenses.egg-info/PKG-INFO       
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell_licenses.egg-info/PKG-INFO       
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1,115 @@
+Metadata-Version: 2.1
+Name: dephell-licenses
+Version: 0.1.6
+Summary: Get info about OSS licenses
+Project-URL: Repository, https://github.com/dephell/dephell_licenses
+Author: Gram
+Author-email: [email protected]
+License: MIT
+Requires-Python: >=3.5
+Keywords: dephell,packaging,licenses,pypi
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Operating System :: MacOS
+Classifier: Operating System :: Microsoft :: Windows
+Classifier: Operating System :: Unix
+
+
+DepHell Licenses
+================
+
+
+.. image:: https://travis-ci.org/dephell/dephell_licenses.svg?branch=master
+   :target: https://travis-ci.org/dephell/dephell_licenses
+   :alt: travis
+
+
+.. image:: 
https://ci.appveyor.com/api/projects/status/github/dephell/dephell_licenses?svg=true
+   :target: https://ci.appveyor.com/project/orsinium/dephell-licenses
+   :alt: appveyor
+
+
+.. image:: https://img.shields.io/pypi/l/dephell-licenses.svg
+   :target: https://github.com/dephell/dephell_licenses/blob/master/LICENSE
+   :alt: MIT License
+
+
+Manage OSS licenses: retrieve information, generate.
+
+Installation
+------------
+
+Install from `PyPI <https://pypi.org/project/dephell-licenses/>`_\ :
+
+.. code-block:: bash
+
+   python3 -m pip install --user dephell_licenses
+
+Usage
+-----
+
+.. code-block:: python
+
+   from dephell_licenses import licenses
+
+   # ways to get a license:
+   license = licenses.get_by_id('MIT')
+   license = licenses.get_by_name('MIT License')
+   license = licenses.get_by_classifier('License :: OSI Approved :: MIT 
License')
+
+   # license object
+   license
+   # License(id='MIT', classifier='License :: OSI Approved :: MIT License', 
name='MIT License', approved=True, deprecated=False, 
links=['https://opensource.org/licenses/MIT'], 
url='http://spdx.org/licenses/MIT.json')
+
+   # generate license
+   license.make_text(copyright='2019 Gram')
+   # 'MIT License\n\nCopyright (c) 2019 Gram\n\nPermission is hereby granted 
...'
+
+Most popular licenses
+---------------------
+
+.. code-block:: bash
+
+   go run stat.go | grep "License :: " | perl -F"\|" -lane 'print $F[0] if 
$F[1]>100' | sort
+
+There is the full list of the license classifiers with more than 100 projects 
that uses it:
+
+.. code-block::
+
+   License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
+   License :: DFSG approved
+   License :: Free for non-commercial use
+   License :: Freely Distributable
+   License :: Freeware
+   License :: OSI Approved
+   License :: OSI Approved :: Apache Software License
+   License :: OSI Approved :: BSD License
+   License :: OSI Approved :: GNU Affero General Public License v3
+   License :: OSI Approved :: GNU Affero General Public License v3 or later 
(AGPLv3+)
+   License :: OSI Approved :: GNU General Public License (GPL)
+   License :: OSI Approved :: GNU General Public License v2 (GPLv2)
+   License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
+   License :: OSI Approved :: GNU General Public License v3 (GPLv3)
+   License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
+   License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
+   License :: OSI Approved :: GNU Lesser General Public License v2 or later 
(LGPLv2+)
+   License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
+   License :: OSI Approved :: GNU Lesser General Public License v3 or later 
(LGPLv3+)
+   License :: OSI Approved :: GNU Library or Lesser General Public License 
(LGPL)
+   License :: OSI Approved :: ISC License (ISCL)
+   License :: OSI Approved :: MIT License
+   License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
+   License :: OSI Approved :: Python Software Foundation License
+   License :: OSI Approved :: Zope Public License
+   License :: Other/Proprietary License
+   License :: Public Domain
+   License :: Repoze Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell_licenses.egg-info/SOURCES.txt 
new/dephell-licenses-0.1.6/dephell_licenses.egg-info/SOURCES.txt
--- old/dephell-licenses-0.1.5/dephell_licenses.egg-info/SOURCES.txt    
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell_licenses.egg-info/SOURCES.txt    
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1,9 @@
+README.md
+README.rst
+setup.cfg
+setup.py
+dephell_licenses/_license.py
+dephell_licenses/_cached_property.py
+dephell_licenses/__init__.py
+dephell_licenses/_licenses.py
+dephell_licenses/licenses.json
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell_licenses.egg-info/requires.txt 
new/dephell-licenses-0.1.6/dephell_licenses.egg-info/requires.txt
--- old/dephell-licenses-0.1.5/dephell_licenses.egg-info/requires.txt   
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell_licenses.egg-info/requires.txt   
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1,2 @@
+attrs
+requests
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-licenses-0.1.5/dephell_licenses.egg-info/top_level.txt 
new/dephell-licenses-0.1.6/dephell_licenses.egg-info/top_level.txt
--- old/dephell-licenses-0.1.5/dephell_licenses.egg-info/top_level.txt  
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/dephell_licenses.egg-info/top_level.txt  
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1 @@
+dephell_licenses
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-licenses-0.1.5/setup.py 
new/dephell-licenses-0.1.6/setup.py
--- old/dephell-licenses-0.1.5/setup.py 2019-05-19 14:51:56.000000000 +0200
+++ new/dephell-licenses-0.1.6/setup.py 2019-05-23 20:40:54.000000000 +0200
@@ -13,13 +13,15 @@
 
 readme = ''
 here = os.path.abspath(os.path.dirname(__file__))
-with open(os.path.join(here, 'README.rst'), 'rb') as stream:
-    readme = stream.read().decode('utf8')
+readme_path = os.path.join(here, 'README.rst')
+if os.path.exists(readme_path):
+    with open(readme_path, 'rb') as stream:
+        readme = stream.read().decode('utf8')
 
 setup(
     long_description=readme,
     name='dephell-licenses',
-    version='0.1.5',
+    version='0.1.6',
     description='Get info about OSS licenses',
     python_requires='>=3.5',
     project_urls={'repository': 'https://github.com/dephell/dephell_licenses'},
Binary files 
old/dephell-licenses-0.1.5/tests/__pycache__/__init__.cpython-37.pyc and 
new/dephell-licenses-0.1.6/tests/__pycache__/__init__.cpython-37.pyc differ
Binary files 
old/dephell-licenses-0.1.5/tests/__pycache__/test_license.cpython-37-PYTEST.pyc 
and 
new/dephell-licenses-0.1.6/tests/__pycache__/test_license.cpython-37-PYTEST.pyc 
differ
Binary files 
old/dephell-licenses-0.1.5/tests/__pycache__/test_licenses.cpython-37-PYTEST.pyc
 and 
new/dephell-licenses-0.1.6/tests/__pycache__/test_licenses.cpython-37-PYTEST.pyc
 differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-licenses-0.1.5/tests/test_license.py 
new/dephell-licenses-0.1.6/tests/test_license.py
--- old/dephell-licenses-0.1.5/tests/test_license.py    1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/tests/test_license.py    2019-04-19 
10:35:08.000000000 +0200
@@ -0,0 +1,11 @@
+from dephell_licenses import licenses
+
+
+def test_make_text():
+    license = licenses.get_by_id('MIT')
+
+    assert 'Copyright (c) <year> <copyright holders>' in license.make_text()
+    assert 'beginOptional' not in license.make_text()
+    assert license.make_text().strip().startswith('MIT License')
+
+    assert 'Copyright (c) 2018 Gram' in license.make_text(copyright='2018 
Gram')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-licenses-0.1.5/tests/test_licenses.py 
new/dephell-licenses-0.1.6/tests/test_licenses.py
--- old/dephell-licenses-0.1.5/tests/test_licenses.py   1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-licenses-0.1.6/tests/test_licenses.py   2019-03-28 
17:38:07.000000000 +0100
@@ -0,0 +1,16 @@
+from dephell_licenses import licenses
+
+
+def test_get_by_id():
+    license = licenses.get_by_id('MIT')
+    assert license.classifier == 'License :: OSI Approved :: MIT License'
+
+
+def test_get_by_classifier():
+    license = licenses.get_by_classifier('License :: OSI Approved :: MIT 
License')
+    assert license.id == 'MIT'
+
+
+def test_get_by_name():
+    license = licenses.get_by_name('MIT License')
+    assert license.id == 'MIT'


Reply via email to