[PATCH evemu 14/16] python: explicitly specify file lists

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 11 18:34:48 PDT 2014


Don't use a wildcard, avoids accidentally shipping files we shouldn't, and
clearly lists what we intend to ship.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 python/Makefile.am | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/python/Makefile.am b/python/Makefile.am
index 20e50f0..1725ed4 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -19,7 +19,21 @@
 SUBDIRS = evemu
 
 nobase_python_PYTHON = \
-	$(wildcard evemu/*.py)
+	evemu/__init__.py \
+	evemu/base.py \
+	evemu/const.py \
+	evemu/exception.py \
+	evemu/event_names.py # generated!
+
+test_sources = \
+	       evemu/testing/__init__.py \
+	       evemu/testing/mocker.py \
+	       evemu/testing/result.py \
+	       evemu/testing/runner.py \
+	       evemu/testing/testcase.py \
+	       evemu/tests/__init__.py \
+	       evemu/tests/test_base.py \
+	       evemu/tests/test_device.py
 
 check_SCRIPTS = evemu-test-runner
 
@@ -35,5 +49,5 @@ evemu-test-runner: evemu-test-runner.in Makefile
 	chmod +x $@
 
 BUILT_SOURCES = evemu-test-runner
-EXTRA_DIST =  evemu-test-runner.in $(wildcard evemu/test*)
+EXTRA_DIST =  evemu-test-runner.in $(test_sources)
 CLEANFILES = $(BUILT_SOURCES)
-- 
1.9.3



More information about the Input-tools mailing list