Skip to content

Commit

Permalink
Configure setup.py for PyPI; bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akxlr committed Jan 4, 2018
1 parent a9aa526 commit bf368c2
Show file tree
Hide file tree
Showing 19 changed files with 2,501 additions and 319 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ tests/uai/MAR_prob/*.dfg
__pycache__/
.idea/
.DS_Store
dist/
*.egg-info/
build/
14 changes: 4 additions & 10 deletions libdai/.travis.yml → .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
matrix:
include:
# Travis doesn't currently support Python on OSX, fix that: https://github.com/travis-ci/travis-ci/issues/2312
# Travis apparently doesn't support Python on OSX, fix that: https://github.com/travis-ci/travis-ci/issues/2312
- language: generic
os: osx
before_install:
Expand All @@ -12,18 +12,12 @@ matrix:
os: linux
python: 3.6

branches:
only:
- tbp

install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libboost-all-dev; fi
- pip install pipenv
- pipenv install
- pip install .

script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then g++ --version; cp Makefile.MACOSX64 Makefile.conf; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then g++ --version; cp Makefile.LINUX Makefile.conf; fi
- make
- pytest


9 changes: 9 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright 2018 Andrew Wrigley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
recursive-include libdai *
recursive-exclude libdai/tests *
recursive-exclude libdai/examples *
20 changes: 0 additions & 20 deletions Pipfile

This file was deleted.

157 changes: 0 additions & 157 deletions Pipfile.lock

This file was deleted.

Loading

0 comments on commit bf368c2

Please sign in to comment.