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

Put travis builds on wheels

parent 696ee45c
No related branches found
No related tags found
No related merge requests found
...@@ -7,27 +7,26 @@ matrix: ...@@ -7,27 +7,26 @@ matrix:
- secure: SVdoK4kFAB1pAWLd9JXOy7GtEJfcfBVon93Wdv/PijTUR7Cn1lOAc5eSY7l0jFIsok9BIZ55NUiI/ETBsF3x4gtYVLMKof5LIzu2y0duYdynQNFwE9maxFHeR3odiL6JXk2fQDYMAwnQyVBdO5j3DewfIa4ORuc2oJ2GHfX3nJw= - secure: SVdoK4kFAB1pAWLd9JXOy7GtEJfcfBVon93Wdv/PijTUR7Cn1lOAc5eSY7l0jFIsok9BIZ55NUiI/ETBsF3x4gtYVLMKof5LIzu2y0duYdynQNFwE9maxFHeR3odiL6JXk2fQDYMAwnQyVBdO5j3DewfIa4ORuc2oJ2GHfX3nJw=
- secure: K+hZt6FbhJ4Cnso6Aqal1Bua94Nat47EZxjqbaS3uJON/aSEgYfC76ptMlHppjNz/YtpxKSIItETDYivBThXE5xMK3E61qfrcZvbqHlwzfmL1F5B9I3TMQZKW3PzaNqKWmWzrzU8SwEJiCa4RRxm53SEFpQFYfYXK1/BYsweHn8= - secure: K+hZt6FbhJ4Cnso6Aqal1Bua94Nat47EZxjqbaS3uJON/aSEgYfC76ptMlHppjNz/YtpxKSIItETDYivBThXE5xMK3E61qfrcZvbqHlwzfmL1F5B9I3TMQZKW3PzaNqKWmWzrzU8SwEJiCa4RRxm53SEFpQFYfYXK1/BYsweHn8=
- 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:
- NUMPYSPEC===1.8.0
- python: 3.3 - python: 3.3
env: - python: 3.4
- NUMPYSPEC===1.8.0
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 libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- 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 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 - ./bin/buildout buildout:develop=. buildout:extensions=bob.buildout buildout:auto-checkout=
script: script:
- ./bin/python -c 'from bob.db.iris import get_config; print(get_config())' - ./bin/python -c 'import pkg_resources; from bob.db.iris import get_config; print(get_config())'
- ./bin/coverage run --source=bob.db.iris ./bin/nosetests -sv - ./bin/coverage run --source=bob.db.iris ./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 LICENSE README.rst bootstrap-buildout.py buildout.cfg version.txt include LICENSE README.rst bootstrap-buildout.py buildout.cfg version.txt requirements.txt
recursive-include doc conf.py *.rst recursive-include doc conf.py *.rst
include bob/db/iris/iris.data bob/db/iris/iris.names include bob/db/iris/iris.data bob/db/iris/iris.names
...@@ -117,17 +117,7 @@ def __dump__(args): ...@@ -117,17 +117,7 @@ def __dump__(args):
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()
__all__ = ['names', 'stats', 'stat_names', 'data', 'get_config'] __all__ = ['names', 'stats', 'stat_names', 'data', 'get_config']
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
# Andre Anjos <andre.anjos@idiap.ch> # Andre Anjos <andre.anjos@idiap.ch>
# Mon 16 Apr 08:18:08 2012 CEST # Mon 16 Apr 08:18:08 2012 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 # Define package version
version = open("version.txt").read().rstrip() version = open("version.txt").read().rstrip()
...@@ -24,14 +28,7 @@ setup( ...@@ -24,14 +28,7 @@ setup(
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
install_requires=[ install_requires = install_requires,
'setuptools',
'bob.io.base',
'bob.measure',
'bob.learn.linear',
'bob.db.base',
'matplotlib',
],
namespace_packages=[ namespace_packages=[
"bob", "bob",
......
2.0.2b0 2.0.2b1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment