2013-10-28 23:26:44 +00:00
|
|
|
#!/usr/bin/env python
|
2013-10-29 16:43:41 +00:00
|
|
|
from setuptools import setup
|
2015-05-13 08:09:34 +00:00
|
|
|
import sys
|
2013-10-29 16:43:41 +00:00
|
|
|
import os
|
2013-10-28 23:26:44 +00:00
|
|
|
|
2015-05-28 18:05:11 +00:00
|
|
|
if sys.version_info[0] < 3:
|
|
|
|
print("Sorry, but wordfreq no longer supports Python 2.")
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
2015-05-08 16:57:22 +00:00
|
|
|
classifiers = [
|
2013-10-28 23:26:44 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: MacOS',
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
'Operating System :: Unix',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Topic :: Scientific/Engineering',
|
|
|
|
'Topic :: Software Development',
|
2015-05-08 16:57:22 +00:00
|
|
|
'Topic :: Text Processing :: Linguistic',
|
|
|
|
]
|
2013-10-28 23:26:44 +00:00
|
|
|
|
2015-05-12 16:24:18 +00:00
|
|
|
current_dir = os.path.dirname(__file__)
|
2015-12-23 20:49:13 +00:00
|
|
|
README_contents = open(os.path.join(current_dir, 'README.md'),
|
|
|
|
encoding='utf-8').read()
|
2013-10-28 23:26:44 +00:00
|
|
|
doclines = README_contents.split("\n")
|
2017-08-08 15:35:28 +00:00
|
|
|
dependencies = [
|
2021-02-18 23:18:06 +00:00
|
|
|
'msgpack >= 1.0', 'langcodes >= 3.0', 'regex >= 2020.04.04'
|
2017-08-08 15:35:28 +00:00
|
|
|
]
|
2013-10-28 23:26:44 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name="wordfreq",
|
2021-02-18 23:18:06 +00:00
|
|
|
version='2.5.0',
|
2018-10-03 21:27:10 +00:00
|
|
|
maintainer='Robyn Speer',
|
|
|
|
maintainer_email='rspeer@luminoso.com',
|
2013-10-28 23:26:44 +00:00
|
|
|
url='http://github.com/LuminosoInsight/wordfreq/',
|
2018-05-01 21:16:53 +00:00
|
|
|
license="MIT",
|
|
|
|
platforms=["any"],
|
|
|
|
description=doclines[0],
|
|
|
|
classifiers=classifiers,
|
|
|
|
long_description=README_contents,
|
|
|
|
long_description_content_type='text/markdown',
|
2013-10-28 23:26:44 +00:00
|
|
|
packages=['wordfreq'],
|
2020-04-16 18:08:43 +00:00
|
|
|
python_requires='>=3.5',
|
2015-05-11 22:45:47 +00:00
|
|
|
include_package_data=True,
|
2015-05-12 16:30:01 +00:00
|
|
|
install_requires=dependencies,
|
2015-07-02 15:28:45 +00:00
|
|
|
|
2016-07-15 19:10:25 +00:00
|
|
|
# mecab-python3 is required for looking up Japanese or Korean word
|
|
|
|
# frequencies. In turn, it depends on libmecab-dev being installed on the
|
|
|
|
# system. It's not listed under 'install_requires' because wordfreq should
|
|
|
|
# be usable in other languages without it.
|
2015-09-05 07:16:56 +00:00
|
|
|
#
|
|
|
|
# Similarly, jieba is required for Chinese word frequencies.
|
2015-07-02 21:11:51 +00:00
|
|
|
extras_require={
|
2021-02-18 23:18:06 +00:00
|
|
|
'mecab': ['mecab-python3', 'ipadic', 'mecab-ko-dic'],
|
|
|
|
'jieba': ['jieba >= 0.42']
|
2015-07-02 21:11:51 +00:00
|
|
|
},
|
2021-02-18 23:18:06 +00:00
|
|
|
tests_require=['pytest', 'mecab-python3', 'jieba >= 0.42', 'ipadic', 'mecab-ko-dic'],
|
2013-10-28 23:26:44 +00:00
|
|
|
)
|