Files
talon/setup.py

65 lines
1.8 KiB
Python
Raw Normal View History

2016-07-12 17:25:46 +05:00
from __future__ import absolute_import
2014-07-23 21:12:54 -07:00
from setuptools import setup, find_packages
from setuptools.command.install import install
class InstallCommand(install):
user_options = install.user_options + [
('no-ml', None, "Don't install without Machine Learning modules."),
]
boolean_options = install.boolean_options + ['no-ml']
def initialize_options(self):
install.initialize_options(self)
self.no_ml = None
def finalize_options(self):
install.finalize_options(self)
if self.no_ml:
dist = self.distribution
dist.packages=find_packages(exclude=[
"tests",
"tests.*",
"talon.signature",
"talon.signature.*",
])
for not_required in ["numpy", "scipy", "scikit-learn==0.24.1"]:
dist.install_requires.remove(not_required)
2014-07-23 21:12:54 -07:00
setup(name='talon',
2021-11-11 14:13:21 +03:00
version='1.4.9',
2014-07-23 21:12:54 -07:00
description=("Mailgun library "
"to extract message quotations and signatures."),
long_description=open("README.rst").read(),
2014-07-23 21:12:54 -07:00
author='Mailgun Inc.',
author_email='admin@mailgunhq.com',
url='https://github.com/mailgun/talon',
license='APACHE2',
cmdclass={
'install': InstallCommand,
},
packages=find_packages(exclude=['tests', 'tests.*']),
2014-07-23 21:12:54 -07:00
include_package_data=True,
zip_safe=True,
install_requires=[
2021-11-11 14:13:21 +03:00
"lxml",
"regex",
"numpy",
"scipy",
2021-11-11 14:13:21 +03:00
"scikit-learn>=1.0.0",
"chardet",
"cchardet",
"cssselect",
2021-11-11 14:13:21 +03:00
"six",
"html5lib",
"joblib",
2015-05-06 15:19:50 -07:00
],
tests_require=[
"mock",
2021-11-11 14:13:21 +03:00
"nose",
2015-05-06 15:19:50 -07:00
"coverage"
2014-07-23 21:12:54 -07:00
]
)