Commit 91d0800f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use setuptools features to get test dependency (py-unittest-extra)

parent 369c679c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15,6 +15,15 @@ setup(
		'console_scripts': ['list-files=list_files:mainwrap'],
	},

	test_suite = 'tests',
	tests_require = [
		'unittest_extra',
	],

	dependency_links = [
		'git+https://code.kodo.org.uk/dom/py-unittest-extra.git#egg=unittest_extra',
	],

	# Metadata
	author = "Dom Sekotill",
	author_email = "dom@kodo.org.uk",
+0 −6
Original line number Diff line number Diff line
import sys
from os.path import join, dirname

# Use py-unittest-extra package from the project root if it is not installed on
# the system.
sys.path.append(join(dirname(dirname(__file__)), 'py-unittest-extra'))