From c48e54cf034564243b9f9674f2c9982e19bf5e50 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Feb 24 2020 12:13:12 +0000 Subject: - New upstream release 4.0.1 --- diff --git a/53.patch b/53.patch index ddea2f2..122137e 100644 --- a/53.patch +++ b/53.patch @@ -1,4 +1,4 @@ -From 9653f31e388a07ce0430bdcde5177ba04733100a Mon Sep 17 00:00:00 2001 +From 6910f6da2a0ff0f4c21c973d07383ada8c519f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 8 Jan 2020 09:36:55 +0100 Subject: [PATCH] Fix deprecated calls for Python 3.9 @@ -9,15 +9,15 @@ The array methods fromstring/tostring have been deprecated since Python This was discovered when trying to build gitdb package for Fedora 33. https://bugzilla.redhat.com/show_bug.cgi?id=1788660 --- - gitdb/pack.py | 11 ++++++++++- - gitdb/test/lib.py | 11 ++++++++++- - 2 files changed, 20 insertions(+), 2 deletions(-) + gitdb/pack.py | 9 +++++++++ + gitdb/test/lib.py | 9 +++++++++ + 2 files changed, 18 insertions(+) diff --git a/gitdb/pack.py b/gitdb/pack.py -index 115d943..832a913 100644 +index a38468e..0eae146 100644 --- a/gitdb/pack.py +++ b/gitdb/pack.py -@@ -247,6 +247,15 @@ def write(self, pack_sha, write): +@@ -241,6 +241,15 @@ class IndexWriter(object): return sha @@ -33,20 +33,11 @@ index 115d943..832a913 100644 class PackIndexFile(LazyMixin): """A pack index provides offsets into the corresponding pack, allowing to find -@@ -410,7 +419,7 @@ def offsets(self): - if self._version == 2: - # read stream to array, convert to tuple - a = array.array('I') # 4 byte unsigned int, long are 8 byte on 64 bit it appears -- a.fromstring(buffer(self._cursor.map(), self._pack_offset, self._pack_64_offset - self._pack_offset)) -+ _frombytes(a, buffer(self._cursor.map(), self._pack_offset, self._pack_64_offset - self._pack_offset)) - - # networkbyteorder to something array likes more - if sys.byteorder == 'little': diff --git a/gitdb/test/lib.py b/gitdb/test/lib.py -index ab1842d..68e71f2 100644 +index a04084f..d62db37 100644 --- a/gitdb/test/lib.py +++ b/gitdb/test/lib.py -@@ -147,6 +147,15 @@ def copy_files_globbed(source_glob, target_dir, hard_link_ok=False): +@@ -146,6 +146,15 @@ def copy_files_globbed(source_glob, target_dir, hard_link_ok=False): # END for each file to copy @@ -62,12 +53,6 @@ index ab1842d..68e71f2 100644 def make_bytes(size_in_bytes, randomize=False): """:return: string with given size in bytes :param randomize: try to produce a very random stream""" -@@ -157,7 +166,7 @@ def make_bytes(size_in_bytes, randomize=False): - random.shuffle(producer) - # END randomize - a = array('i', producer) -- return a.tostring() -+ return _tobytes(a) - - - def make_object(type, data): +-- +2.21.1 + diff --git a/python-gitdb.spec b/python-gitdb.spec index 741bd0c..0ebadc7 100644 --- a/python-gitdb.spec +++ b/python-gitdb.spec @@ -1,8 +1,8 @@ %global modname gitdb Name: python-%{modname} -Version: 2.0.3 -Release: 11%{?dist} +Version: 4.0.1 +Release: 1%{?dist} Summary: Git Object Database License: BSD @@ -56,6 +56,9 @@ Python 3 version. %{python3_sitelib}/%{modname}/ %changelog +* Mon Feb 24 2020 Lubomír Sedlář - 4.0.1-1 +- New upstream release 4.0.1 + * Thu Jan 30 2020 Fedora Release Engineering - 2.0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild