Hello community, here is the log from the commit of package python-dulwich for openSUSE:Factory checked in at 2017-08-13 14:58:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dulwich (Old) and /work/SRC/openSUSE:Factory/.python-dulwich.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dulwich" Sun Aug 13 14:58:03 2017 rev:22 rq:515871 version:0.17.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-dulwich/python-dulwich.changes 2017-05-17 10:54:12.931997609 +0200 +++ /work/SRC/openSUSE:Factory/.python-dulwich.new/python-dulwich.changes 2017-08-13 14:58:05.278070186 +0200 @@ -1,0 +2,13 @@ +Wed Aug 9 15:40:35 UTC 2017 - tbecht...@suse.com + +- switch to singlespec +- split documentation into extra package + +------------------------------------------------------------------- +Wed Aug 9 15:33:16 UTC 2017 - tbecht...@suse.com + +- update to 0.17.3: + * List Python 3.3 as supported. (Jelmer Vernooij, #513) +- Remove source validation (not working) + +------------------------------------------------------------------- Old: ---- dulwich-0.17.2.tar.gz dulwich-0.17.2.tar.gz.asc python-dulwich.keyring New: ---- dulwich-0.17.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dulwich.spec ++++++ --- /var/tmp/diff_new_pack.XRJJah/_old 2017-08-13 14:58:06.073958494 +0200 +++ /var/tmp/diff_new_pack.XRJJah/_new 2017-08-13 14:58:06.089956248 +0200 @@ -16,69 +16,74 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dulwich -Version: 0.17.2 +Version: 0.17.3 Release: 0 Url: https://www.dulwich.io Summary: Pure-Python Git Library License: GPL-2.0+ or Apache-2.0 Group: Development/Languages/Python Source0: https://pypi.io/packages/source/d/dulwich/dulwich-%{version}.tar.gz -Source1: https://pypi.io/packages/source/d/dulwich/dulwich-%{version}.tar.gz.asc -Source2: %{name}.keyring +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-Sphinx -BuildRequires: python-devel +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx Requires(post): update-alternatives Requires(preun): update-alternatives +%python_subpackages + %description Simple Pure-Python implementation of the Git file formats and protocols. Dulwich is the place where Mr. and Mrs. Git live in one of the Monty Python sketches. +%package -n python-dulwich-doc +Summary: Documentation for %{name} +Group: Documentation/Other +Provides: %{python_module dulwich-doc = %{version}} + +%description -n python-dulwich-doc +Simple Pure-Python implementation of the Git file formats and protocols. Dulwich +is the place where Mr. and Mrs. Git live in one of the Monty Python sketches. + +This package contains the documentation. + %prep %setup -q -n dulwich-%{version} %build -python setup.py build -python setup.py build_sphinx && rm build/sphinx/html/.buildinfo +export CFLAGS="%{optflags}" +%python_build +sphinx-build -b html docs/ docs/build/html %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -# Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -for p in dulwich dul-receive-pack dul-upload-pack ; do - mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver} - ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p -done - -%fdupes %{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/dulwich +%python_clone -a %{buildroot}%{_bindir}/dul-receive-pack +%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack %post -%_sbindir/update-alternatives \ - --install %{_bindir}/dulwich dulwich %{_bindir}/dulwich-%{py_ver} 30 \ - --slave %{_bindir}/dul-receive-pack dul-receive-pack %{_bindir}/dul-receive-pack-%{py_ver} \ - --slave %{_bindir}/dul-upload-pack dul-upload-pack %{_bindir}/dul-upload-pack-%{py_ver} - -%preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove dulwich %{_bindir}/dulwich-%{py_ver} -fi +%python_install_alternative dulwich +%python_install_alternative dul-receive-pack +%python_install_alternative dul-upload-pack + +%postun +%python_uninstall_alternative dulwich +%python_uninstall_alternative dul-receive-pack +%python_uninstall_alternative dul-upload-pack -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING NEWS README.md -%doc build/sphinx/html -%{_bindir}/dulwich -%{_bindir}/dul-receive-pack -%{_bindir}/dul-upload-pack -%{_bindir}/dulwich-%{py_ver} -%{_bindir}/dul-receive-pack-%{py_ver} -%{_bindir}/dul-upload-pack-%{py_ver} -%ghost %{_sysconfdir}/alternatives/dulwich -%ghost %{_sysconfdir}/alternatives/dul-receive-pack -%ghost %{_sysconfdir}/alternatives/dul-upload-pack +%python_alternative dulwich +%python_alternative dul-receive-pack +%python_alternative dul-upload-pack %{python_sitearch}/* +%files -n python-dulwich-doc +%doc COPYING docs/build/html + %changelog ++++++ dulwich-0.17.2.tar.gz -> dulwich-0.17.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/.travis.yml new/dulwich-0.17.3/.travis.yml --- old/dulwich-0.17.2/.travis.yml 2017-03-18 23:10:27.000000000 +0100 +++ new/dulwich-0.17.3/.travis.yml 2017-03-20 23:03:10.000000000 +0100 @@ -1,38 +1,38 @@ language: python sudo: false +cache: pip + +python: + - 2.7 + - 3.3 + - 3.4 + - 3.5 + - 3.5-dev + - 3.6 + - 3.6-dev + - 3.7-dev + - pypy3.3-5.2-alpha1 + env: - global: TEST_RUNNER=unittest PYTHONHASHSEED=random + - PYTHONHASHSEED=random + TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" + matrix: include: - - python: "2.7" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "pypy" - env: TEST_REQUIRE="fastimport" - - python: "3.4" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.5" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.6" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.5-dev" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.6" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.6-dev" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" - - python: "3.7-dev" - env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport" -cache: - directories: - - $HOME/.cache/pip -script: - - pip install pip --upgrade - - pip install $TEST_REQUIRE + - python: pypy + env: TEST_REQUIRE=fastimport + +install: + - travis_retry pip install -U pip coverage codecov $TEST_REQUIRE +script: # Test without c extensions - - python -m $TEST_RUNNER dulwich.tests.test_suite + - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite # Test with c extensions - python setup.py build_ext -i - - python -m $TEST_RUNNER dulwich.tests.test_suite + - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite +after_success: + - python -m coverage combine + - codecov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/NEWS new/dulwich-0.17.3/NEWS --- old/dulwich-0.17.2/NEWS 2017-03-19 20:29:07.000000000 +0100 +++ new/dulwich-0.17.3/NEWS 2017-03-20 23:03:57.000000000 +0100 @@ -1,3 +1,13 @@ +0.17.3 2017-03-20 + + PLATFORM SUPPORT + + * List Python 3.3 as supported. (Jelmer Vernooij, #513) + + BUG FIXES + + * Fix compatibility with pypy 3. (Jelmer Vernooij) + 0.17.2 2017-03-19 BUG FIXES diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/PKG-INFO new/dulwich-0.17.3/PKG-INFO --- old/dulwich-0.17.2/PKG-INFO 2017-03-19 20:29:39.000000000 +0100 +++ new/dulwich-0.17.3/PKG-INFO 2017-03-20 23:04:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: dulwich -Version: 0.17.2 +Version: 0.17.3 Summary: Python Git Library Home-page: https://www.dulwich.io/ Author: Jelmer Vernooij @@ -21,8 +21,10 @@ Classifier: Development Status :: 4 - Beta Classifier: License :: OSI Approved :: Apache Software License Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Operating System :: POSIX diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/README.md new/dulwich-0.17.3/README.md --- old/dulwich-0.17.2/README.md 2017-03-01 21:37:24.000000000 +0100 +++ new/dulwich-0.17.3/README.md 2017-03-20 23:03:10.000000000 +0100 @@ -47,4 +47,4 @@ Supported versions of Python ---------------------------- -At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.4, 3.5 and Pypy. +At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.3, 3.4, 3.5, 3.6 and Pypy. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/dulwich/__init__.py new/dulwich-0.17.3/dulwich/__init__.py --- old/dulwich-0.17.2/dulwich/__init__.py 2017-03-16 16:53:01.000000000 +0100 +++ new/dulwich-0.17.3/dulwich/__init__.py 2017-03-19 20:38:52.000000000 +0100 @@ -22,4 +22,4 @@ """Python implementation of the Git file formats and protocols.""" -__version__ = (0, 17, 2) +__version__ = (0, 17, 3) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/dulwich/contrib/swift.py new/dulwich-0.17.3/dulwich/contrib/swift.py --- old/dulwich-0.17.2/dulwich/contrib/swift.py 2017-01-14 17:39:51.000000000 +0100 +++ new/dulwich-0.17.3/dulwich/contrib/swift.py 2017-03-20 15:54:55.000000000 +0100 @@ -172,7 +172,11 @@ """ conf = ConfigParser() if file: - conf.readfp(file) + try: + conf.read_file(file, path) + except AttributeError: + # read_file only exists in Python3 + conf.readfp(file) return conf confpath = None if not path: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/dulwich/objects.py new/dulwich-0.17.3/dulwich/objects.py --- old/dulwich-0.17.2/dulwich/objects.py 2017-03-01 21:37:24.000000000 +0100 +++ new/dulwich-0.17.3/dulwich/objects.py 2017-03-20 23:03:10.000000000 +0100 @@ -1126,8 +1126,8 @@ __slots__ = ('_parents', '_encoding', '_extra', '_author_timezone_neg_utc', '_commit_timezone_neg_utc', '_commit_time', '_author_time', '_author_timezone', '_commit_timezone', - '_author', '_committer', '_parents', '_extra', - '_encoding', '_tree', '_message', '_mergetag', '_gpgsig') + '_author', '_committer', '_tree', '_message', + '_mergetag', '_gpgsig') def __init__(self): super(Commit, self).__init__() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/dulwich/tests/test_repository.py new/dulwich-0.17.3/dulwich/tests/test_repository.py --- old/dulwich-0.17.2/dulwich/tests/test_repository.py 2017-03-01 21:37:24.000000000 +0100 +++ new/dulwich-0.17.3/dulwich/tests/test_repository.py 2017-03-20 23:03:10.000000000 +0100 @@ -401,8 +401,9 @@ """ repo_dir = os.path.join(self.mkdtemp()) - r = Repo.init(repo_dir) self.addCleanup(shutil.rmtree, repo_dir) + r = Repo.init(repo_dir) + self.addCleanup(r.close) pre_commit = os.path.join(r.controldir(), 'hooks', 'pre-commit') @@ -441,8 +442,9 @@ """ repo_dir = self.mkdtemp() - r = Repo.init(repo_dir) self.addCleanup(shutil.rmtree, repo_dir) + r = Repo.init(repo_dir) + self.addCleanup(r.close) commit_msg = os.path.join(r.controldir(), 'hooks', 'commit-msg') @@ -473,9 +475,10 @@ self.skipTest('shell hook tests requires POSIX shell') repo_dir = self.mkdtemp() + self.addCleanup(shutil.rmtree, repo_dir) r = Repo.init(repo_dir) - self.addCleanup(shutil.rmtree, repo_dir) + self.addCleanup(r.close) (fd, path) = tempfile.mkstemp(dir=repo_dir) os.close(fd) @@ -525,9 +528,16 @@ author=b'Test Author <t...@nodomain.com>', commit_timestamp=12345, commit_timezone=0, author_timestamp=12345, author_timezone=0) - self.assertEqual(len(warnings_list), 1, warnings_list) - self.assertIsInstance(warnings_list[-1], UserWarning) - self.assertTrue("post-commit hook failed: " in str(warnings_list[-1])) + expected_warning = UserWarning( + 'post-commit hook failed: Hook post-commit exited with ' + 'non-zero status',) + for w in warnings_list: + if (type(w) == type(expected_warning) and + w.args == expected_warning.args): + break + else: + raise AssertionError('Expected warning %r not in %r' % + (expected_warning, warnings_list)) self.assertEqual([commit_sha], r[commit_sha2].parents) def test_as_dict(self): @@ -549,6 +559,7 @@ worktree_temp_dir = tempfile.mkdtemp() self.addCleanup(shutil.rmtree, worktree_temp_dir) r = Repo.init(temp_dir) + self.addCleanup(r.close) root_sha = r.do_commit( b'empty commit', committer=b'Test Committer <t...@nodomain.com>', @@ -557,6 +568,7 @@ author_timestamp=12345, author_timezone=0) r.refs[b'refs/heads/master'] = root_sha w = Repo._init_new_working_directory(worktree_temp_dir, r) + self.addCleanup(w.close) new_sha = w.do_commit( b'new commit', committer=b'Test Committer <t...@nodomain.com>', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/dulwich.egg-info/PKG-INFO new/dulwich-0.17.3/dulwich.egg-info/PKG-INFO --- old/dulwich-0.17.2/dulwich.egg-info/PKG-INFO 2017-03-19 20:29:39.000000000 +0100 +++ new/dulwich-0.17.3/dulwich.egg-info/PKG-INFO 2017-03-20 23:04:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: dulwich -Version: 0.17.2 +Version: 0.17.3 Summary: Python Git Library Home-page: https://www.dulwich.io/ Author: Jelmer Vernooij @@ -21,8 +21,10 @@ Classifier: Development Status :: 4 - Beta Classifier: License :: OSI Approved :: Apache Software License Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Operating System :: POSIX diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/setup.py new/dulwich-0.17.3/setup.py --- old/dulwich-0.17.2/setup.py 2017-03-16 16:53:01.000000000 +0100 +++ new/dulwich-0.17.3/setup.py 2017-03-20 23:03:10.000000000 +0100 @@ -9,7 +9,7 @@ from distutils.core import setup, Extension from distutils.core import Distribution -dulwich_version_string = '0.17.2' +dulwich_version_string = '0.17.3' include_dirs = [] # Windows MSVC support @@ -91,8 +91,10 @@ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Operating System :: POSIX', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dulwich-0.17.2/tox.ini new/dulwich-0.17.3/tox.ini --- old/dulwich-0.17.2/tox.ini 2017-01-14 21:11:55.000000000 +0100 +++ new/dulwich-0.17.3/tox.ini 2017-03-20 23:03:10.000000000 +0100 @@ -1,6 +1,6 @@ [tox] downloadcache = {toxworkdir}/cache/ -envlist = py27, pypy, py27-noext, pypy-noext, py34, py34-noext, py35, py35-noext, py36, py36-noext +envlist = py27, pypy, py27-noext, pypy-noext, py33, py33-noext, py34, py34-noext, py35, py35-noext, py36, py36-noext [testenv]