mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-22 00:11:14 +00:00

* Make mypy check also ui and rest_api, fix ui * Remove explicit type packages from extras, mypy now downloads them * Make pylint and mypy run on every file except tests * Rename tasks * Change cache key * Fix mypy errors in rest_api * Normalize python versions to avoid cache misses * Add all exclusions to make pylint pass * Run mypy on rest_api and ui as well * test if installing the package really changes outcome * Comment out installation of packages * Experiment: randomize tests * Add fallback installation steps on cache misses * Remove randomization * Add comment on cache Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
from setuptools import setup, find_packages
|
|
import logging
|
|
from pathlib import Path
|
|
|
|
|
|
VERSION = "0.0.0"
|
|
try:
|
|
VERSION = open(Path(__file__).parent.parent / "VERSION.txt", "r").read()
|
|
except Exception as e:
|
|
logging.exception("No VERSION.txt found!", e)
|
|
|
|
|
|
setup(
|
|
name="farm-haystack-rest-api",
|
|
version=VERSION,
|
|
description="Demo REST API server for Haystack (https://github.com/deepset-ai/haystack)",
|
|
author="deepset.ai",
|
|
author_email="malte.pietsch@deepset.ai",
|
|
url=" https://github.com/deepset-ai/haystack/tree/master/rest_api",
|
|
classifiers=[
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Science/Research",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
],
|
|
packages=find_packages(),
|
|
python_requires=">=3.7, <4",
|
|
install_requires=[
|
|
# The link below cannot be translated properly into setup.cfg
|
|
# because it looks into the parent folder.
|
|
# TODO check if this is still a limitation later on
|
|
f"farm-haystack @ file://localhost/{Path(__file__).parent.parent}#egg=farm-haystack",
|
|
"fastapi<1",
|
|
"uvicorn<1",
|
|
"gunicorn<21",
|
|
"python-multipart<1", # optional FastAPI dependency for form data
|
|
],
|
|
)
|