Skip to content
Snippets Groups Projects
setup.py 1.93 KiB
Newer Older
  • Learn to ignore specific revisions
  • Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    #!/usr/bin/env python
    
    """ setup.py for Insect Navigation Toolbox
    (called navipy)
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    """
    
    from setuptools import setup, find_packages
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    
    excluded = []
    
    
    def exclude_package(pkg):
        for exclude in excluded:
            if pkg.startswith(exclude):
                return True
        return False
    
    
    def create_package_list(base_package):
        return ([base_package] +
                [base_package + '.' + pkg
                 for pkg
                 in find_packages(base_package)
                 if not exclude_package(pkg)])
    
    
    setup_dict = {'name': 'navipy',
                  'version': '0.1',
                  'author': "Olivier J.N. Bertrand",
                  'author_email': 'olivier.bertrand@uni-bielefeld.de',
                  'description': 'Insect Navigation Toolbox',
                  'packages': create_package_list("navipy"),
    
                  'requires': ['numpy',
                               'pandas',
                               'matplotlib',
                               'scipy',
    
    Olivier Bertrand's avatar
    Olivier Bertrand committed
                               'networkx',
                               'ipython'],
    
                  'install_requires': ["numpy",
                                       'pandas',
                                       'matplotlib',
                                       'scipy',
                                       'sphinx_rtd_theme',
                                       'networkx',
    
    Olivier Bertrand's avatar
    Olivier Bertrand committed
                                       'sphinx-argparse',
    
    Olivier Bertrand's avatar
    Olivier Bertrand committed
                                       'ipython',
                                       'flake8',
    
                  'package_data': {'navipy':
    
                                   ['resources/*.db',
    
                                    'resources/*.blend',
                                    'resources/confgis/*.yaml']},
    
                  'include_package_data': True,
    
                  'entry_points': {
                      'console_scripts': [
    
                          'blendnavipy=navipy.sensors.blendnavipy:main',
                          'blendunittest=navipy.sensors.blendunittest:main']}, }
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    
    setup(**setup_dict)