fixed cli to use poetry as well. this way we make it easy to have the… (#160)

This commit is contained in:
Salman Paracha 2024-10-09 15:53:12 -07:00 committed by GitHub
parent e81ca8d5cf
commit 1acf43ff7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 771 additions and 116 deletions

View file

@ -1 +1,2 @@
## Model Server Package ##
# Model Server Package #
This model server package is a dependency of the Arch intelligent prompt gateway. It should not be used alone. Please refer to the [quickstart-guide](https://github.com/katanemo/arch?tab=readme-ov-file#quickstart) for more details on how to get start with Arch.

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "archgw_modelserver"
version = "0.1.0"
version = "0.0.1"
description = "A model server for serving models"
authors = ["Katanemo Labs, Inc <archgw@katanemo.com>"]
license = "Apache 2.0"

View file

@ -1,30 +0,0 @@
from setuptools import setup, find_packages
# Function to read requirements.txt
def parse_requirements(filename):
with open(filename, "r") as file:
return [
line.strip() for line in file if line.strip() and not line.startswith("#")
]
# Call the parse_requirements function to get the list of dependencies
requirements = parse_requirements("requirements.txt")
print(f"packages to install: {find_packages()}")
setup(
name="model_server",
version="0.1",
packages=find_packages(),
install_requires=requirements,
package_data={
# Specify the package and the data files you want to include
"app": ["/*.yaml"], # Includes all .yaml files in the config/ folder
},
entry_points={
"console_scripts": [
"model_server=app:run_server",
],
},
)