Commit 3d0f82d7 authored by André Anjos's avatar André Anjos 💬
Browse files

Major overhaul to make package bob-dev compliant

parent f1182a42
language: python
matrix:
include:
- python: 2.6
- python: 2.7
env:
- secure: QCFbUk130GqYGWYVTzjFWIIbZKPHyjgK6V/kNo7iAdvZzCHLAZIPW9FQKkg8JGqPU8TWVVbZ++u1ATAXE4kiC7SXEUxMoxlOpR+L4z/zJWVgeNA1pS8JJh8hm9CXW5FbcFXt8ewLjsL7IrYPK+VgrvWLytks+Z9JL12YL2MupdA=
- secure: FaGAPqroDqoWDIoiia1fSxm1/Oo2QPca2WZYTsADHxe5Iir5gBkxCTwREEo6fPedVZPaTLBxOodis7K8KrJ9UTInGRW0NvlAgYVpCFzMm5v2NLCUyDtVcZ00HNqUUyE2YjgWrWxS6M7CNdlOi4gvrf85SIjSYwBlbQrX2bVSpGw=
- BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master
- python: 3.2
env:
- NUMPYSPEC===1.8.0
- 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 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 sphinx 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 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.utfvp import get_config; print(get_config())'
- ./bin/python -c 'import pkg_resources; from bob.db.utfvp import get_config; print(get_config())'
- ./bin/bob_dbmanage.py utfvp download
- ./bin/coverage run --source=bob.db.utfvp ./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
include README.rst bootstrap.py buildout.cfg COPYING
include README.rst bootstrap-buildout.py buildout.cfg COPYING
recursive-include docs *.py *.rst
recursive-include xbob *.sql3
recursive-include bob *.sql3
#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
__import__('pkg_resources').declare_namespace(__name__)
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
__import__('pkg_resources').declare_namespace(__name__)
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
......@@ -23,21 +23,13 @@
from .query import Database
from .models import Client, File, Protocol, Model
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('_')]
......@@ -16,11 +16,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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()
# The only thing we do in this file is to call the setup() function with all
# parameters that define our package.
setup(
......@@ -28,7 +33,7 @@ setup(
name='bob.db.utfvp',
version=version,
description='UTFVP Database Access API for Bob',
url='https://github.com/bioidiap/bob.db.utfvp.git',
url='https://github.com/bioidiap/bob.db.utfvp',
license='GPLv3',
author='Pedro Tome',
author_email='pedro.tome@idiap.ch',
......@@ -40,29 +45,12 @@ setup(
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'six', # py2/3 compatibility library
'bob.io.base',
'bob.db.base',
'bob.db.verification.utils'
],
namespace_packages = [
'bob',
'bob.db',
],
install_requires=install_requires,
entry_points = {
# bob database declaration
'bob.db': [
'utfvp = bob.db.utfvp.driver:Interface',
],
# bob unittest declaration
'bob.test': [
'utfvp = bob.db.utfvp.test:UTFVPDatabaseTest',
],
},
classifiers = [
......
3.0.0
\ No newline at end of file
3.0.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment