-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (29 loc) · 933 Bytes
/
setup.py
File metadata and controls
32 lines (29 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from setuptools import setup, find_packages
import os
# 动态读取 requirements.txt
install_requires = []
if os.path.exists("requirements.txt"):
with open("requirements.txt") as f:
install_requires = f.read().splitlines()
# 数据文件配置
data_files = [
('share/applications', ['aur-update-checker-python.desktop']),
('share/pixmaps', ['src/assets/aur-update-checker-python.png']),
]
setup(
name="aur-update-checker-python",
version="1.0.1",
packages=find_packages(),
package_dir={"": "."},
entry_points={
"console_scripts": [
"aur-update-checker-python = src.main:sync_main", # 修改为 sync_main
],
},
install_requires=install_requires,
data_files=data_files,
package_data={
"src": ["assets/*"], # 包含 src/assets 目录下的所有文件
},
include_package_data=True, # 确保 MANIFEST.in 中的文件也被包含
)