Skip to content
Snippets Groups Projects
setup.py 1.06 KiB
Newer Older
leszeks's avatar
leszeks committed
# coding: utf8
from setuptools import setup
import os
leszeks's avatar
leszeks committed

# Name of the enviromental variable that excludes the default storage file from
# the distribution (to save space).
# The *.egg-info directory must not exists for this hack to work.
ENVNAME_DIST_NODEFAULT = 'PLWN_API_DIST_NO_DEFAULT_STORAGE'
leszeks's avatar
leszeks committed

setup_args = dict(
    name='plwn_api_uuid',
    version='0.11',
    license='LGPL-3.0+',
    description='Python API to access plWordNet lexicon',
leszeks's avatar
leszeks committed

    author='Michał Kaliński',
    author_email='michal.kalinski@pwr.edu.pl',
leszeks's avatar
leszeks committed

    packages=['plwn', 'plwn.readers', 'plwn.storages', 'plwn.utils'],
leszeks's avatar
leszeks committed
    package_data={'plwn.default': ['*.db'], 'plwn': ['config.ini']},

    test_suite='tests.setuptools_loader.setuptools_load_tests',
leszeks's avatar
leszeks committed
    install_requires=['six>=1.10',
                      'enum34>=1.1.2;python_version<"3.4"', 'requests'],
    zip_safe=False,
)
leszeks's avatar
leszeks committed


if __name__ == '__main__':
    # Include the "default storage" subpackage by default
    if not int(os.environ.get(ENVNAME_DIST_NODEFAULT, 0)):
        setup_args['packages'].append('plwn.default')
leszeks's avatar
leszeks committed

    setup(**setup_args)