[packages/python-pygit2] - up to 0.27.2

arekm arekm at pld-linux.org
Thu Sep 20 17:42:19 CEST 2018


commit 98d2ca300fa6ddc37196dfdad285e472d3b1a476
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Sep 20 17:42:11 2018 +0200

    - up to 0.27.2

 0001-Remove-remote-calling-unit-tests.patch | 110 ----------------------------
 python-pygit2.spec                          |  10 +--
 2 files changed, 4 insertions(+), 116 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index da1c41a..2e3edc9 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -13,17 +13,16 @@
 Summary:	Python 2.x bindings for libgit2 library
 Summary(pl.UTF-8):	Wiązania Pythona 2.x do biblioteki libgit2
 Name:		python-%{module}
-Version:	0.26.1
-Release:	4
+Version:	0.27.2
+Release:	1
 License:	GPL v2 with linking exception
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/pygit2/
 Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	961b53b62c36c8ef9df3cc4e5884f039
+# Source0-md5:	4db3fcd4c104f7e5a3cafb868e2bd0d4
 Patch0:		%{name}-docbuild.patch
-Patch1:		0001-Remove-remote-calling-unit-tests.patch
 URL:		https://pypi.python.org/pypi/pygit2
-BuildRequires:	libgit2-devel >= 0.26.0
+BuildRequires:	libgit2-devel >= 0.27.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
@@ -79,7 +78,6 @@ Dokumentacja API modułu pygit2.
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
-%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/0001-Remove-remote-calling-unit-tests.patch b/0001-Remove-remote-calling-unit-tests.patch
deleted file mode 100644
index 4b31d2c..0000000
--- a/0001-Remove-remote-calling-unit-tests.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-From a36d3bebba08471caafe3e976a74afd040e90480 Mon Sep 17 00:00:00 2001
-From: Mathieu Bridon <bochecha at daitauha.fr>
-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 -------
- test/test_submodule.py   | 28 ----------------------------
- 3 files changed, 56 deletions(-)
-
-diff --git a/test/test_credentials.py b/test/test_credentials.py
-index ff014c6..019f420 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 0969fc0..033a1de 100644
---- a/test/test_repository.py
-+++ b/test/test_repository.py
-@@ -551,13 +551,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',
-diff --git a/test/test_submodule.py b/test/test_submodule.py
-index f123b8b..a42736a 100644
---- a/test/test_submodule.py
-+++ b/test/test_submodule.py
-@@ -53,14 +53,6 @@ class SubmoduleTest(utils.SubmoduleRepoTestCase):
-         self.assertEqual(len(submodules), 1)
-         self.assertEqual(submodules[0], SUBM_PATH)
- 
--    def test_submodule_open(self):
--        s = self.repo.lookup_submodule(SUBM_PATH)
--        self.repo.init_submodules()
--        self.repo.update_submodules()
--        r = s.open()
--        self.assertIsNotNone(r)
--        self.assertEqual(str(r.head.target), SUBM_HEAD_SHA)
--
-     def test_name(self):
-         s = self.repo.lookup_submodule(SUBM_PATH)
-         self.assertEqual(SUBM_NAME, s.name)
-@@ -73,25 +65,5 @@ class SubmoduleTest(utils.SubmoduleRepoTestCase):
-         s = self.repo.lookup_submodule(SUBM_PATH)
-         self.assertEqual(SUBM_URL, s.url)
- 
--    def test_init_and_update(self):
--        subrepo_file_path = os.path.join(self.repo_path, 'submodule', 'setup.py')
--        self.assertFalse(os.path.exists(subrepo_file_path))
--        self.repo.init_submodules()
--        self.repo.update_submodules()
--        self.assertTrue(os.path.exists(subrepo_file_path))
--
--    def test_specified_update(self):
--        subrepo_file_path = os.path.join(self.repo_path, 'submodule', 'setup.py')
--        self.assertFalse(os.path.exists(subrepo_file_path))
--        self.repo.init_submodules(submodules=['submodule'])
--        self.repo.update_submodules(submodules=['submodule'])
--        self.assertTrue(os.path.exists(subrepo_file_path))
--
--    def test_oneshot_update(self):
--        subrepo_file_path = os.path.join(self.repo_path, 'submodule', 'setup.py')
--        self.assertFalse(os.path.exists(subrepo_file_path))
--        self.repo.update_submodules(init=True)
--        self.assertTrue(os.path.exists(subrepo_file_path))
--
- if __name__ == '__main__':
-     unittest.main()
--- 
-2.12.2
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/98d2ca300fa6ddc37196dfdad285e472d3b1a476



More information about the pld-cvs-commit mailing list