Hello community,

here is the log from the commit of package reuse for openSUSE:Factory checked 
in at 2018-08-24 17:12:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/reuse (Old)
 and      /work/SRC/openSUSE:Factory/.reuse.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "reuse"

Fri Aug 24 17:12:10 2018 rev:5 rq:631179 version:0.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/reuse/reuse.changes      2018-08-15 
10:38:53.164345442 +0200
+++ /work/SRC/openSUSE:Factory/.reuse.new/reuse.changes 2018-08-24 
17:12:11.714648622 +0200
@@ -1,0 +2,6 @@
+Wed Aug 15 11:13:04 UTC 2018 - [email protected]
+
+- Update to version 0.3.3:
+  + Files ending in .spdx are no longer considered licenses.
+
+-------------------------------------------------------------------

Old:
----
  fsfe-reuse-0.3.1.tar.gz

New:
----
  fsfe-reuse-0.3.3.tar.gz

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

Other differences:
------------------
++++++ reuse.spec ++++++
--- /var/tmp/diff_new_pack.WDWRTI/_old  2018-08-24 17:12:12.150649142 +0200
+++ /var/tmp/diff_new_pack.WDWRTI/_new  2018-08-24 17:12:12.150649142 +0200
@@ -19,7 +19,7 @@
 
 %bcond_without test
 Name:           reuse
-Version:        0.3.1
+Version:        0.3.3
 Release:        0
 Summary:        A tool for compliance with the REUSE Initiative recommendations
 License:        GPL-3.0-or-later

