summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in2
-rwxr-xr-xsetup.py1
-rw-r--r--test/performance/lib.py2
-rw-r--r--test/performance/test_commit.py2
-rw-r--r--test/performance/test_streams.py2
-rw-r--r--test/test_actor.py2
-rw-r--r--test/test_base.py2
-rw-r--r--test/test_blob.py2
-rw-r--r--test/test_commit.py2
-rw-r--r--test/test_config.py2
-rw-r--r--test/test_db.py2
-rw-r--r--test/test_diff.py2
-rw-r--r--test/test_fun.py2
-rw-r--r--test/test_git.py2
-rw-r--r--test/test_index.py2
-rw-r--r--test/test_refs.py2
-rw-r--r--test/test_remote.py2
-rw-r--r--test/test_repo.py2
-rw-r--r--test/test_stats.py2
-rw-r--r--test/test_submodule.py10
-rw-r--r--test/test_tree.py2
-rw-r--r--test/test_util.py2
22 files changed, 25 insertions, 26 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index e01ae090..8917827d 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -3,3 +3,5 @@ include LICENSE
include CHANGES
include AUTHORS
include README
+
+graft test/fixtures
diff --git a/setup.py b/setup.py
index b4cdb15f..54d78c50 100755
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,7 @@ setup(name = "GitPython",
url = "http://gitorious.org/projects/git-python/",
packages = ['git.'+p for p in find_packages('.')],
py_modules = ['git.'+f[:-3] for f in os.listdir('.') if f.endswith('.py')],
+ package_data = {'git.test' : ['fixtures/*']},
package_dir = {'git':''},
license = "BSD License",
requires=('gitdb (>=0.5.1)',),
diff --git a/test/performance/lib.py b/test/performance/lib.py
index 4ac1f1da..d0727b60 100644
--- a/test/performance/lib.py
+++ b/test/performance/lib.py
@@ -1,6 +1,6 @@
"""Contains library functions"""
import os
-from test.testlib import *
+from git.test.lib import *
import shutil
import tempfile
diff --git a/test/performance/test_commit.py b/test/performance/test_commit.py
index 62d409fc..80421aa2 100644
--- a/test/performance/test_commit.py
+++ b/test/performance/test_commit.py
@@ -7,7 +7,7 @@
from lib import *
from git import *
from gitdb import IStream
-from test.git.test_commit import assert_commit_serialization
+from git.test.test_commit import assert_commit_serialization
from cStringIO import StringIO
from time import time
import sys
diff --git a/test/performance/test_streams.py b/test/performance/test_streams.py
index a5811262..7f17d722 100644
--- a/test/performance/test_streams.py
+++ b/test/performance/test_streams.py
@@ -1,6 +1,6 @@
"""Performance data streaming performance"""
-from test.testlib import *
+from git.test.lib import *
from gitdb import *
from gitdb.util import bin_to_hex
diff --git a/test/test_actor.py b/test/test_actor.py
index 8fda57e5..b8e5ba3b 100644
--- a/test/test_actor.py
+++ b/test/test_actor.py
@@ -5,7 +5,7 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os
-from test.testlib import *
+from git.test.lib import *
from git import *
class TestActor(object):
diff --git a/test/test_base.py b/test/test_base.py
index 25d1e4e9..e630d151 100644
--- a/test/test_base.py
+++ b/test/test_base.py
@@ -8,7 +8,7 @@ import git.objects.base as base
import git.refs as refs
import os
-from test.testlib import *
+from git.test.lib import *
from git import *
from itertools import chain
from git.objects.util import get_object_type_by_name
diff --git a/test/test_blob.py b/test/test_blob.py
index 623ed179..8513328e 100644
--- a/test/test_blob.py
+++ b/test/test_blob.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
from gitdb.util import hex_to_bin
diff --git a/test/test_commit.py b/test/test_commit.py
index c3ce5c92..a00a8de8 100644
--- a/test/test_commit.py
+++ b/test/test_commit.py
@@ -5,7 +5,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
from gitdb import IStream
from gitdb.util import hex_to_bin
diff --git a/test/test_config.py b/test/test_config.py
index 8c846b99..173e380c 100644
--- a/test/test_config.py
+++ b/test/test_config.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
import StringIO
from copy import copy
diff --git a/test/test_db.py b/test/test_db.py
index 9da13bd8..db2d7983 100644
--- a/test/test_db.py
+++ b/test/test_db.py
@@ -3,7 +3,7 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git.db import *
from gitdb.util import bin_to_hex
from git.exc import BadObject
diff --git a/test/test_diff.py b/test/test_diff.py
index ade21c1b..83db2df6 100644
--- a/test/test_diff.py
+++ b/test/test_diff.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
class TestDiff(TestBase):
diff --git a/test/test_fun.py b/test/test_fun.py
index 3fdc13fd..b7991cdb 100644
--- a/test/test_fun.py
+++ b/test/test_fun.py
@@ -1,4 +1,4 @@
-from test.testlib import *
+from git.test.lib import *
from git.objects.fun import (
traverse_tree_recursive,
traverse_trees_recursive,
diff --git a/test/test_git.py b/test/test_git.py
index 518c464a..c92a642b 100644
--- a/test/test_git.py
+++ b/test/test_git.py
@@ -5,7 +5,7 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os, sys
-from test.testlib import *
+from git.test.lib import *
from git import Git, GitCommandError
class TestGit(TestCase):
diff --git a/test/test_index.py b/test/test_index.py
index 29a7404d..78a868c7 100644
--- a/test/test_index.py
+++ b/test/test_index.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
import inspect
import os
diff --git a/test/test_refs.py b/test/test_refs.py
index fa26bae9..700e5fac 100644
--- a/test/test_refs.py
+++ b/test/test_refs.py
@@ -5,7 +5,7 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
from mock import *
-from test.testlib import *
+from git.test.lib import *
from git import *
import git.refs as refs
from git.objects.tag import TagObject
diff --git a/test/test_remote.py b/test/test_remote.py
index c52f907e..108712a5 100644
--- a/test/test_remote.py
+++ b/test/test_remote.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
from git.util import IterableList
import tempfile
diff --git a/test/test_repo.py b/test/test_repo.py
index 62b4c476..59a1f6bf 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -3,7 +3,7 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
from git.util import join_path_native
from git.exc import BadObject
diff --git a/test/test_stats.py b/test/test_stats.py
index cc30bf92..2bdb0a89 100644
--- a/test/test_stats.py
+++ b/test/test_stats.py
@@ -4,7 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git import *
class TestStats(TestBase):
diff --git a/test/test_submodule.py b/test/test_submodule.py
index d922f32a..c1fa2061 100644
--- a/test/test_submodule.py
+++ b/test/test_submodule.py
@@ -1,7 +1,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git.exc import *
from git.objects.submodule.base import Submodule
from git.objects.submodule.root import RootModule
@@ -12,7 +12,7 @@ import os
class TestSubmodule(TestBase):
- k_subm_current = "45c0f285a6d9d9214f8167742d12af2855f527fb"
+ k_subm_current = "83a9e4a0dad595188ff3fb35bc3dfc4d931eff6d"
k_subm_changed = "394ed7006ee5dc8bddfd132b64001d5dfc0ffdd3"
k_no_subm_tag = "0.1.6"
@@ -32,7 +32,7 @@ class TestSubmodule(TestBase):
# at a different time, there is None
assert len(Submodule.list_items(rwrepo, self.k_no_subm_tag)) == 0
- assert sm.path == 'lib/git/ext/gitdb'
+ assert sm.path == 'ext/gitdb'
assert sm.path != sm.name # in our case, we have ids there, which don't equal the path
assert sm.url == 'git://gitorious.org/git-python/gitdb.git'
assert sm.branch_path == 'refs/heads/master' # the default ...
@@ -298,10 +298,6 @@ class TestSubmodule(TestBase):
assert nsm.path == nmp
assert rwrepo.submodules[0].path == nmp
- # move it back - but there is a file now - this doesn't work
- # as the empty directories where removed.
- self.failUnlessRaises(IOError, open, abspmp, 'w')
-
mpath = 'newsubmodule'
absmpath = join_path_native(rwrepo.working_tree_dir, mpath)
open(absmpath, 'w').write('')
diff --git a/test/test_tree.py b/test/test_tree.py
index 18688424..80db2e4b 100644
--- a/test/test_tree.py
+++ b/test/test_tree.py
@@ -5,7 +5,7 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os
-from test.testlib import *
+from git.test.lib import *
from git import *
from git.objects.fun import (
traverse_tree_recursive,
diff --git a/test/test_util.py b/test/test_util.py
index 6453bc19..7a6eb27d 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -7,7 +7,7 @@
import os
import tempfile
-from test.testlib import *
+from git.test.lib import *
from git.util import *
from git.objects.util import *
from git import *