Skip to content
Snippets Groups Projects
Commit be312079 authored by Manuel Günther's avatar Manuel Günther
Browse files

Put travis builds on wheels

parent 3332f86d
No related branches found
No related tags found
No related merge requests found
...@@ -2,33 +2,31 @@ language: python ...@@ -2,33 +2,31 @@ language: python
matrix: matrix:
include: include:
- python: 2.6 - python: 2.6
# env:
# - SCIPYSPEC===0.12.0
- python: 2.7 - python: 2.7
env: env:
# - SCIPYSPEC===0.12.0
- secure: gBLc7oAwSQZtxHf/olpoPS1dmlA9nTcaFBBSTi62BPth8d8BlPrLoGluWuEIyyjbWgoVLbzNHLG0KL1zsjoV8ZWMIed7WSLZBGu+wU8K2gvgpTKwsFb0OEAix5bE2/QrMZtdPDM+izOMPlFGTT2xF2NFd3gn3N9dJxntTq/hcZA= - secure: gBLc7oAwSQZtxHf/olpoPS1dmlA9nTcaFBBSTi62BPth8d8BlPrLoGluWuEIyyjbWgoVLbzNHLG0KL1zsjoV8ZWMIed7WSLZBGu+wU8K2gvgpTKwsFb0OEAix5bE2/QrMZtdPDM+izOMPlFGTT2xF2NFd3gn3N9dJxntTq/hcZA=
- secure: aMJ2P2EwYHrsweAFa8X9cm2nrBFFDGoRBH98cXAbOfkgrbHseoIEZN9nx/ItYteGZqv8DOi0lMlucSxU5OhvdLN+YoGn67TIb7kHtux8V2XfO57P5d/fFkJjqBVbBzXolqHvIXVkDEdriaDvFrvIospPiaPgaL8JdqcHA5k7lRQ= - secure: aMJ2P2EwYHrsweAFa8X9cm2nrBFFDGoRBH98cXAbOfkgrbHseoIEZN9nx/ItYteGZqv8DOi0lMlucSxU5OhvdLN+YoGn67TIb7kHtux8V2XfO57P5d/fFkJjqBVbBzXolqHvIXVkDEdriaDvFrvIospPiaPgaL8JdqcHA5k7lRQ=
- BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master - BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master
# - python: 3.2 - BOB_UPLOAD_WHEEL="--universal"
# env: - python: 3.3
# - NUMPYSPEC===1.8.0 - python: 3.4
# - SCIPYSPEC===0.13.1
before_install: before_install:
- sudo add-apt-repository -y ppa:biometrics/bob - sudo add-apt-repository -y ppa:biometrics/bob
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq --force-yes libjpeg8-dev libnetpbm10-dev libpng12-dev libtiff4-dev libgif-dev libboost-all-dev libblitz1-dev libhdf5-serial-dev libvl-dev dvipng texlive-latex-base texlive-latex-extra texlive-math-extra texlive-latex-recommended texlive-fonts-recommended libatlas-dev libatlas-base-dev liblapack-dev - sudo apt-get install -qq --force-yes libjpeg8-dev libnetpbm10-dev libpng12-dev libtiff4-dev libgif-dev libboost-all-dev libblitz1-dev libhdf5-serial-dev libvl-dev dvipng texlive-latex-base texlive-latex-extra texlive-math-extra texlive-latex-recommended texlive-fonts-recommended libatlas-dev libatlas-base-dev liblapack-dev
- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq gfortran; fi - pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose numpy matplotlib coverage
- 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 https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel --pre -r requirements.txt coveralls
- pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel scipy$SCIPYSPEC matplotlib==1.3.1 sphinx nose==1.3.0 jinja2==2.6 coveralls pygments==1.6
install: install:
- python bootstrap-buildout.py - python bootstrap-buildout.py
- ./bin/buildout -c develop.cfg - ./bin/buildout
script: script:
- ./bin/python -c 'from bob.example.faceverify import get_config; print(get_config())' - ./bin/python -c 'import pkg_resources; from bob.example.faceverify import get_config; print(get_config())'
- ./bin/coverage run --source=bob.example.faceverify ./bin/nosetests -sv - ./bin/coverage run --source=bob.example.faceverify ./bin/nosetests -sv
- ./bin/sphinx-build -b doctest doc sphinx - ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx - ./bin/sphinx-build -b html doc sphinx
after_success: after_success:
- coveralls - 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
include README.rst bootstrap-buildout.py buildout.cfg version.txt include README.rst bootstrap-buildout.py buildout.cfg develop.cfg version.txt requirements.txt
recursive-include doc *.rst *.png conf.py recursive-include doc *.rst *.png conf.py
recursive-include bob/example/faceverify/data *.hdf5 recursive-include bob/example/faceverify/data *.hdf5
...@@ -22,18 +22,8 @@ from .utils import load_images ...@@ -22,18 +22,8 @@ from .utils import load_images
def get_config(): def get_config():
"""Returns a string containing the configuration information. """Returns a string containing the configuration information.
""" """
import bob.extension
import pkg_resources return bob.extension.get_config(__name__)
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 # gets sphinx autodoc done right - don't remove it
__all__ = [_ for _ in dir() if not _.startswith('_')] __all__ = [_ for _ in dir() if not _.startswith('_')]
setuptools
bob.io.image # image IO
bob.ip.base # tan-triggs dct-blocks
bob.ip.color # color image conversion
bob.ip.gabor # gabor graph
bob.learn.linear # eigenfaces
bob.learn.em # ubm-gmm
bob.measure # computing ROC
bob.db.atnt # the AT&T (ORL) database of images
...@@ -19,11 +19,17 @@ ...@@ -19,11 +19,17 @@
# allows you to test your package with new python dependencies w/o requiring # allows you to test your package with new python dependencies w/o requiring
# administrative interventions. # administrative interventions.
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 # Define package version
version = open("version.txt").read().rstrip() version = open("version.txt").read().rstrip()
# The only thing we do in this file is to call the setup() function with all # The only thing we do in this file is to call the setup() function with all
# parameters that define our package. # parameters that define our package.
setup( setup(
...@@ -51,17 +57,7 @@ setup( ...@@ -51,17 +57,7 @@ setup(
# scripts of this package. Don't worry - You won't need administrative # scripts of this package. Don't worry - You won't need administrative
# privileges when using buildout. # privileges when using buildout.
install_requires=[ install_requires=install_requires,
"setuptools",
"bob.io.image", # image IO
"bob.ip.base", # tan-triggs, dct-blocks
"bob.ip.color", # color image conversion
"bob.ip.gabor", # gabor graph
"bob.learn.linear", # eigenfaces
"bob.learn.em", # ubm-gmm
"bob.measure", # computing ROC
"bob.db.atnt", # the AT&T (ORL) database of images
],
# This package is good examples of namespace implementations # This package is good examples of namespace implementations
# using several layers. You can check them out here: # using several layers. You can check them out here:
......
2.1.1b0 2.1.1b1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment