Skip to content

Commit f299fbe

Browse files
committed
🔧修改配置,添加构建支持
1 parent 3fadc5b commit f299fbe

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MANIFEST.in
2+
3+
include README.md
4+
include LICENSE
5+
6+
# 递归包含资源目录下的所有文件
7+
recursive-include src/nonebot_plugin_sky/resources *

pyproject.toml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
[build-system]
2+
requires = ["setuptools>=80.9.0", "wheel", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "nonebot-plugin-sky"
3-
version = "2.4.0"
47
description = "基于Nonebot2的sky光遇攻略插件"
58
readme = "README.md"
69
requires-python = ">=3.10"
7-
license = { file = "LICENCE" }
10+
dynamic = ["version"]
11+
authors = [
12+
{ name="Kaguya233qwq", email="marisa_qwq@qq.com" },
13+
]
14+
keywords = ["nonebot2", "nonebot", "sky光遇", "光遇"]
15+
license-files = ["LICENSE"]
16+
classifiers = [
17+
"Programming Language :: Python :: 3",
18+
"Natural Language :: Chinese (Simplified)",
19+
]
820
dependencies = [
921
"aiofiles>=24.1.0",
1022
"bs4>=0.0.2",
@@ -16,3 +28,19 @@ dependencies = [
1628
"pip>=25.2",
1729
"setuptools>=80.9.0",
1830
]
31+
32+
[project.urls]
33+
Homepage = "https://github.com/Kaguya233qwq/nonebot_plugin_sky"
34+
Repository = "https://github.com/Kaguya233qwq/nonebot_plugin_sky"
35+
Issues = "https://github.com/Kaguya233qwq/nonebot_plugin_sky/issues"
36+
37+
# 包含数据文件
38+
[tool.setuptools]
39+
# 在 MANIFEST.in 文件中指定文件
40+
include-package-data = true
41+
42+
[tool.setuptools.package-data]
43+
"nonebot_plugin_sky" = ["src/resources/**/*"]
44+
45+
[tool.setuptools.packages.find]
46+
where = ["src"]

0 commit comments

Comments
 (0)