File size: 1,475 Bytes
b1f727f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import logging
from pathlib import Path

from setuptools import setup, find_packages


VERSION = "0.0.0"
try:
    # After git clone, VERSION.txt is in the root folder
    VERSION = open(Path(__file__).parent.parent / "VERSION.txt", "r").read()
except Exception:
    try:
        # In Docker, VERSION.txt is in the same folder
        VERSION = open(Path(__file__).parent / "VERSION.txt", "r").read()
    except Exception as e:
        logging.exception("No VERSION.txt found!")

setup(
    name="farm-haystack-ui",
    version=VERSION,
    description="Demo UI for Haystack (https://github.com/deepset-ai/haystack)",
    author="deepset.ai",
    author_email="[email protected]",
    url=" https://github.com/deepset-ai/haystack/tree/master/ui",
    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=["streamlit>=1.2.0, <2", "st-annotated-text>=2.0.0, <3", "markdown>=3.3.4, <4", "farm-haystack==1.7.0"],
)