formating and mointoring change (#136)

This commit is contained in:
Co Tran 2024-10-07 15:21:05 -07:00 committed by GitHub
parent 976b2eaae0
commit 93abe553e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 83 additions and 47 deletions

View file

@ -1,12 +1,16 @@
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("#")]
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')
requirements = parse_requirements("requirements.txt")
print(f"packages to install: {find_packages()}")
setup(
@ -16,11 +20,11 @@ setup(
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
"app": ["/*.yaml"], # Includes all .yaml files in the config/ folder
},
entry_points={
'console_scripts': [
'model_server=app:run_server',
"console_scripts": [
"model_server=app:run_server",
],
},
)