-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding docker ignore, fix docker, move to pybind
- Loading branch information
Showing
8 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.ipynb_checkpoints | ||
notebooks | ||
Dockerfile | ||
.DS_Store | ||
keys | ||
*.csv | ||
*.sh | ||
logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
FROM timkpaine/aat:latest | ||
FROM timkpaine/aat-deps:latest | ||
|
||
WORKDIR /usr/src/app | ||
ADD . /usr/src/app | ||
|
||
RUN python3 -m pip install -U codecov coverage pytest pytest-cov mock flake8 pylint | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
RUN make build | ||
RUN make test | ||
RUN codecov --token caa422e7-7543-4adb-8ee1-e4a7ea24b988 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 2.8.2) | ||
|
||
project(pybind11-download NONE) | ||
|
||
include(ExternalProject) | ||
ExternalProject_Add(pybind11 | ||
GIT_REPOSITORY https://github.com/pybind/pybind11.git | ||
GIT_TAG master | ||
SOURCE_DIR "${CMAKE_BINARY_DIR}/pybind11-src" | ||
BINARY_DIR "${CMAKE_BINARY_DIR}/pybind11-build" | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND "" | ||
TEST_COMMAND "" | ||
CMAKE_ARGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#include <iostream> | ||
#include <boost/python/module.hpp> | ||
#include <boost/python/def.hpp> | ||
#include <pybind11/pybind11.h> | ||
namespace py = pybind11; | ||
|
||
#ifndef __AAT_CPP_HELPERS_HPP__ | ||
#define __AAT_CPP_HELPERS_HPP__ | ||
void test(); | ||
|
||
BOOST_PYTHON_MODULE(_cpp_helpers) | ||
PYBIND11_MODULE(_cpp_helpers, m) | ||
{ | ||
boost::python::def("test", test); | ||
m.doc() = "A Test"; | ||
m.def("test", &test, "A test function"); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#include <iostream> | ||
#include <boost/python/module.hpp> | ||
#include <boost/python/def.hpp> | ||
#include <pybind11/pybind11.h> | ||
namespace py = pybind11; | ||
|
||
#ifndef __AAT_TEST_HPP__ | ||
#define __AAT_TEST_HPP__ | ||
void say_hello(const char* name); | ||
|
||
|
||
BOOST_PYTHON_MODULE(test) | ||
PYBIND11_MODULE(test, m) | ||
{ | ||
boost::python::def("say_hello", say_hello); | ||
m.doc() = "A Test"; | ||
m.def("say_hello", &say_hello, "A test function"); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters