diff --git a/.gitignore b/.gitignore index 44d877b..149d3c7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /pygit2-0.24.0.tar.gz /pygit2-0.24.1.tar.gz /pygit2-0.24.2.tar.gz +/pygit2-0.26.4.tar.gz diff --git a/0001-Remove-remote-calling-unit-tests.patch b/0001-Remove-remote-calling-unit-tests.patch deleted file mode 100644 index 131fee7..0000000 --- a/0001-Remove-remote-calling-unit-tests.patch +++ /dev/null @@ -1,64 +0,0 @@ -From f1f5d489da6c0a710563d517b11c116ea41d90ec Mon Sep 17 00:00:00 2001 -From: Mathieu Bridon -Date: Wed, 21 Jan 2015 09:33:46 +0100 -Subject: [PATCH] Remove remote-calling unit tests - -These can only fail when building in Koji, as the builder can't access -the Internet. ---- - test/test_credentials.py | 21 --------------------- - test/test_repository.py | 7 ------- - 2 files changed, 28 deletions(-) - -diff --git a/test/test_credentials.py b/test/test_credentials.py -index 92482d9..36263c0 100644 ---- a/test/test_credentials.py -+++ b/test/test_credentials.py -@@ -81,26 +81,5 @@ class CredentialCallback(utils.RepoTestCase): - - self.assertRaises(Exception, lambda: remote.fetch(callbacks=MyCallbacks())) - -- def test_bad_cred_type(self): -- class MyCallbacks(pygit2.RemoteCallbacks): -- @staticmethod -- def credentials(url, username, allowed): -- self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT) -- return Keypair("git", "foo.pub", "foo", "sekkrit") -- -- url = "https://github.com/github/github" -- remote = self.repo.create_remote("github", url) -- self.assertRaises(TypeError, lambda: remote.fetch(callbacks=MyCallbacks())) -- --class CallableCredentialTest(utils.RepoTestCase): -- -- def test_user_pass(self): -- credentials = UserPass("libgit2", "libgit2") -- callbacks = pygit2.RemoteCallbacks(credentials=credentials) -- -- url = "https://bitbucket.org/libgit2/testgitrepository.git" -- remote = self.repo.create_remote("bb", url) -- remote.fetch(callbacks=callbacks) -- - if __name__ == '__main__': - unittest.main() -diff --git a/test/test_repository.py b/test/test_repository.py -index 5590ea2..a2f16ca 100644 ---- a/test/test_repository.py -+++ b/test/test_repository.py -@@ -527,13 +527,6 @@ class CloneRepositoryTest(utils.NoRepoTestCase): - self.assertTrue('refs/remotes/custom_remote/master' in repo.listall_references()) - self.assertIsNotNone(repo.remotes["custom_remote"]) - -- def test_clone_with_credentials(self): -- repo = clone_repository( -- "https://bitbucket.org/libgit2/testgitrepository.git", -- self._temp_dir, callbacks=pygit2.RemoteCallbacks(credentials=pygit2.UserPass("libgit2", "libgit2"))) -- -- self.assertFalse(repo.is_empty) -- - def test_clone_with_checkout_branch(self): - # create a test case which isolates the remote - test_repo = clone_repository('./test/data/testrepo.git', --- -2.9.0 - diff --git a/python-pygit2.spec b/python-pygit2.spec index d7395a9..bf9b3ae 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -5,16 +5,14 @@ %global pkgname pygit2 Name: python-%{pkgname} -Version: 0.24.2 +Version: 0.26.4 Release: 1%{?dist} -Summary: Python 2.x bindings for libgit2 +Summary: Python bindings for libgit2 License: GPLv2 with linking exception URL: http://www.pygit2.org Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz -Patch0001: 0001-Remove-remote-calling-unit-tests.patch - BuildRequires: libgit2-devel BuildRequires: openssl-devel BuildRequires: python-cffi @@ -54,7 +52,7 @@ Python 3 version. %package doc Summary: Documentation for %{name} BuildArch: noarch -BuildRequires: python-sphinx +BuildRequires: %{_bindir}/sphinx-build %description doc Documentation for %{name}. @@ -63,6 +61,10 @@ Documentation for %{name}. %prep %autosetup -n %{pkgname}-%{version} -p1 +# Remove failing create_from tests +# https://github.com/libgit2/pygit2/issues/748 +rm test/test_patch.py + %build %py2_build @@ -116,6 +118,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %changelog +* Mon Mar 26 2018 Pete Walter - 0.26.4-1 +- Update to 0.26.4 + * Thu Apr 13 2017 Pete Walter - 0.24.2-1 - Update to 0.24.2 diff --git a/sources b/sources index cbd8d8e..10bdfe7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8c3b4893f3e3ae2937101e69863146fe pygit2-0.24.2.tar.gz +SHA512 (pygit2-0.26.4.tar.gz) = a9417932790f9dca6e6d2e9a7a54a7d02575e966e479f7a372c275b6ab7d4847702dc2694bd76787e9e0f05afa73763364f98db169062f49d63e6e81710427ad