Beispiel #1
0
# the installation of this package.
#
# The 'buildout' system we use here will go further and wrap this package in
# such a way to create an isolated python working environment. Buildout will
# make sure that dependencies which are not yet installed do get installed, but
# **without** requiring administrative privileges on the host system. This
# allows you to test your package with new python dependencies w/o requiring
# administrative interventions.

from setuptools import setup, dist

dist.Distribution(dict(setup_requires=['bob.extension']))

from bob.extension.utils import load_requirements, find_packages

install_requires = load_requirements()

# The only thing we do in this file is to call the setup() function with all
# parameters that define our package.
setup(

    # This is the basic information about your project. Modify all this
    # information before releasing code publicly.
    name='bob.bio.face',
    version=open("version.txt").read().rstrip(),
    description='Tools for running face recognition experiments',

    url='https://gitlab.idiap.ch/bob/bob.bio.face',
    license='BSD',
    author='Manuel Gunther',
    author_email='*****@*****.**',
Beispiel #2
0
# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_flags = [
    'members',
    'undoc-members',
    'show-inheritance',
]

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements

sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(
        additional_packages=load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()

# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']


def member_function_test(app, what, name, obj, skip, options):
    # test if we have a private function
    if len(name) > 1 and name[0] == '_':
        # test if this private function should be allowed
        if name not in accepted_private_functions:
            # omit privat functions that are not in the list of accepted private functions
            return skip
Beispiel #3
0
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <*****@*****.**>
# Mon 16 Apr 08:18:08 2012 CEST

bob_packages = ['bob.core', 'bob.io.base']

from setuptools import setup, find_packages, dist
dist.Distribution(dict(setup_requires=['bob.extension', 'bob.blitz'] + bob_packages))
from bob.extension.utils import egrep, find_header, find_library
from bob.blitz.extension import Extension, Library, build_ext

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

# Define package version
version = open("version.txt").read().rstrip()

packages = ['boost']
boost_modules = ['system', 'filesystem']

# process libsvm requirement
import os
from distutils.version import LooseVersion

def libsvm_version(svm_h):

  matches = egrep(svm_h, r"#\s*define\s+LIBSVM_VERSION\s+(\d+)")
  if not len(matches): return None

  # we have a match, produce a string version of the version number
Beispiel #4
0
# Output file base name for HTML help builder.
htmlhelp_basename = project_variable + u'_doc'

# -- Post configuration --------------------------------------------------------

# Included after all input documents
rst_epilog = """
.. |project| replace:: Bob
.. |version| replace:: %s
.. |current-year| date:: %%Y
""" % (version, )

# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_options = {
    "members": True,
    "show-inheritance": True,
}

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(
        additional_packages=['python','numpy'] + \
            load_requirements(sphinx_requirements)
            )
else:
    intersphinx_mapping = link_documentation()
Beispiel #5
0
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <*****@*****.**>
# Mon 16 Apr 08:18:08 2012 CEST

bob_packages = ['bob.core', 'bob.math', 'bob.io.base', 'bob.learn.activation']

from setuptools import setup, find_packages, dist
dist.Distribution(
    dict(setup_requires=['bob.extension', 'bob.blitz'] + bob_packages))
from bob.blitz.extension import Extension, Library, build_ext

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

# Define package version
version = open("version.txt").read().rstrip()

packages = ['boost']
boost_modules = ['system']

