2022-06-29 14:35:19 -04:00
|
|
|
"""
|
|
|
|
setup.py
|
|
|
|
|
|
|
|
unstructured - pre-processing tools for unstructured data
|
|
|
|
|
|
|
|
Copyright 2022 Unstructured Technologies, Inc.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
"""
|
2023-02-27 17:30:54 +01:00
|
|
|
from setuptools import find_packages, setup
|
2022-06-29 14:35:19 -04:00
|
|
|
|
|
|
|
from unstructured.__version__ import __version__
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="unstructured",
|
|
|
|
description="A library that prepares raw documents for downstream ML tasks.",
|
2023-02-27 17:30:54 +01:00
|
|
|
long_description=open("README.md", encoding="utf-8").read(), # noqa: SIM115
|
2022-11-08 16:55:41 -05:00
|
|
|
long_description_content_type="text/markdown",
|
2022-11-08 15:22:43 -06:00
|
|
|
keywords="NLP PDF HTML CV XML parsing preprocessing",
|
|
|
|
url="https://github.com/Unstructured-IO/unstructured",
|
2022-11-11 12:15:23 -05:00
|
|
|
python_requires=">=3.7.0",
|
2022-11-08 15:22:43 -06:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Education",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
],
|
2022-06-29 14:35:19 -04:00
|
|
|
author="Unstructured Technologies",
|
|
|
|
author_email="devops@unstructuredai.io",
|
|
|
|
license="Apache-2.0",
|
|
|
|
packages=find_packages(),
|
|
|
|
version=__version__,
|
2023-02-21 10:15:33 -08:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': ['unstructured-ingest=unstructured.ingest.main:main'],
|
|
|
|
},
|
2022-06-29 14:35:19 -04:00
|
|
|
install_requires=[
|
2022-12-26 09:34:36 -05:00
|
|
|
"argilla",
|
2022-06-29 14:35:19 -04:00
|
|
|
"lxml",
|
|
|
|
"nltk",
|
2022-12-26 09:34:36 -05:00
|
|
|
"openpyxl",
|
2023-01-04 12:04:59 -05:00
|
|
|
"pandas",
|
2022-12-26 09:34:36 -05:00
|
|
|
"pillow",
|
|
|
|
"python-docx",
|
2023-01-11 12:40:50 -05:00
|
|
|
"python-pptx",
|
2023-01-09 16:15:14 -05:00
|
|
|
"python-magic",
|
2023-02-27 23:36:44 +01:00
|
|
|
"markdown",
|
2023-01-18 11:36:23 -05:00
|
|
|
"requests",
|
2022-12-19 14:47:15 -05:00
|
|
|
# NOTE(robinson) - The following dependencies are pinned
|
|
|
|
# to address security scans
|
|
|
|
"certifi>=2022.12.07",
|
2022-06-29 14:35:19 -04:00
|
|
|
],
|
2022-10-13 11:18:27 -04:00
|
|
|
extras_require={
|
2022-11-30 10:04:56 -05:00
|
|
|
"huggingface": [
|
2022-12-15 15:35:15 -05:00
|
|
|
"langdetect",
|
|
|
|
"sacremoses",
|
|
|
|
"sentencepiece",
|
|
|
|
"torch",
|
2022-11-30 10:04:56 -05:00
|
|
|
"transformers",
|
|
|
|
],
|
2023-02-27 12:45:28 -05:00
|
|
|
"local-inference": [
|
|
|
|
# NOTE(robinson) - Upper bound is temporary due to a multithreading issue
|
|
|
|
"unstructured-inference>=0.2.4,<0.2.8",
|
|
|
|
],
|
2023-02-14 12:27:45 -08:00
|
|
|
"s3": ["boto3"],
|
2023-02-27 23:36:44 +01:00
|
|
|
"github": [
|
|
|
|
# NOTE - pygithub at 1.58.0 fails due to https://github.com/PyGithub/PyGithub/issues/2436
|
|
|
|
# In the future, we can update this to pygithub>1.58.0
|
|
|
|
"pygithub==1.57.0",
|
|
|
|
],
|
2023-02-27 09:11:04 +01:00
|
|
|
"reddit": ["praw"],
|
2022-10-13 11:18:27 -04:00
|
|
|
},
|
2023-02-02 12:25:47 -05:00
|
|
|
package_dir={"unstructured": "unstructured"},
|
|
|
|
package_data={"unstructured": ["nlp/*.txt"]},
|
2022-06-29 14:35:19 -04:00
|
|
|
)
|