Passed
Push — packagify ( 7d3629...3ec5d4 )
by Konstantinos
01:42
created

setup.BinaryDistribution.is_pure()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
from setuptools import setup, find_packages
2
3
from os import path
4
5
this_dir = path.dirname(path.realpath(__file__))
6
7
def readme():
8
    with open(path.join(this_dir, 'README.rst')) as f:
9
        return f.read()
10
11
12
setup_kwargs = dict(
13
    name='topic-modeling-toolkit',
14
    version='0.5.6',
15
    description='Topic Modeling Toolkit',
16
    long_description=readme(),
17
    keywords='topic modeling machine learning',
18
19
    # project_urls={
20
    #     "Source Code": "https://github.com/..,
21
    # },
22
    zip_safe=False,
23
24
    # what packages/distributions (python) need to be installed when this one is. (Roughly what is imported in source code)
25
    install_requires=[
26
        'numpy', 'scipy', 'EasyPlot==1.0.0', 'nltk',
27
        'pandas', 'gensim', 'tqdm', 'in-place', 'protobuf',
28
        'click', 'future', 'attrs',
29
        'PyInquirer',  # # for the transform.py interface
30
        # 'configparser'  # to make statement 'from configparser import ConfigParser' python 2 and 3 compatible
31
    ],
32
    # A string or list of strings specifying what other distributions need to be present in order for the setup script to run.
33
    # (Note: projects listed in setup_requires will NOT be automatically installed on the system where the setup script is being run.
34
    # They are simply downloaded to the ./.eggs directory if they're not locally available already. If you want them to be installed,
35
    # as well as being available when the setup script is run, you should add them to install_requires and setup_requires.)
36
    # setup_requires=[],
37
38
    # Folder where unittest.TestCase-like written modules reside. Specifying this argument enables use of the test command
39
    # to run the specified test suite, e.g. via setup.py test.
40
    test_suite='tests',
41
42
    # Declare packages that the project's tests need besides those needed to install it. A string or list of strings specifying
43
    # what other distributions need to be present for the package's tests to run. Note that these required projects will not be installed on the system where the
44
    # tests are run, but only downloaded to the project's setup directory if they're not already installed locally.
45
    # Use to ensure that a package is available when the test command is run.
46
    tests_require=['pytest'],
47
48
    classifiers=[
49
        'Development Status :: 4 - Beta',
50
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
51
        'Programming Language :: Python :: 2',
52
        'Programming Language :: Python :: 2.7',
53
        'Programming Language :: Python :: 3',
54
        'Programming Language :: Python :: 3.6',
55
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
56
        'Topic :: Software Development :: Libraries :: Python Modules',
57
        'Intended Audience :: Science/Research'
58
    ],
59
    url='https://github.com/boromir674/topic-modeling-toolkit',
60
    # download_url='point to tar.gz',  # help easy_install do its tricks
61
    author='Konstantinos Lampridis',
62
    author_email='[email protected]',
63
    license='GNU GPLv3',
64
    packages=find_packages(where='src'),
65
    package_dir={'': 'src'},  # this is required by distutils
66
    # py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
67
    include_package_data=True,
68
    # Include all data files in packages that distutils are aware of through the MANIFEST.in file
69
    # package_data={
70
    #     # If any package contains *.txt or *.rst files, include them:
71
    #     '': ['*.txt', '*.rst'],
72
    #     'package_name.file_name': ['data/*.txt', 'data/model.pickle'],
73
    # },
74
    entry_points={
75
        'console_scripts': [
76
            'transform = topic_modeling_toolkit.transform:main',
77
            'train = topic_modeling_toolkit.train:main',
78
            'tune = topic_modeling_toolkit.tune:main',
79
            'make-graphs = topic_modeling_toolkit.make_graphs:main',
80
            'report-datasets = topic_modeling_toolkit.report_datasets:main',
81
            'report-models = topic_modeling_toolkit.report_models:main',
82
            'report-topics = topic_modeling_toolkit.report_topics:main',
83
            'report-kl= topic_modeling_toolkit.report_kl:main',
84
        ]
85
    },
86
    # A dictionary mapping names of "extras" (optional features of your project: eg imports that a console_script uses) to strings or lists of strings
87
    # specifying what other distributions must be installed to support those features.
88
    # extras_require={},
89
90
)
91
92
setup(**setup_kwargs)
93