-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
84 lines (72 loc) · 2.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = 'test'
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
dirname = os.path.dirname(__file__)
def read_file(f_name):
with open(f_name) as f:
return f.read()
long_description = '\n'.join(
[
read_file(os.path.join(dirname, 'README.rst')),
read_file(os.path.join(dirname, 'CHANGES.rst')),
]
)
setup(
name='google-ngram-downloader',
version='4.0.1',
description='The streaming access to the Google ngram data.',
long_description=long_description,
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Utilities',
'Topic :: Text Processing :: Linguistic',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='',
author='Dmitrijs Milajevs',
author_email='[email protected]',
url='https://github.com/dimazest/google-ngram-downloader',
license='MIT License',
packages=find_packages(exclude=['ez_setup', 'examples', 'test']),
include_package_data=True,
zip_safe=False,
install_requires=[
'opster',
'py',
'requests',
],
entry_points={
'console_scripts': [
'google-ngram-downloader = google_ngram_downloader.__main__:dispatcher.dispatch',
],
},
tests_require=[
'pytest>=2.4.2',
],
cmdclass={'test': PyTest},
)