|
| 1 | +[project] |
| 2 | +name = "MCSL2" |
| 3 | +dynamic = ["version"] |
| 4 | +description = "MCServerLauncher 2" |
| 5 | +authors = [ |
| 6 | + { name = "LxHTT", email = "lxhtt@mcsl.com.cn" }, |
| 7 | + { name = "shenjackyuanjie", email = "3695888@qq.com" }, |
| 8 | + { name = "AresConnor", email = "2837434884@qq.com" }, |
| 9 | + { name = "lgc2333", email = "lgc2333@126.com" }, |
| 10 | + { name = "wyx55520", email = "2509043002@qq.com" }, |
| 11 | + { name = "Yurnu", email = "1487084645@qq.com" }, |
| 12 | + { name = "hengshizhi", email = "3192145045@qq.com" }, |
| 13 | + { name = "ztsinsun", email = "horizonsun@vip.qq.com" }, |
| 14 | + { name = "ltzXiaoYanMo", email = "yanmo233@duck.com" }, |
| 15 | + { name = "kitUIN", email = "kit_uin@outlook.com" }, |
| 16 | +] |
| 17 | +dependencies = [ |
| 18 | + # "setuptools>=60", |
| 19 | + "PyQt-Fluent-Widgets", |
| 20 | + "psutil==6.0.0", |
| 21 | + "loguru==0.7.2", |
| 22 | + "requests==2.31.0", |
| 23 | + "lib-not-dr[nuitka]>=0.4", |
| 24 | + "nuitka==2.4.5", |
| 25 | + "pyqt5-concurrent>=0.1.6", |
| 26 | + "pyqt5-qt5==5.15.2", |
| 27 | + # "py2app>=0.28.8", |
| 28 | + # "pyobjc-framework-scriptingbridge>=10.3.2", |
| 29 | + # "pyobjc-framework-instantmessage>=10.3.2", |
| 30 | + # "pyobjc-framework-inputmethodkit>=10.3.2", |
| 31 | + # "pyobjc-framework-dictionaryservices>=10.3.2", |
| 32 | + # "pyobjc-framework-collaboration>=10.3.2", |
| 33 | + # "pyobjc-framework-calendarstore>=10.3.2", |
| 34 | +] |
| 35 | +requires-python = ">=3.8,<3.9" |
| 36 | +readme = "README.md" |
| 37 | +license = { text = "GPL-3.0" } |
| 38 | + |
| 39 | +[tool.setuptools.dynamic] |
| 40 | +version = { attr = "MCSL2Lib.MCSL2VERSION" } |
| 41 | + |
| 42 | +[tool.setuptools] |
| 43 | +packages = [] |
| 44 | + |
| 45 | +# 原 [tool.pdm.scripts] 段落删除,使用 uv 运行脚本: |
| 46 | +# uv run MCSL2.py |
| 47 | +# uv run -m lndl_nuitka . -y |
| 48 | +# uv run generate_i18n.py |
| 49 | + |
| 50 | +[tool.uv] |
| 51 | +dev-dependencies = [ |
| 52 | + "tomli>=2.0.1", |
| 53 | + "ruff>=0.1.6", |
| 54 | + "pyqt5-stubs>=5.15.6.0", |
| 55 | +] |
| 56 | +# required-environments = [ |
| 57 | +# "sys_platform == 'darwin' and platform_machine == 'x86_64'" |
| 58 | +# ] |
| 59 | +# 若需要锁定:执行 `uv lock` 生成 uv.lock;CI 中可用 `uv sync --frozen`。 |
| 60 | + |
| 61 | +[tool.ruff] |
| 62 | +target-version = "py38" |
| 63 | +line-length = 100 |
| 64 | +src = ["MCSL2Lib", "PluginExample", "Tools", "Adapters"] |
| 65 | +output-format = "grouped" |
| 66 | +preview = true |
| 67 | +exclude = ["generate_i18n.py", "Tools/ParseOneDriveLink/ParseOneDriveLink.py"] |
| 68 | + |
| 69 | +[tool.ruff.lint] |
| 70 | +select = [ |
| 71 | + "E", # pycodestyle |
| 72 | + "F", # pyflakes |
| 73 | + "I", # isort |
| 74 | + "W", # pycodestyle |
| 75 | +] |
| 76 | +ignore = ["I001"] |
| 77 | + |
| 78 | +[tool.ruff.lint.isort] |
| 79 | +force-single-line = true |
| 80 | +force-wrap-aliases = true |
| 81 | +combine-as-imports = true |
| 82 | + |
| 83 | + |
| 84 | +[tool.lndl.nuitka] |
| 85 | +script = "Tools/lndl-config.py" |
| 86 | + |
| 87 | +# 请使用 lndl_nuitka . -y 编译 (-y 为自动确认) |
| 88 | +[tool.lndl.nuitka.cli] |
| 89 | +main = "MCSL2.py" |
| 90 | +output-dir = "build" |
| 91 | + |
| 92 | +# 编译选项 |
| 93 | +clang = true |
| 94 | +msvc = "latest" |
| 95 | +standalone = true |
| 96 | +lto = "yes" |
| 97 | +disable-console = false |
| 98 | +show-memory = false |
| 99 | +show-progress = false |
| 100 | + |
| 101 | +# 版本号 构建时通过 Tools/lndl-config.py 自动填充 |
| 102 | +product-version = false |
| 103 | +file-version = false |
| 104 | + |
| 105 | +# 文件信息 |
| 106 | +product-name = "MCSL 2" |
| 107 | +company-name = "MCSLTeam" |
| 108 | +file-description = "MCServerLauncher 2" |
| 109 | +copyright = "Copyright ©MCSLTeam. All rights reserved." |
| 110 | + |
| 111 | +# 依赖 |
| 112 | +include-package = ["MCSL2Lib", "sqlite3"] |
| 113 | +follow-import-to = ["Adapters", "loguru", "requests"] |
| 114 | +nofollow-import-to = ["numpy", "scipy", "PIL", "colorthief", "sqlite3.test"] |
| 115 | + |
| 116 | +enable-plugin = ["pyqt5", "multiprocessing"] |
| 117 | +windows-icon-from-ico = "MCSL2.ico" |
| 118 | +assume-yes-for-download = true |
0 commit comments