commit 04dc15de9dc3a5a8712d6e43495c5e6b30ac2961
parent 4844bb52c77eed6b43780a89bb4aeceb17bed48b
Author: Brian C. Lane <bcl@brianlane.com>
Date: Sun, 16 Jul 2017 07:20:29 -0700
Restructure the project layout
Diffstat:
5 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/bin/strix b/src/bin/strix
diff --git a/src/strix/__init__.py b/src/strix/__init__.py
@@ -21,7 +21,7 @@ import threading
import strix.cmdline
import strix.queue
-import motion.config
+import strix.motion as motion
## Check the motion args
## Start the queue watcher thread
diff --git a/src/strix/motion/__init__.py b/src/strix/motion/__init__.py
@@ -0,0 +1,19 @@
+# strix/motion/__init__.py
+#
+# Copyright (C) 2017 Brian C. Lane
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from . import config
+
+__all__ = [config]
diff --git a/src/motion/config.py b/src/strix/motion/config.py
diff --git a/tox.ini b/tox.ini
@@ -9,7 +9,7 @@ deps=
pytest
mypy
commands=
- mypy --strict --ignore-missing-imports src/motion/ src/strix/ bin/strix
- pylint --rcfile=pylint.rc -E src/motion/ src/strix/ bin/strix
+ mypy --strict --ignore-missing-imports src/strix/ src/bin/strix
+ pylint --rcfile=pylint.rc -E src/strix/ src/bin/strix
nosetests --with-coverage [] # substitute with tox' positional arguments
pytest -v