wordfreq/setup.py

58 lines
1.7 KiB
Python
Raw Normal View History

#!/usr/bin/env python
from setuptools import setup
2015-05-13 08:09:34 +00:00
import sys
import os
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 = [
'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',
]
2015-05-12 16:24:18 +00:00
current_dir = os.path.dirname(__file__)
README_contents = open(os.path.join(current_dir, 'README.md')).read()
doclines = README_contents.split("\n")
2015-05-12 16:30:01 +00:00
dependencies = ['ftfy >= 4', 'msgpack-python', 'langcodes']
if sys.version_info < (3, 4):
dependencies.append('pathlib')
setup(
name="wordfreq",
2015-07-01 21:49:33 +00:00
version='1.0b4',
maintainer='Luminoso Technologies, Inc.',
2015-05-08 16:57:22 +00:00
maintainer_email='info@luminoso.com',
url='http://github.com/LuminosoInsight/wordfreq/',
license = "MIT",
platforms = ["any"],
description = doclines[0],
classifiers = classifiers,
long_description = "\n".join(doclines[2:]),
packages=['wordfreq'],
include_package_data=True,
2015-05-12 16:30:01 +00:00
install_requires=dependencies,
# mecab-python3 is required for looking up Japanese 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-07-02 21:11:51 +00:00
extras_require={
'mecab': 'mecab-python3'
},
tests_require=['mecab-python3'],
)