From 805aba436d5c11ff4ea88487959e18bd9bf8cdcc Mon Sep 17 00:00:00 2001 From: Austin Garrett Date: Fri, 16 Mar 2018 17:52:01 -0400 Subject: [PATCH] Flesh out directory structure for project. --- Makefile | 5 +++++ pointcnn/pointcnn.py | 1 + pointcnn/util.py | 1 + requirements.txt | 5 +++++ tests/__main__.py | 6 ++++++ tests/context.py | 6 ++++++ tests/test_advanced.py | 12 ++++++++++++ tests/test_basic.py | 12 ++++++++++++ 8 files changed, 48 insertions(+) create mode 100644 Makefile create mode 100644 pointcnn/pointcnn.py create mode 100644 pointcnn/util.py create mode 100644 requirements.txt create mode 100644 tests/__main__.py create mode 100644 tests/context.py create mode 100644 tests/test_advanced.py create mode 100644 tests/test_basic.py diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5bb6c1 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +init: + pip3 install -r requirements.txt + +test: + nosetests tests diff --git a/pointcnn/pointcnn.py b/pointcnn/pointcnn.py new file mode 100644 index 0000000..2f4eb9a --- /dev/null +++ b/pointcnn/pointcnn.py @@ -0,0 +1 @@ +# This is a file for the main PyTorch module. diff --git a/pointcnn/util.py b/pointcnn/util.py new file mode 100644 index 0000000..3177f3d --- /dev/null +++ b/pointcnn/util.py @@ -0,0 +1 @@ +# This is a file for utility functions. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..aebca71 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +nose +sphinx +numpy +http://download.pytorch.org/whl/cu80/torch-0.3.1-cp35-cp35m-linux_x86_64.whl +torchvision diff --git a/tests/__main__.py b/tests/__main__.py new file mode 100644 index 0000000..c0f19b5 --- /dev/null +++ b/tests/__main__.py @@ -0,0 +1,6 @@ +import unittest + +from test_basic import * +from test_advanced import * + +unittest.main() diff --git a/tests/context.py b/tests/context.py new file mode 100644 index 0000000..bb675d4 --- /dev/null +++ b/tests/context.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- + +import sys, os +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + +import pointcnn diff --git a/tests/test_advanced.py b/tests/test_advanced.py new file mode 100644 index 0000000..a0bd976 --- /dev/null +++ b/tests/test_advanced.py @@ -0,0 +1,12 @@ +import unittest + +from context import pointcnn + +class AdvancedTests(unittest.TestCase): + """ Basic test cases """ + + def test_example(self): + self.assertTrue(True) + +if __name__ == "__main__": + unittest.main() diff --git a/tests/test_basic.py b/tests/test_basic.py new file mode 100644 index 0000000..47542ee --- /dev/null +++ b/tests/test_basic.py @@ -0,0 +1,12 @@ +import unittest + +from context import pointcnn + +class BasicTests(unittest.TestCase): + """ Basic test cases """ + + def test_example(self): + self.assertTrue(True) + +if __name__ == "__main__": + unittest.main()