setup(
    name='bob.learn.linear',
    version=version,
    description='Linear Machine and Trainers for Bob',
    url='http://gitlab.idiap.ch/bob/bob.learn.linear',
    license='BSD',
    author='Andre Anjos',
    author_email='*****@*****.**',
    long_description=open('README.rst').read(),
    packages=find_packages(),
Beispiel #6
0
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

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(
    name='bob.db.ijba',
    version=version,
    description='IJB-A Database Access API for Bob',
    url='https://gitlab.idiap.ch/bob/bob.db.ijba',
    license='BSD',
    author='Tiago de Freitas Pereira',
    author_email='*****@*****.**',
    long_description=open('README.rst').read(),

    # This line is required for any distutils based packaging.
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    entry_points={
        # bob database declaration
Beispiel #7
0
# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_flags = [
  'members',
  'undoc-members',
  'show-inheritance',
  ]

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
  intersphinx_mapping = link_documentation(
      additional_packages=['python','numpy'] + \
          load_requirements(sphinx_requirements)
          )
else:
  intersphinx_mapping = link_documentation()


# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']

def member_function_test(app, what, name, obj, skip, options):
  # test if we have a private function
  if len(name) > 1 and name[0] == '_':
    # test if this private function should be allowed
    if name not in accepted_private_functions:
      # omit privat functions that are not in the list of accepted private functions
Beispiel #8
0
""" % (version,)

# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_flags = [
  'members',
  'undoc-members',
  'show-inheritance',
  ]

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(additional_packages=load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()


# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']

def member_function_test(app, what, name, obj, skip, options):
  # test if we have a private function
  if len(name) > 1 and name[0] == '_':
    # test if this private function should be allowed
    if name not in accepted_private_functions:
      # omit privat functions that are not in the list of accepted private functions
      return skip
Beispiel #9
0
# allows you to test your package with new python dependencies w/o requiring
# administrative interventions.

# Add here other bob packages that your module depend on
setup_packages = ['bob.extension', 'bob.blitz']
bob_packages = []

from setuptools import setup, dist
dist.Distribution(dict(setup_requires = setup_packages + bob_packages))

# import the Extension and Library classes and the build_ext function from bob.blitz
from bob.blitz.extension import Extension, Library, build_ext

# load the requirements.txt for additional requirements
from bob.extension.utils import load_requirements, find_packages
build_requires = setup_packages + bob_packages + load_requirements()

# read version from "version.txt" file
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(

    # This is the basic information about your project. Modify all this
    # information before releasing code publicly.
    name = 'bob.example.library',
    version = version,
    description = 'Example for using Bob inside a C++ extension of a buildout project',
Beispiel #10
0
# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_flags = [
  'members',
  'undoc-members',
  'show-inheritance',
  ]

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(additional_packages=
                                             ['python', 'numpy'] + load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()


# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']

def member_function_test(app, what, name, obj, skip, options):
  # test if we have a private function
  if len(name) > 1 and name[0] == '_':
    # test if this private function should be allowed
    if name not in accepted_private_functions:
      # omit privat functions that are not in the list of accepted private functions
      return skip
Beispiel #11
0
htmlhelp_basename = project_variable + u'_doc'


# -- Post configuration --------------------------------------------------------

# Included after all input documents
rst_epilog = """
.. |project| replace:: Bob
.. |version| replace:: %s
.. |current-year| date:: %%Y
""" % (version,)

# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_options = {
  "members": True,
  "undoc-members": True,
  "show-inheritance": True,
}

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(additional_packages=load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()


Beispiel #12
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

{% if group == 'beat' %}from setuptools import setup, find_packages

def load_requirements(f):
  retval = [str(k.strip()) for k in open(f, 'rt')]
  return [k for k in retval if k and k[0] not in ('#', '-')]

install_requires=load_requirements('requirements.txt')
{% else %}from setuptools import setup, dist
dist.Distribution(dict(setup_requires=['bob.extension']))

from bob.extension.utils import find_packages, load_requirements

install_requires = load_requirements()
{% endif %}

setup(

    name='{{ name }}',
    version=open("version.txt").read().rstrip(),
    description='{{ title }}',

    url='https://gitlab.idiap.ch/{{ package }}',
    {% if license == 'gplv3' %}license='GPLv3'{% else %}license='BSD'{% endif %},

    # there may be multiple authors (separate entries by comma)
    author='{{ author }}',
    author_email='{{ email }}',
Beispiel #13
0

# -- Post configuration --------------------------------------------------------

# Included after all input documents
rst_epilog = """
.. |project| replace:: Bob
.. |version| replace:: %s
.. |current-year| date:: %%Y
""" % (version,)

# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_options = {
  "members": True,
  "undoc-members": True,
  "show-inheritance": True,
}

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(additional_packages=
                                             ['python', 'numpy'] + load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()


Beispiel #14
0
# allows you to test your package with new python dependencies w/o requiring
# administrative interventions.

# Add here other bob packages that your module depend on
setup_packages = ['bob.extension', 'bob.blitz']
bob_packages = []

from setuptools import setup, dist
dist.Distribution(dict(setup_requires=setup_packages + bob_packages))

# import the Extension and Library classes and the build_ext function from bob.blitz
from bob.blitz.extension import Extension, Library, build_ext

# load the requirements.txt for additional requirements
from bob.extension.utils import load_requirements, find_packages
build_requires = setup_packages + bob_packages + load_requirements()

# read version from "version.txt" file
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(

    # This is the basic information about your project. Modify all this
    # information before releasing code publicly.
    name='bob.example.library',
    version=version,
    description=
    'Example for using Bob inside a C++ extension of a buildout project',
    url='https://www.github.com/<YourInstitution>/<YourPackage>',
Beispiel #15
0
""" % (version,)

# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
autodoc_default_flags = [
  'members',
  'undoc-members',
  'show-inheritance',
  ]

# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
    intersphinx_mapping = link_documentation(additional_packages=['python', 'numpy'] + load_requirements(sphinx_requirements))
else:
    intersphinx_mapping = link_documentation()


# We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions
accepted_private_functions = ['__array__']

def member_function_test(app, what, name, obj, skip, options):
  # test if we have a private function
  if len(name) > 1 and name[0] == '_':
    # test if this private function should be allowed
    if name not in accepted_private_functions:
      # omit privat functions that are not in the list of accepted private functions
      return skip