mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
fixed cli to use poetry as well. this way we make it easy to have the… (#160)
This commit is contained in:
parent
e81ca8d5cf
commit
1acf43ff7a
26 changed files with 771 additions and 116 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
],
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue