2 Commits

Author SHA1 Message Date
6713699ebe [fix] Cambiamos requirements y setup para que sea compatible con python 3.11 2022-11-12 10:13:46 +01:00
Maxim Vladimirskiy
71d9b6eb78 Merge pull request #227 from mailgun/maxim/develop
PIP-1615: Operate on unicode data exclusively [python3]
2022-02-07 10:43:25 +03:00
2 changed files with 43 additions and 43 deletions

View File

@@ -1,5 +1,5 @@
chardet>=1.0.1 chardet>=1.0.1
cchardet>=0.3.5 # cchardet>=0.3.5
cssselect cssselect
html5lib html5lib
joblib joblib

View File

@@ -5,10 +5,10 @@ from setuptools.command.install import install
class InstallCommand(install): class InstallCommand(install):
user_options = install.user_options + [ user_options = install.user_options + [
('no-ml', None, "Don't install without Machine Learning modules."), ("no-ml", None, "Don't install without Machine Learning modules."),
] ]
boolean_options = install.boolean_options + ['no-ml'] boolean_options = install.boolean_options + ["no-ml"]
def initialize_options(self): def initialize_options(self):
install.initialize_options(self) install.initialize_options(self)
@@ -18,47 +18,47 @@ class InstallCommand(install):
install.finalize_options(self) install.finalize_options(self)
if self.no_ml: if self.no_ml:
dist = self.distribution dist = self.distribution
dist.packages=find_packages(exclude=[ dist.packages = find_packages(
"tests", exclude=[
"tests.*", "tests",
"talon.signature", "tests.*",
"talon.signature.*", "talon.signature",
]) "talon.signature.*",
]
)
for not_required in ["numpy", "scipy", "scikit-learn==0.24.1"]: for not_required in ["numpy", "scipy", "scikit-learn==0.24.1"]:
dist.install_requires.remove(not_required) dist.install_requires.remove(not_required)
setup(name='talon', setup(
version='1.6.0', name="talon-o2w",
description=("Mailgun library " version="1.6.1",
"to extract message quotations and signatures."), description=(
long_description=open("README.rst").read(), "Mailgun library " "to extract message quotations and signatures."
author='Mailgun Inc.', ),
author_email='admin@mailgunhq.com', long_description=open("README.rst").read(),
url='https://github.com/mailgun/talon', author="Mailgun Inc.",
license='APACHE2', author_email="admin@mailgunhq.com",
cmdclass={ url="https://github.com/mailgun/talon",
'install': InstallCommand, license="APACHE2",
}, cmdclass={
packages=find_packages(exclude=['tests', 'tests.*']), "install": InstallCommand,
include_package_data=True, },
zip_safe=True, packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=[ include_package_data=True,
"lxml", zip_safe=True,
"regex", install_requires=[
"numpy", "lxml",
"scipy", "regex",
"scikit-learn>=1.0.0", "numpy",
"chardet", "scipy",
"cchardet", "scikit-learn>=1.0.0",
"cssselect", "chardet",
"six", # "cchardet",
"html5lib", "cssselect",
"joblib", "six",
], "html5lib",
tests_require=[ "joblib",
"mock", ],
"nose", tests_require=["mock", "nose", "coverage"],
"coverage" )
]
)