2023-01-20 23:30:27 +08:00
|
|
|
[project]
|
2023-01-27 20:20:28 +08:00
|
|
|
name = "difficult-rocket"
|
|
|
|
description = "A rocket game"
|
2023-11-18 23:07:14 +08:00
|
|
|
authors = [{ name = "shenjackyuanjie", email = "3695888@qq.com" }]
|
2023-01-27 20:20:28 +08:00
|
|
|
requires-python = ">=3.8"
|
2023-11-18 23:07:14 +08:00
|
|
|
license = { text = "CC-BY-NA-SA 4.0" }
|
2023-01-27 20:20:28 +08:00
|
|
|
readme = "README.md"
|
2023-12-03 20:22:58 +08:00
|
|
|
dynamic = ["version"]
|
2023-11-18 23:07:14 +08:00
|
|
|
|
|
|
|
[tool.setuptools]
|
|
|
|
packages = []
|
|
|
|
|
2023-12-03 20:22:58 +08:00
|
|
|
[tool.setuptools.dynamic]
|
|
|
|
version = { attr = "Difficult_Rocket.__version__" }
|
2023-01-27 20:20:28 +08:00
|
|
|
|
2023-12-24 03:52:46 +08:00
|
|
|
[tool.pyright]
|
|
|
|
include = ["Difficult_Rocket", "libs/utils", "mods"]
|
|
|
|
exclude = [
|
|
|
|
'libs/pyglet',
|
|
|
|
'libs/pyperclip',
|
|
|
|
'libs/lib_not_dr',
|
|
|
|
'libs/MCDR',
|
|
|
|
'libs/xmltodict',
|
|
|
|
]
|
|
|
|
pythonVersion = "3.8"
|
2023-02-25 09:18:41 +08:00
|
|
|
|
2023-12-24 03:52:46 +08:00
|
|
|
|
|
|
|
[tool.ruff]
|
2023-02-25 09:18:41 +08:00
|
|
|
target-version = "py38"
|
2023-12-03 16:53:57 +08:00
|
|
|
line-length = 90
|
2023-11-20 20:34:33 +08:00
|
|
|
src = ["Difficult_Rocket", "libs/utils", "mods"]
|
|
|
|
exclude = [
|
|
|
|
'libs/pyglet',
|
|
|
|
'libs/pyperclip',
|
|
|
|
'libs/lib_not_dr',
|
2023-12-03 16:53:57 +08:00
|
|
|
'libs/MCDR',
|
|
|
|
'libs/xmltodict',
|
2023-11-20 20:34:33 +08:00
|
|
|
]
|
2023-02-25 09:18:41 +08:00
|
|
|
|
2023-12-03 16:53:57 +08:00
|
|
|
[tool.ruff.lint]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"W", # pycodestyle
|
|
|
|
]
|
|
|
|
ignore = ["I001"] # do not sort my imports
|
|
|
|
|
2023-11-20 20:34:33 +08:00
|
|
|
[tool.lndl.nuitka]
|
2023-12-03 18:40:03 +08:00
|
|
|
script = 'scripts/lndl-config.py'
|
2023-02-25 09:18:41 +08:00
|
|
|
|
2023-12-03 16:23:23 +08:00
|
|
|
[tool.lndl.nuitka.cli]
|
2023-11-18 23:07:14 +08:00
|
|
|
main = "DR.py"
|
2023-02-25 09:18:41 +08:00
|
|
|
|
2023-11-18 23:07:14 +08:00
|
|
|
lto = "yes"
|
|
|
|
clang = true
|
2023-11-27 00:21:19 +08:00
|
|
|
msvc = "latest"
|
2023-12-02 23:49:23 +08:00
|
|
|
mingw64 = false
|
|
|
|
|
2023-11-18 23:07:14 +08:00
|
|
|
standalone = true
|
2023-12-02 23:49:23 +08:00
|
|
|
output-dir = "build/nuitka"
|
|
|
|
|
2023-12-03 16:23:23 +08:00
|
|
|
run = false
|
|
|
|
# auto run after build
|
|
|
|
show-memory = false
|
|
|
|
show-progress = false
|
2023-12-02 23:49:23 +08:00
|
|
|
disable-console = false
|
|
|
|
assume-yes-for-download = true
|
|
|
|
|
|
|
|
company-name = 'tool-shenjack-workshop'
|
|
|
|
product-name = 'Difficult Rocket'
|
|
|
|
file-version = false # require script
|
|
|
|
product-version = false # require script
|
|
|
|
macos-app-version = false # require script
|
|
|
|
file-description = 'Difficult Rocket a rocket game'
|
|
|
|
copyright = 'Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com'
|
|
|
|
|
2023-12-03 18:16:57 +08:00
|
|
|
windows-icon-from-ico = 'assets/textures/icon.png'
|
|
|
|
macos-app-icon = 'assets/textures/icon.png'
|
|
|
|
linux-icon = 'assets/textures/icon.png'
|
2023-12-02 23:49:23 +08:00
|
|
|
|
|
|
|
nofollow-import-to = [
|
|
|
|
'objprint',
|
|
|
|
'PIL',
|
|
|
|
'cffi',
|
|
|
|
'pydoc',
|
|
|
|
'numpy',
|
|
|
|
'email',
|
|
|
|
'win32con',
|
|
|
|
'smtplib',
|
|
|
|
'win32evtlog',
|
|
|
|
'win32evtlogutil',
|
|
|
|
'win32api'
|
|
|
|
]
|
|
|
|
|
|
|
|
include-data-dir = [
|
|
|
|
['./config', './config'],
|
|
|
|
['./assets', './assets']
|
|
|
|
]
|
2023-12-03 19:04:10 +08:00
|
|
|
include-package = ['Difficult_Rocket.api']
|
2023-12-02 23:49:23 +08:00
|
|
|
# DR.api 没有直接 import, 所以需要手动添加
|
2023-11-27 00:21:19 +08:00
|
|
|
|
2023-12-24 03:52:46 +08:00
|
|
|
disable-plugin = ['pyqt5', 'tk-inter']
|