++++++ fsfe-reuse-0.3.1.tar.gz -> fsfe-reuse-0.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/CHANGELOG.md 
new/fsfe-reuse-0.3.3/CHANGELOG.md
--- old/fsfe-reuse-0.3.1/CHANGELOG.md   2018-08-14 18:00:58.000000000 +0200
+++ new/fsfe-reuse-0.3.3/CHANGELOG.md   2018-08-15 13:08:11.000000000 +0200
@@ -17,6 +17,18 @@
 
 The versions follow [semantic versioning](https://semver.org).
 
+## 0.3.3 - 2018-07-15
+
+### Fixed
+
+- Any files with the suffix `.spdx` are no longer considered licenses.
+
+## 0.3.2 - 2018-07-15
+
+### Fixed
+
+- The documentation now builds under Python 3.7.
+
 ## 0.3.1 - 2018-07-14
 
 ### Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/Makefile 
new/fsfe-reuse-0.3.3/Makefile
--- old/fsfe-reuse-0.3.1/Makefile       2018-02-19 14:28:15.000000000 +0100
+++ new/fsfe-reuse-0.3.3/Makefile       2018-08-15 13:05:27.000000000 +0200
@@ -34,7 +34,7 @@
 .PHONY: clean-docs
 clean-docs: ## remove docs build artifacts
        -$(MAKE) -C docs clean
-       rm -f docs/en_pyssant*.rst
+       rm -f docs/reuse*.rst
        rm -f docs/modules.rst
        rm -f docs/history.md
        rm -f docs/readme.md
@@ -51,11 +51,13 @@
 coverage: ## check code coverage quickly
        py.test --cov-report term-missing --cov=src/reuse
 
-.PHONY: docs
-docs: clean-docs ## generate Sphinx HTML documentation, including API docs
+_pre-docs: clean-docs
        sphinx-apidoc --separate -o docs/ src/reuse
        cp README.md docs/readme.md  # Because markdown cannot include...
        cp CHANGELOG.md docs/history.md
+
+.PHONY: docs
+docs: _pre-docs ## generate Sphinx HTML documentation, including API docs
        $(MAKE) -C docs html
 
 .PHONY: tox
@@ -63,7 +65,7 @@
        tox
 
 .PHONY: dist
-dist: clean docs compile-mo ## builds source and wheel package
+dist: clean _pre-docs compile-mo ## builds source and wheel package
        RST_ERROR=1 python setup.py sdist
        RST_ERROR=1 python setup.py bdist_wheel
        ls -l dist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/PKG-INFO 
new/fsfe-reuse-0.3.3/PKG-INFO
--- old/fsfe-reuse-0.3.1/PKG-INFO       2018-08-14 18:01:28.000000000 +0200
+++ new/fsfe-reuse-0.3.3/PKG-INFO       2018-08-15 13:09:10.000000000 +0200
@@ -1,12 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: fsfe-reuse
-Version: 0.3.1
+Version: 0.3.3
 Summary: reuse is a tool for compliance with the REUSE Initiative 
recommendations.
 Home-page: https://git.fsfe.org/reuse/reuse
 Author: Carmen Bianca Bakker
 Author-email: [email protected]
 License: GPL-3.0-or-later
-Description-Content-Type: UNKNOWN
 Description: reuse
         =====
         
@@ -210,3 +209,4 @@
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Provides-Extra: git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/docs/conf.py 
new/fsfe-reuse-0.3.3/docs/conf.py
--- old/fsfe-reuse-0.3.1/docs/conf.py   2018-08-14 18:00:58.000000000 +0200
+++ new/fsfe-reuse-0.3.3/docs/conf.py   2018-08-15 13:08:36.000000000 +0200
@@ -84,7 +84,7 @@
 # built documents.
 #
 # The short X.Y version.
-version = '0.3.1'
+version = '0.3.3'
 # The full version, including alpha/beta/rc tags.
 release = version
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/docs/history.md 
new/fsfe-reuse-0.3.3/docs/history.md
--- old/fsfe-reuse-0.3.1/docs/history.md        2018-08-14 18:01:23.000000000 
+0200
+++ new/fsfe-reuse-0.3.3/docs/history.md        2018-08-15 13:09:09.000000000 
+0200
@@ -17,6 +17,18 @@
 
 The versions follow [semantic versioning](https://semver.org).
 
+## 0.3.3 - 2018-07-15
+
+### Fixed
+
+- Any files with the suffix `.spdx` are no longer considered licenses.
+
+## 0.3.2 - 2018-07-15
+
+### Fixed
+
+- The documentation now builds under Python 3.7.
+
 ## 0.3.1 - 2018-07-14
 
 ### Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/docs/reuse.licenses.rst 
new/fsfe-reuse-0.3.3/docs/reuse.licenses.rst
--- old/fsfe-reuse-0.3.1/docs/reuse.licenses.rst        2017-11-11 
17:41:54.000000000 +0100
+++ new/fsfe-reuse-0.3.3/docs/reuse.licenses.rst        2018-08-15 
13:09:09.000000000 +0200
@@ -1,5 +1,5 @@
-reuse\.licenses module
-======================
+reuse.licenses module
+=====================
 
 .. automodule:: reuse.licenses
     :members:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/setup.cfg 
new/fsfe-reuse-0.3.3/setup.cfg
--- old/fsfe-reuse-0.3.1/setup.cfg      2018-08-14 18:01:28.000000000 +0200
+++ new/fsfe-reuse-0.3.3/setup.cfg      2018-08-15 13:09:10.000000000 +0200
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.3.1
+current_version = 0.3.3
 commit = True
 tag = False
 parse = 
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<release>(a|b|rc)?)(?P<releasenumber>\d*)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/setup.py 
new/fsfe-reuse-0.3.3/setup.py
--- old/fsfe-reuse-0.3.1/setup.py       2018-08-14 18:00:58.000000000 +0200
+++ new/fsfe-reuse-0.3.3/setup.py       2018-08-15 13:08:36.000000000 +0200
@@ -64,7 +64,7 @@
 if __name__ == '__main__':
     setup(
         name='fsfe-reuse',
-        version='0.3.1',
+        version='0.3.3',
         url='https://git.fsfe.org/reuse/reuse',
         license='GPL-3.0-or-later',
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/src/fsfe_reuse.egg-info/PKG-INFO 
new/fsfe-reuse-0.3.3/src/fsfe_reuse.egg-info/PKG-INFO
--- old/fsfe-reuse-0.3.1/src/fsfe_reuse.egg-info/PKG-INFO       2018-08-14 
18:01:28.000000000 +0200
+++ new/fsfe-reuse-0.3.3/src/fsfe_reuse.egg-info/PKG-INFO       2018-08-15 
13:09:10.000000000 +0200
@@ -1,12 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: fsfe-reuse
-Version: 0.3.1
+Version: 0.3.3
 Summary: reuse is a tool for compliance with the REUSE Initiative 
recommendations.
 Home-page: https://git.fsfe.org/reuse/reuse
 Author: Carmen Bianca Bakker
 Author-email: [email protected]
 License: GPL-3.0-or-later
-Description-Content-Type: UNKNOWN
 Description: reuse
         =====
         
@@ -210,3 +209,4 @@
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Provides-Extra: git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/src/reuse/__init__.py 
new/fsfe-reuse-0.3.3/src/reuse/__init__.py
--- old/fsfe-reuse-0.3.1/src/reuse/__init__.py  2018-08-14 18:00:58.000000000 
+0200
+++ new/fsfe-reuse-0.3.3/src/reuse/__init__.py  2018-08-15 13:08:36.000000000 
+0200
@@ -72,7 +72,7 @@
 __author__ = 'Carmen Bianca Bakker'
 __email__ = '[email protected]'
 __license__ = 'GPLv3+'
-__version__ = '0.3.1'
+__version__ = '0.3.3'
 
 _logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 
@@ -484,6 +484,8 @@
                     continue
                 if Path(path).suffix == '.license':
                     continue
+                if Path(path).suffix == '.spdx':
+                    continue
 
                 path = _determine_license_path(path)
                 path = self._relative_from_root(path)
@@ -600,7 +602,7 @@
 
         if GIT_METHOD == 'pygit2':
             return self._git_repo.path_is_ignored(str(path))
-        elif GIT_METHOD == 'git':
+        if GIT_METHOD == 'git':
             command = [GIT_EXE, 'check-ignore', str(path)]
 
             result = execute_command(command, _logger, cwd=str(self.root))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/src/reuse/_util.py 
new/fsfe-reuse-0.3.3/src/reuse/_util.py
--- old/fsfe-reuse-0.3.1/src/reuse/_util.py     2018-08-14 17:57:41.000000000 
+0200
+++ new/fsfe-reuse-0.3.3/src/reuse/_util.py     2018-08-15 13:05:27.000000000 
+0200
@@ -35,7 +35,7 @@
 
 
 try:
-    from pygit2 import GitError, discover_repository
+    from pygit2 import discover_repository
     GIT_METHOD = 'pygit2'
 except ImportError:  # pragma: no cover
     if GIT_EXE:
@@ -92,7 +92,7 @@
         if GIT_METHOD == 'pygit2':
             repo = discover_repository(str(cwd))
             return Path(repo).parent
-        elif GIT_METHOD == 'git':
+        if GIT_METHOD == 'git':
             command = [GIT_EXE, 'rev-parse', '--show-toplevel']
             result = execute_command(command, _logger, cwd=str(cwd))
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fsfe-reuse-0.3.1/tests/test_reuse.py 
new/fsfe-reuse-0.3.3/tests/test_reuse.py
--- old/fsfe-reuse-0.3.1/tests/test_reuse.py    2018-08-14 17:57:41.000000000 
+0200
+++ new/fsfe-reuse-0.3.3/tests/test_reuse.py    2018-08-15 13:05:59.000000000 
+0200
@@ -343,6 +343,16 @@
     assert any(project.lint())
 
 
+def test_license_spdx_not_a_license(empty_directory):
+    """If a project contains a file called LICENSE.spdx, ignore it while
+    searching for licenses.
+    """
+    (empty_directory / 'LICENSE.spdx').touch()
+    project = reuse.Project(empty_directory)
+
+    assert not project.licenses
+
+
 def test_licenses_from_filenames(fake_repository):
     """Given a repository, extract the license identifiers from the
     filenames.
@@ -352,7 +362,7 @@
     assert set(project.licenses.keys()) == USED_LICENSES
     assert set(
         map(str, project.licenses.values())) == \
-        set(['LICENSES/{}.txt'.format(spdx) for spdx in USED_LICENSES])
+        set('LICENSES/{}.txt'.format(spdx) for spdx in USED_LICENSES)
 
 
 def test_licenses_licenseref_from_filename(empty_directory):


Reply via email to