Browse Source

Merge branch 'dev' of https://github.com/libtangle/qcgpu into dev

Adam Kelly 5 years ago
parent
commit
2b384315c5
8 changed files with 27 additions and 4 deletions
  1. 11 0
      .travis.yml
  2. 1 1
      CMakeLists.txt
  3. 1 1
      python/__init__.py
  4. 3 0
      python/pytangle.pyx
  5. 5 0
      requirements-dev.txt
  6. 1 2
      setup.py
  7. 0 0
      tests/__init__.py
  8. 5 0
      tests/test_other.py

+ 11 - 0
.travis.yml

@@ -0,0 +1,11 @@
+language: python # works on linux, not windows
+python:
+    - "3.6"
+
+install:
+    - pip3 install -r requirements-dev.txt
+    - python3 setup.py build_ext --inplace
+    - python3 setup.py install
+
+script:
+    - pytest tests

+ 1 - 1
CMakeLists.txt

@@ -3,7 +3,7 @@ project(tangle_project)
 
 
 option(DISTRIBUTED "Use MPI" OFF)
-option(MULTITHREADED "Use OpenMP" ON)
+option(MULTITHREADED "Use OpenMP" OFF)
 
 
 if (NOT DEFINED ${TANGLE_LIB_PATH})

+ 1 - 1
python/__init__.py

@@ -1 +1 @@
-from .pytangle import say_hi
+from .pytangle import say_hi, count

+ 3 - 0
python/pytangle.pyx

@@ -6,3 +6,6 @@ cdef extern from "tangle.h":
 
 def say_hi():
     return count_to(5)
+
+def count(i):
+    return count_to(i)

+ 5 - 0
requirements-dev.txt

@@ -0,0 +1,5 @@
+pytest
+scikit-build
+cython
+cmake
+ninja

+ 1 - 2
setup.py

@@ -26,6 +26,5 @@ setup(
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Topic :: Scientific/Engineering",
-    ],
-    install_requires=['scikit-build', 'cython']
+    ]
 )

+ 0 - 0
tests/__init__.py


+ 5 - 0
tests/test_other.py

@@ -0,0 +1,5 @@
+import pytest
+
+def test_random():
+    assert True
+