Skip to content

Commit

Permalink
Put travis builds on wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Guenther committed May 22, 2015
1 parent 0048401 commit 8a0a9f3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 33 deletions.
22 changes: 10 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,26 @@ matrix:
- secure: XGsoak/JpYKSsVBC1X+k6Ve6bO5hl0fKF2t03VlHI1FkU0i4UGjKAKB57qkYr58+u9xXqyphzq3x5L0aMshzUTSHjdWC+0qDk2asvkTuf+BbSZrtEjw0/Pn5Ig6stxe/LrEmuowQ6DTtqBAEItWhxnI1AMZ5xK8MmQ4yk6fwQ8o=
- secure: ReBB4//PaNVLJZAwneo41REoDLuLnmsX5888JW3uFrP3vv0gSlKCSlxknbyvj52WOJrfa+NnSr/K85RSA+LfrbH4S/DRXJxMTStxjGvsUgzbmD9Wm8o1bXHF6ak4YDWws/b6c4QXatqkSHpF57NuzSIcAKIQ+xa7ENbJPWM1aW0=
- BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master
- python: 3.2
env:
- NUMPYSPEC===1.8.0
- SPHINXSPEC===1.2
- BOB_UPLOAD_WHEEL="--universal"
- python: 3.3
env:
- NUMPYSPEC===1.8.0
- python: 3.4
before_install:
- sudo add-apt-repository -y ppa:biometrics/bob
- sudo apt-get update -qq
- sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev libsvm-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq gfortran; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC; fi
- pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel matplotlib==1.3.1 sphinx$SPHINXSPEC nose==1.3.0 jinja2==2.6 coveralls pygments==1.6
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose numpy matplotlib coverage
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel --pre -r requirements.txt coveralls
install:
- python bootstrap-buildout.py
- ./bin/buildout
- ./bin/buildout buildout:develop=. buildout:extensions=bob.buildout buildout:auto-checkout=
script:
- ./bin/python -c 'from bob.db.casia_fasd import get_config; print(get_config())'
- ./bin/python -c 'import pkg_resources; from bob.db.casia_fasd import get_config; print(get_config())'
- ./bin/coverage run --source=bob.db.casia_fasd ./bin/nosetests -sv
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
after_success:
- coveralls
- ./src/bob.extension/scripts/upload-sphinx.sh
- wget https://raw.githubusercontent.com/bioidiap/bob.extension/master/scripts/upload-{sphinx,wheel}.sh
- chmod a+x upload-sphinx.sh upload-wheel.sh
- ./upload-sphinx.sh
- ./upload-wheel.sh
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include README.rst bootstrap-buildout.py version.txt
include README.rst bootstrap-buildout.py buildout.cfg version.txt requirements.txt
recursive-include bob *.txt
recursive-include doc *.py *.rst
recursive-include bob *.sql3
14 changes: 2 additions & 12 deletions bob/db/casia_fasd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,19 +459,9 @@ def save_by_filename(self, filename, obj, directory, extension):
def get_config():
"""Returns a string containing the configuration information.
"""
import bob.extension
return bob.extension.get_config(__name__)

import pkg_resources

packages = pkg_resources.require(__name__)
this = packages[0]
deps = packages[1:]

retval = "%s: %s (%s)\n" % (this.key, this.version, this.location)
retval += " - python dependencies:\n"
for d in deps: retval += " - %s: %s (%s)\n" % (d.key, d.version, d.location)

return retval.strip()

# gets sphinx autodoc done right - don't remove it
__all__ = [_ for _ in dir() if not _.startswith('_')]

4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setuptools
six
bob.db.base
antispoofing.utils
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# Andre Anjos <andre.anjos@idiap.ch>
# Sex 10 Ago 2012 14:22:33 CEST

from setuptools import setup, find_packages
from setuptools import setup, find_packages, dist
dist.Distribution(dict(setup_requires=['bob.extension']))

from bob.extension.utils import load_requirements
install_requires = load_requirements()

# Define package version
version = open("version.txt").read().rstrip()
Expand Down Expand Up @@ -31,12 +35,7 @@
'bob.db',
],

install_requires=[
'setuptools',
'six',
'bob.db.base',
'antispoofing.utils',
],
install_requires = install_requires,

entry_points={

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.4b0
2.0.4b1

0 comments on commit 8a0a9f3

Please sign in to comment.