Skip to content
Snippets Groups Projects
Commit b41b9818 authored by TANIGUCHI Takaki's avatar TANIGUCHI Takaki :soccer:
Browse files

New upstream version 4.0.7

parent 0f90c743
No related branches found
No related tags found
No related merge requests found
Creator: Sebastian Thiel
Contributors:
- Ram Rachum (@cool-RR)
Metadata-Version: 1.2
Name: gitdb
Version: 4.0.5
Version: 4.0.7
Summary: Git Object Database
Home-page: https://github.com/gitpython-developers/gitdb
Author: Sebastian Thiel
......
Metadata-Version: 1.2
Name: gitdb
Version: 4.0.5
Version: 4.0.7
Summary: Git Object Database
Home-page: https://github.com/gitpython-developers/gitdb
Author: Sebastian Thiel
......
smmap<4,>=3.0.1
smmap<5,>=3.0.1
......@@ -18,8 +18,8 @@ def _init_externals():
try:
__import__(module)
except ImportError:
raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module)
except ImportError as e:
raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module) from e
# END verify import
# END handel imports
......@@ -30,7 +30,7 @@ _init_externals()
__author__ = "Sebastian Thiel"
__contact__ = "byronimo@gmail.com"
__homepage__ = "https://github.com/gitpython-developers/gitdb"
version_info = (4, 0, 5)
version_info = (4, 0, 7)
__version__ = '.'.join(str(i) for i in version_info)
......
......@@ -138,12 +138,12 @@ class LooseObjectDB(FileDBBase, ObjectDBR, ObjectDBW):
# try again without noatime
try:
return file_contents_ro_filepath(db_path)
except OSError:
raise BadObject(sha)
except OSError as new_e:
raise BadObject(sha) from new_e
# didn't work because of our flag, don't try it again
self._fd_open_flags = 0
else:
raise BadObject(sha)
raise BadObject(sha) from e
# END handle error
# END exception handling
......
......@@ -74,8 +74,8 @@ class MemoryDB(ObjectDBR, ObjectDBW):
# rewind stream for the next one to read
ostream.stream.seek(0)
return ostream
except KeyError:
raise BadObject(sha)
except KeyError as e:
raise BadObject(sha) from e
# END exception handling
def size(self):
......
......@@ -326,8 +326,8 @@ class LockedFD(object):
else:
self._fd = fd
# END handle file descriptor
except OSError:
raise IOError("Lock at %r could not be obtained" % self._lockfilepath())
except OSError as e:
raise IOError("Lock at %r could not be obtained" % self._lockfilepath()) from e
# END handle lock retrieval
# open actual file if required
......
......@@ -7,7 +7,7 @@ from setuptools import setup
__author__ = "Sebastian Thiel"
__contact__ = "byronimo@gmail.com"
__homepage__ = "https://github.com/gitpython-developers/gitdb"
version_info = (4, 0, 5)
version_info = (4, 0, 7)
__version__ = '.'.join(str(i) for i in version_info)
setup(
......@@ -20,7 +20,7 @@ setup(
packages=('gitdb', 'gitdb.db', 'gitdb.utils', 'gitdb.test'),
license="BSD License",
zip_safe=False,
install_requires=['smmap>=3.0.1,<4'],
install_requires=['smmap>=3.0.1,<5'],
long_description="""GitDB is a pure-Python git object database""",
python_requires='>=3.4',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment