| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  | from setuptools import setup, find_packages | 
					
						
							|  |  |  | import logging | 
					
						
							|  |  |  | from pathlib import Path | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-09 18:27:12 +01:00
										 |  |  | VERSION = "0.0.0" | 
					
						
							| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  | try: | 
					
						
							|  |  |  |     # After git clone, VERSION.txt is in the root folder | 
					
						
							| 
									
										
										
										
											2022-02-03 13:43:18 +01:00
										 |  |  |     VERSION = open(Path(__file__).parent.parent / "VERSION.txt", "r").read() | 
					
						
							| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  | except Exception: | 
					
						
							|  |  |  |     try: | 
					
						
							|  |  |  |         # In Docker, VERSION.txt is in the same folder | 
					
						
							| 
									
										
										
										
											2022-02-03 13:43:18 +01:00
										 |  |  |         VERSION = open(Path(__file__).parent / "VERSION.txt", "r").read() | 
					
						
							| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  |     except Exception as e: | 
					
						
							|  |  |  |         logging.exception("No VERSION.txt found!", e) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | setup( | 
					
						
							|  |  |  |     name="farm-haystack-ui", | 
					
						
							|  |  |  |     version=VERSION, | 
					
						
							| 
									
										
										
										
											2022-02-03 13:43:18 +01:00
										 |  |  |     description="Demo UI 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/ui", | 
					
						
							| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  |     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(), | 
					
						
							| 
									
										
										
										
											2022-02-03 13:43:18 +01:00
										 |  |  |     python_requires=">=3.7, <4", | 
					
						
							|  |  |  |     install_requires=["streamlit>=1.2.0, <2", "st-annotated-text>=2.0.0, <3", "markdown>=3.3.4, <4"], | 
					
						
							| 
									
										
										
										
											2022-02-02 16:14:12 +01:00
										 |  |  | ) |