From 690828ce2e03ce32c5a66186c543d7c5050287e4 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 6 Jul 2011 22:11:48 +0200 Subject: Added basis for initial dulwich integration. Many basic issues should surface while integrating this --- git/db/dulwich/__init__.py | 13 +++++++++++++ git/db/dulwich/base.py | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 git/db/dulwich/__init__.py create mode 100644 git/db/dulwich/base.py (limited to 'git/db') diff --git a/git/db/dulwich/__init__.py b/git/db/dulwich/__init__.py new file mode 100644 index 00000000..92d30941 --- /dev/null +++ b/git/db/dulwich/__init__.py @@ -0,0 +1,13 @@ +"""Dulwich module initialization""" + +def init_dulwich(): + """:raise ImportError: if dulwich is not present""" + try: + import dulwich + except ImportError: + raise ImportError("Could not find 'dulwich' in the PYTHONPATH - dulwich functionality is not available") + #END handle dulwich import + + + +init_dulwich() diff --git a/git/db/dulwich/base.py b/git/db/dulwich/base.py new file mode 100644 index 00000000..cd1d71c8 --- /dev/null +++ b/git/db/dulwich/base.py @@ -0,0 +1,6 @@ +"""Module with some basic database implementations""" + + +__all__ = [] + + -- cgit v1.2.3