Hello community,

here is the log from the commit of package python-check-manifest for 
openSUSE:Factory checked in at 2019-09-23 12:09:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-check-manifest (Old)
 and      /work/SRC/openSUSE:Factory/.python-check-manifest.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-check-manifest"

Mon Sep 23 12:09:48 2019 rev:4 rq:730680 version:0.39

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-check-manifest/python-check-manifest.changes  
    2019-05-16 22:09:15.718325065 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-check-manifest.new.7948/python-check-manifest.changes
    2019-09-23 12:09:51.133881179 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 11:02:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.39:
+  * You can now use check-manifest as a pre-commit hook (#100).
+
+-------------------------------------------------------------------

Old:
----
  check-manifest-0.38.tar.gz

New:
----
  check-manifest-0.39.tar.gz

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

Other differences:
------------------
++++++ python-check-manifest.spec ++++++
--- /var/tmp/diff_new_pack.4k3HXe/_old  2019-09-23 12:09:51.565881107 +0200
+++ /var/tmp/diff_new_pack.4k3HXe/_new  2019-09-23 12:09:51.565881107 +0200
@@ -18,12 +18,12 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-check-manifest
-Version:        0.38
+Version:        0.39
 Release:        0
 Summary:        Tool to check Python source package MANIFEST.in for 
completeness
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/mgedmin/check-manifest
+URL:            https://github.com/mgedmin/check-manifest
 Source:         
https://files.pythonhosted.org/packages/source/c/check-manifest/check-manifest-%{version}.tar.gz
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
@@ -34,13 +34,13 @@
 BuildRequires:  mercurial
 BuildRequires:  python-rpm-macros
 BuildRequires:  subversion
+Requires:       python-setuptools
 Requires:       python-toml
 Suggests:       bzr
 Suggests:       git-core
 Suggests:       mercurial
 Suggests:       subversion
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -49,7 +49,7 @@
 
 %prep
 %setup -q -n check-manifest-%{version}
-sed -i '1{\,^#!/usr/bin/env python,d}' check_manifest.py
+sed -i '1{\,^#!%{_bindir}/env python,d}' check_manifest.py
 chmod -x check_manifest.py
 
 %build

++++++ check-manifest-0.38.tar.gz -> check-manifest-0.39.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/.pre-commit-hooks.yaml 
new/check-manifest-0.39/.pre-commit-hooks.yaml
--- old/check-manifest-0.38/.pre-commit-hooks.yaml      1970-01-01 
01:00:00.000000000 +0100
+++ new/check-manifest-0.39/.pre-commit-hooks.yaml      2019-06-06 
16:41:21.000000000 +0200
@@ -0,0 +1,7 @@
+-   id: check-manifest
+    name: check-manifest
+    description: Check the completeness of MANIFEST.in for Python packages.
+    entry: check-manifest
+    language: python
+    pass_filenames: false
+    always_run: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/.travis.yml 
new/check-manifest-0.39/.travis.yml
--- old/check-manifest-0.38/.travis.yml 2019-04-23 11:11:47.000000000 +0200
+++ new/check-manifest-0.39/.travis.yml 2019-05-02 13:48:57.000000000 +0200
@@ -7,17 +7,15 @@
     - 3.5
     - 3.6
     - 3.7
-    # have to be very specific about pypy versions because
-    # https://github.com/travis-ci/travis-ci/issues/9452
-    - pypy2.7-5.10.0
-    - pypy3.5
+    - pypy
+    - pypy3
 env:
     - FORCE_TEST_VCS=bzr
     - FORCE_TEST_VCS=git
     - FORCE_TEST_VCS=hg
     - FORCE_TEST_VCS=svn
 install:
-    - pip install coverage coveralls mock flake8
+    - pip install coverage coveralls mock flake8 toml
 script:
     - SKIP_NO_TESTS=1 coverage run setup.py test -q
     - coverage report -m
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/CHANGES.rst 
new/check-manifest-0.39/CHANGES.rst
--- old/check-manifest-0.38/CHANGES.rst 2019-04-23 11:18:19.000000000 +0200
+++ new/check-manifest-0.39/CHANGES.rst 2019-06-06 16:43:12.000000000 +0200
@@ -2,6 +2,13 @@
 =========
 
 
+0.39 (2019-06-06)
+-----------------
+
+- You can now use check-manifest as a `pre-commit <https://pre-commit.com>`_
+  hook (`#100 <https://github.com/mgedmin/check-manifest/issues/100>`__).
+
+
 0.38 (2019-04-23)
 -----------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/MANIFEST.in 
new/check-manifest-0.39/MANIFEST.in
--- old/check-manifest-0.38/MANIFEST.in 2017-12-19 19:48:56.000000000 +0100
+++ new/check-manifest-0.39/MANIFEST.in 2019-06-06 16:41:21.000000000 +0200
@@ -1,5 +1,6 @@
 include *.rst
 include *.py
+include *.yaml
 include tox.ini
 include Makefile
 include .gitignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/PKG-INFO 
new/check-manifest-0.39/PKG-INFO
--- old/check-manifest-0.38/PKG-INFO    2019-04-23 11:29:11.000000000 +0200
+++ new/check-manifest-0.39/PKG-INFO    2019-06-06 16:55:23.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: check-manifest
-Version: 0.38
+Version: 0.39
 Summary: Check MANIFEST.in in a Python source package for completeness
 Home-page: https://github.com/mgedmin/check-manifest
 Author: Marius Gedminas
@@ -133,6 +133,21 @@
             it is generally a bad idea.
         
         
+        Version control integration
+        ---------------------------
+        
+        With `pre-commit <https://pre-commit.com>`_, check-manifest can be 
part of your
+        git-workflow. Add the following to your ``.pre-commit-config.yaml``.
+        
+        .. code-block:: yaml
+        
+            repos:
+            -   repo: https://github.com/mgedmin/check-manifest
+                rev: "0.39"
+                hooks:
+                -   id: check-manifest
+        
+        
         .. |buildstatus| image:: 
https://api.travis-ci.org/mgedmin/check-manifest.svg?branch=master
         .. _buildstatus: https://travis-ci.org/mgedmin/check-manifest
         
@@ -147,6 +162,13 @@
         =========
         
         
+        0.39 (2019-06-06)
+        -----------------
+        
+        - You can now use check-manifest as a `pre-commit 
<https://pre-commit.com>`_
+          hook (`#100 
<https://github.com/mgedmin/check-manifest/issues/100>`__).
+        
+        
         0.38 (2019-04-23)
         -----------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/README.rst 
new/check-manifest-0.39/README.rst
--- old/check-manifest-0.38/README.rst  2019-04-23 11:04:24.000000000 +0200
+++ new/check-manifest-0.39/README.rst  2019-06-06 16:41:21.000000000 +0200
@@ -125,6 +125,21 @@
     it is generally a bad idea.
 
 
+Version control integration
+---------------------------
+
+With `pre-commit <https://pre-commit.com>`_, check-manifest can be part of your
+git-workflow. Add the following to your ``.pre-commit-config.yaml``.
+
+.. code-block:: yaml
+
+    repos:
+    -   repo: https://github.com/mgedmin/check-manifest
+        rev: "0.39"
+        hooks:
+        -   id: check-manifest
+
+
 .. |buildstatus| image:: 
https://api.travis-ci.org/mgedmin/check-manifest.svg?branch=master
 .. _buildstatus: https://travis-ci.org/mgedmin/check-manifest
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/appveyor.yml 
new/check-manifest-0.39/appveyor.yml
--- old/check-manifest-0.38/appveyor.yml        2019-04-23 11:11:47.000000000 
+0200
+++ new/check-manifest-0.39/appveyor.yml        2019-05-30 08:23:22.000000000 
+0200
@@ -19,6 +19,9 @@
   - choco install bzr
   - "set PATH=C:\\Program Files (x86)\\Bazaar;%PATH%"
   - bzr --version
+  - git --version
+  - svn --version
+  - hg --version
 
 build: off
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/check_manifest.egg-info/PKG-INFO 
new/check-manifest-0.39/check_manifest.egg-info/PKG-INFO
--- old/check-manifest-0.38/check_manifest.egg-info/PKG-INFO    2019-04-23 
11:29:11.000000000 +0200
+++ new/check-manifest-0.39/check_manifest.egg-info/PKG-INFO    2019-06-06 
16:55:23.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: check-manifest
-Version: 0.38
+Version: 0.39
 Summary: Check MANIFEST.in in a Python source package for completeness
 Home-page: https://github.com/mgedmin/check-manifest
 Author: Marius Gedminas
@@ -133,6 +133,21 @@
             it is generally a bad idea.
         
         
+        Version control integration
+        ---------------------------
+        
+        With `pre-commit <https://pre-commit.com>`_, check-manifest can be 
part of your
+        git-workflow. Add the following to your ``.pre-commit-config.yaml``.
+        
+        .. code-block:: yaml
+        
+            repos:
+            -   repo: https://github.com/mgedmin/check-manifest
+                rev: "0.39"
+                hooks:
+                -   id: check-manifest
+        
+        
         .. |buildstatus| image:: 
https://api.travis-ci.org/mgedmin/check-manifest.svg?branch=master
         .. _buildstatus: https://travis-ci.org/mgedmin/check-manifest
         
@@ -147,6 +162,13 @@
         =========
         
         
+        0.39 (2019-06-06)
+        -----------------
+        
+        - You can now use check-manifest as a `pre-commit 
<https://pre-commit.com>`_
+          hook (`#100 
<https://github.com/mgedmin/check-manifest/issues/100>`__).
+        
+        
         0.38 (2019-04-23)
         -----------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check-manifest-0.38/check_manifest.egg-info/SOURCES.txt 
new/check-manifest-0.39/check_manifest.egg-info/SOURCES.txt
--- old/check-manifest-0.38/check_manifest.egg-info/SOURCES.txt 2019-04-23 
11:29:11.000000000 +0200
+++ new/check-manifest-0.39/check_manifest.egg-info/SOURCES.txt 2019-06-06 
16:55:23.000000000 +0200
@@ -1,5 +1,6 @@
 .coveragerc
 .gitignore
+.pre-commit-hooks.yaml
 .travis.yml
 CHANGES.rst
 LICENSE.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/check_manifest.py 
new/check-manifest-0.39/check_manifest.py
--- old/check-manifest-0.38/check_manifest.py   2019-04-23 11:18:19.000000000 
+0200
+++ new/check-manifest-0.39/check_manifest.py   2019-06-06 16:43:12.000000000 
+0200
@@ -44,7 +44,7 @@
 import toml
 
 
-__version__ = '0.38'
+__version__ = '0.39'
 __author__ = 'Marius Gedminas <[email protected]>'
 __licence__ = 'MIT'
 __url__ = 'https://github.com/mgedmin/check-manifest'
@@ -283,6 +283,9 @@
         >>> strip_toplevel_name(['a', 'a/b', 'a/c', 'a/c/d'])
         ['b', 'c', 'c/d']
 
+        >>> strip_toplevel_name(['a', 'a/', 'a/b', 'a/c', 'a/c/d'])
+        ['b', 'c', 'c/d']
+
         >>> strip_toplevel_name(['a/b', 'a/c', 'a/c/d'])
         ['b', 'c', 'c/d']
 
@@ -300,7 +303,7 @@
         if not name.startswith(prefix):
             raise Failure("File doesn't have the common prefix (%s): %s"
                           % (name, prefix))
-    return [name[len(prefix):] for name in names]
+    return [name[len(prefix):] for name in names if name != prefix]
 
 
 def add_prefix_to_each(prefix, filelist):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/release.mk 
new/check-manifest-0.39/release.mk
--- old/check-manifest-0.38/release.mk  2018-11-03 15:11:29.000000000 +0100
+++ new/check-manifest-0.39/release.mk  2019-06-06 16:43:00.000000000 +0200
@@ -1,4 +1,4 @@
-# release.mk version 1.3 (2018-11-03)
+# release.mk version 1.4 (2019-04-23)
 #
 # Helpful Makefile rules for releasing Python packages.
 # https://github.com/mgedmin/python-project-skel
@@ -8,11 +8,13 @@
 FILE_WITH_CHANGELOG ?= CHANGES.rst
 CHANGELOG_DATE_FORMAT ?= %Y-%m-%d
 CHANGELOG_FORMAT ?= $(changelog_ver) ($(changelog_date))
+DISTCHECK_DIFF_OPTS ?= $(DISTCHECK_DIFF_DEFAULT_OPTS)
 
 # These should be fine
 PYTHON ?= python
 PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel && 
twine check dist/* && twine upload dist/*
 LATEST_RELEASE_MK_URL = 
https://raw.githubusercontent.com/mgedmin/python-project-skel/master/release.mk
+DISTCHECK_DIFF_DEFAULT_OPTS = -x PKG-INFO -x setup.cfg -x '*.egg-info' -I'^\#'
 
 # These should be fine, as long as you use Git
 VCS_GET_LATEST ?= git pull
@@ -55,7 +57,7 @@
          $(VCS_EXPORT) && \
          cd tmp && \
          tar -xzf ../dist/$$pkg_and_version.tar.gz && \
-         diff -ur $$pkg_and_version tree -x PKG-INFO -x setup.cfg -x 
'*.egg-info' -I'^#' && \
+         diff -ur $$pkg_and_version tree $(DISTCHECK_DIFF_OPTS) && \
          cd $$pkg_and_version && \
          make dist check && \
          cd .. && \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check-manifest-0.38/tests.py 
new/check-manifest-0.39/tests.py
--- old/check-manifest-0.38/tests.py    2019-04-23 11:15:49.000000000 +0200
+++ new/check-manifest-0.39/tests.py    2019-05-30 08:23:22.000000000 +0200
@@ -2,6 +2,7 @@
 import doctest
 import locale
 import os
+import shutil
 import subprocess
 import sys
 import tarfile
@@ -1393,27 +1394,33 @@
     def test_all_is_well(self):
         from check_manifest import check_manifest
         self._create_repo_with_code()
-        self.assertTrue(check_manifest())
+        self.assertTrue(check_manifest(), sys.stderr.getvalue())
 
     def test_relative_pathname(self):
         from check_manifest import check_manifest
         subdir = self._create_repo_with_code_in_subdir()
-        self.assertTrue(check_manifest(subdir))
+        self.assertTrue(check_manifest(subdir), sys.stderr.getvalue())
 
     def test_relative_python(self):
         # https://github.com/mgedmin/check-manifest/issues/36
         from check_manifest import check_manifest
         subdir = self._create_repo_with_code_in_subdir()
         python = os.path.relpath(sys.executable)
-        self.assertTrue(check_manifest(subdir, python=python))
+        self.assertTrue(check_manifest(subdir, python=python),
+                        sys.stderr.getvalue())
 
     def test_python_from_path(self):
         # https://github.com/mgedmin/check-manifest/issues/57
-        # NB: this test assumes you have a 'python' executable somewhere
-        # in your path.
         from check_manifest import check_manifest
+        # We need a Python interpeter to be in PATH.
+        python = 'python'
+        if hasattr(shutil, 'which'):
+            for python in 'python', 'python3', 
os.path.basename(sys.executable):
+                if shutil.which(python):
+                    break
         subdir = self._create_repo_with_code_in_subdir()
-        self.assertTrue(check_manifest(subdir, python='python'))
+        self.assertTrue(check_manifest(subdir, python=python),
+                        sys.stderr.getvalue())
 
     def test_suggestions(self):
         from check_manifest import check_manifest


Reply via email to