setup.py 3.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

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

# load the requirements.txt for additional requirements
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.csu',
    version = open("version.txt").read().rstrip(),
    description = 'Wrapper classes to use the PythonFaceEvaluation classes from the CSU Face Recognition Resources',

Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
21 22
    url = 'https://gitlab.idiap.ch/bob/bob.bio.csu',
    license = 'BSD',
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
23 24
    author = 'Manuel Gunther',
    author_email = 'siebenkopf@googlemail.com',
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
    keywords = 'bob',

    # If you have a better, long description of your package, place it on the
    # 'doc' directory and then hook it here
    long_description = open('README.rst').read(),

    # This line is required for any distutils based packaging.
    # It will find all package-data inside the 'bob' directory.
    packages = find_packages('bob'),
    include_package_data = True,

    # This line defines which packages should be installed when you "install"
    # this package. All packages that are mentioned here, but are not installed
    # on the current system will be installed locally and only visible to the
    # scripts of this package. Don't worry - You won't need administrative
    # privileges when using buildout.
41
    install_requires = install_requires,
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

    # This entry defines which scripts you will have inside the 'bin' directory
    # once you install the package (or run 'bin/buildout'). The order of each
    # entry under 'console_scripts' is like this:
    #   script-name-at-bin-directory = module.at.your.library:function
    #
    # The module.at.your.library is the python file within your library, using
    # the python syntax for directories (i.e., a '.' instead of '/' or '\').
    # This syntax also omits the '.py' extension of the filename. So, a file
    # installed under 'example/foo.py' that contains a function which
    # implements the 'main()' function of particular script you want to have
    # should be referred as 'example.foo:main'.
    #
    # In this simple example we will create a single program that will print
    # the version of bob.
    entry_points = {
      # the CSU patch
      'console_scripts': [
        'patch_CSU.py = patch:main'
      ],

      # register the particular tools as resources
      'bob.bio.preprocessor': [
        'lda-ir     = bob.bio.csu.config.preprocessor.ldair:preprocessor',
        'lrpca      = bob.bio.csu.config.preprocessor.lrpca:preprocessor',
      ],
      'bob.bio.extractor': [
        'lda-ir     = bob.bio.csu.config.extractor.ldair:extractor',
        'lrpca      = bob.bio.csu.config.extractor.lrpca:extractor',
      ],
      'bob.bio.algorithm': [
        'lda-ir     = bob.bio.csu.config.algorithm.ldair:algorithm',
        'lrpca      = bob.bio.csu.config.algorithm.lrpca:algorithm',
      ],
    },

    # Classifiers are important if you plan to distribute this package through
    # PyPI. You can find the complete list of classifiers that are valid and
    # useful here (http://pypi.python.org/pypi?%3Aaction=list_classifiers).
    classifiers = [
      'Framework :: Bob',
      'Development Status :: 3 - Alpha',
      'Intended Audience :: Developers',
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
85
      'License :: OSI Approved :: BSD License',
86 87 88 89 90
      'Natural Language :: English',
      'Programming Language :: Python',
      'Topic :: Scientific/Engineering :: Artificial Intelligence',
    ],
)