-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMANIFEST.in
More file actions
37 lines (30 loc) · 938 Bytes
/
MANIFEST.in
File metadata and controls
37 lines (30 loc) · 938 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
33
34
35
36
37
# MANIFEST.in - 指定要包含在分发包中的文件
# 包含所有文档文件
include README.md
include LICENSE.txt
include CHANGELOG.md
recursive-include docs *.md *.rst *.txt
# 包含配置文件和模板
recursive-include config *.yaml *.template *.json
recursive-include templates *.md *.html *.txt *.jinja2
# 包含脚本文件(仅限项目脚本,不包含 src/hooks 原始钩子脚本)
recursive-include scripts *.sh *.py *.bat
# 明确排除非包内的 src/hooks 目录,避免将其打包发布
prune src/hooks
# 包含测试文件
recursive-include tests *.py *.yaml *.json *.txt
# 包含资源文件
recursive-include assets *.png *.jpg *.svg *.ico
include requirements.txt
include setup.py
# 排除不需要的文件
global-exclude *.pyc
global-exclude *.pyo
global-exclude *~
global-exclude .DS_Store
global-exclude __pycache__
prune .git
prune .github
prune .pytest_cache
prune .vscode
prune node_modules