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()