diff --git a/setup.py b/setup.py index 2ad2b147f88114ade31690758139039f9ba85511..35e99893510afb888b0c6cfc3cf04d3252740f83 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os from setuptools import setup, find_packages from glob import glob -cfg_path = "/etc/euler-copilot-tune" +cfg_path = "/etc/copilot-tune" for root, dirs, files in os.walk(cfg_path): for file in files: os.remove(os.path.join(root, file)) @@ -29,27 +29,27 @@ knowledge_src_root = 'src/knowledge_base' knowledge_files = get_recursive_files_with_relpath(knowledge_src_root) knowledge_data = [] for src_file, rel_path in knowledge_files: - target_dir = os.path.join('/etc/euler-copilot-tune/knowledge_base/', os.path.dirname(rel_path)) + target_dir = os.path.join('/etc/copilot-tune/knowledge_base/', os.path.dirname(rel_path)) knowledge_data.append((target_dir, [src_file])) config_src_root = 'config' config_files = get_recursive_files_with_relpath(config_src_root) config_data = [] for src_file, rel_path in config_files: - target_dir = os.path.join('/etc/euler-copilot-tune/config/', os.path.dirname(rel_path)) + target_dir = os.path.join('/etc/copilot-tune/config/', os.path.dirname(rel_path)) config_data.append((target_dir, [src_file])) scripts_src_root = 'scripts' scripts_files = get_recursive_files_with_relpath(scripts_src_root) scripts_data = [] for src_file, rel_path in scripts_files: - target_dir = os.path.join('/etc/euler-copilot-tune/scripts/', os.path.dirname(rel_path)) + target_dir = os.path.join('/etc/copilot-tune/scripts/', os.path.dirname(rel_path)) scripts_data.append((target_dir, [src_file])) -data_files = [('/etc/euler-copilot-tune/config/', glob('config/*')), - ('/etc/euler-copilot-tune/config/', glob('config/.env.yaml')), - ('/etc/euler-copilot-tune/scripts/', glob('scripts/*/*')), +data_files = [('/etc/copilot-tune/config/', glob('config/*')), + ('/etc/copilot-tune/config/', glob('config/.env.yaml')), + ('/etc/copilot-tune/scripts/', glob('scripts/*/*')), ('/usr/lib/systemd/system/', glob('service/*'))] + knowledge_data + config_data + scripts_data setup( - name="euler-copilot-tune", + name="copilot-tune", version="1.0", author="xu hou", author_email="houxu5@h-partners.com", @@ -61,7 +61,7 @@ setup( "console_scripts": [ "tune-openapi = src.start_workflow:main", "tune-mcpserver = src.start_mcpserver:main", - "euler-copilot-tune = src.start_tune:main", + "copilot-tune = src.start_tune:main", ], }, install_requires=[