-
Notifications
You must be signed in to change notification settings - Fork 24
Add python bindings #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 45 commits
082afe4
a8a924e
4b33819
111b734
caeb577
eddb760
8e7f475
dc91554
1cb3597
c940bd3
86cbd91
037eb69
60103bc
5dacd2d
2ec61b4
bae25d3
4d54664
a65d69a
9143d1a
8a0f1a4
6701c19
daadb33
7bb120f
1692246
b10e6a3
7a2c67e
cf92b45
ded948f
7892582
4c3414e
6e5beb6
470ae1a
740f8d2
54d8f30
aa3fb33
b6648fa
cc2e1b5
c0158a6
1ab4052
674aea1
2394da2
7aab1a3
efcb14a
83ea2be
4761465
95c81d1
e3bf246
9464880
10e2148
433810e
22d8b68
5ac8042
a24420c
6f2aea1
c740b14
65c8345
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,21 @@ | ||
| [submodule "Catch2"] | ||
| path = Catch2 | ||
| url = https://github.com/catchorg/Catch2 | ||
| [submodule "msgpack-c"] | ||
| path = msgpack-c | ||
| url = https://github.com/msgpack/msgpack-c | ||
| path = submodules/Catch2 | ||
| url = https://github.com/catchorg/Catch2.git | ||
| [submodule "mmtf_spec"] | ||
| path = mmtf_spec | ||
| url = https://github.com/rcsb/mmtf | ||
| path = submodules/mmtf_spec | ||
| url = https://github.com/rcsb/mmtf.git | ||
| [submodule "pybind11"] | ||
| path = submodules/pybind11 | ||
| url = https://github.com/pybind/pybind11.git | ||
| [submodule "submodules/msgpack-c"] | ||
| path = submodules/msgpack-c | ||
| url = https://github.com/msgpack/msgpack-c.git | ||
| [submodule "submodules/Catch2"] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will fix this once the other two PRs are merged |
||
| path = submodules/Catch2 | ||
| url = https://github.com/catchorg/Catch2.git | ||
| [submodule "submodules/--force"] | ||
| path = submodules/--force | ||
| url = https://github.com/msgpack/msgpack-c.git | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| [submodule "submodules/mmtf_spec"] | ||
| path = submodules/mmtf_spec | ||
| url = https://github.com/rcsb/mmtf.git | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,24 +21,66 @@ linux32_addons: | |
| - linux-libc-dev:i386 | ||
| - libc6-dev-i386 | ||
|
|
||
| linux64_cpp17addons: | ||
| addons: &linux64cpp17 | ||
| apt: | ||
| sources: | ||
| - ubuntu-toolchain-r-test | ||
|
|
||
|
|
||
| linux64_cpp17addons_py36: | ||
| addons: &linux64cpp17py36 | ||
| apt: | ||
| sources: | ||
| - ubuntu-toolchain-r-test | ||
| - gcc-7 | ||
| - g++-7 | ||
|
|
||
| # Set empty values for allow_failures to work | ||
| env: | ||
| env: TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_tests.sh | ||
| python: | ||
|
|
||
| matrix: | ||
| fast_finish: true | ||
| include: | ||
| - os: linux | ||
| env: EMSCRIPTEN=ON | ||
| env: EMSCRIPTEN=ON TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_tests.sh | ||
| addons: *linux64 | ||
| - os: linux | ||
| compiler: clang | ||
| addons: *linux64 | ||
| - os: linux | ||
| compiler: gcc | ||
| env: ARCH=x86 CMAKE_EXTRA=-DHAVE_LIBM=/lib32/libm.so.6 | ||
| env: ARCH=x86 CMAKE_EXTRA=-DHAVE_LIBM=/lib32/libm.so.6 TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_tests.sh | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The TEST_COMMAND environment variable is a way to run two different tests. I could not find a better way to run two different test suites. If you have any examples of repos that do this in a nicer way, I would be happy to learn a more efficient way and refactor this. in this case TEST_COMMAND is not redundant because the |
||
| addons: *linux32 | ||
| - os: osx | ||
| compiler: clang | ||
| - os: linux | ||
| compiler: gcc | ||
| addons: *linux64cpp17 | ||
| dist: bionic | ||
| - os: linux | ||
| compiler: gcc | ||
| addons: *linux64cpp17py36 | ||
| dist: bionic | ||
| env: TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_python_tests.sh CC=gcc | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe add a global env : TEST_COMMAND=$TEST_COMMAND_PYTHONAnd is
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just tested this, and apparently... yes it is required for some reason, even though you would think otherwise.. |
||
| python: 3.6 | ||
| language: python | ||
| - os: linux | ||
| compiler: gcc | ||
| addons: *linux64cpp17py36 | ||
| dist: bionic | ||
| env: TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_python_tests.sh CC=gcc | ||
| python: 3.7 | ||
| language: python | ||
| - os: linux | ||
| compiler: gcc | ||
| addons: *linux64cpp17py36 | ||
| dist: bionic | ||
| env: TEST_COMMAND=$TRAVIS_BUILD_DIR/ci/build_and_run_python_tests.sh CC=gcc | ||
| python: 3.8 | ||
| language: python | ||
|
|
||
|
|
||
| before_install: | ||
| # Setting environement | ||
|
|
@@ -48,10 +90,5 @@ before_install: | |
| - $CXX --version | ||
|
|
||
| script: | ||
| - cd $TRAVIS_BUILD_DIR | ||
| - mkdir build && cd build | ||
| - $CMAKE_CONFIGURE cmake $CMAKE_ARGS $CMAKE_EXTRA .. | ||
| - make -j2 | ||
| - ctest -j2 --output-on-failure | ||
| - bash $TRAVIS_BUILD_DIR/ci/travis-test-example.sh | ||
| - cd $TRAVIS_BUILD_DIR | ||
| - echo $TEST_COMMAND | ||
| - (eval "$TEST_COMMAND") | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| python3 --version | ||
| pip3 --version | ||
| pip3 install -r requirements.txt | ||
| pip3 install -r requirements-dev.txt | ||
| cd $TRAVIS_BUILD_DIR | ||
| pip3 install . | ||
| pytest python_src/tests/tests.py -s -vv | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| cd $TRAVIS_BUILD_DIR | ||
| mkdir build && cd build | ||
| $CMAKE_CONFIGURE cmake $CMAKE_ARGS $CMAKE_EXTRA .. | ||
| make -j2 | ||
| ctest -j2 --output-on-failure | ||
| bash $TRAVIS_BUILD_DIR/ci/travis-test-example.sh | ||
| cd $TRAVIS_BUILD_DIR |
Uh oh!
There was an error while loading. Please reload this page.