mirror of
https://github.com/katanemo/plano.git
synced 2026-05-27 14:17:15 +02:00
formating and mointoring change (#136)
This commit is contained in:
parent
976b2eaae0
commit
93abe553e3
8 changed files with 83 additions and 47 deletions
|
|
@ -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",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue