enhance: let pyproject.toml work with nuitka
This commit is contained in:
parent
5dbc42c9ee
commit
484e01b843
@ -1,16 +1,12 @@
|
|||||||
[tool.pdm.build]
|
|
||||||
includes = ["difficult_rocket"]
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["pdm-pep517>=1.0.0"]
|
requires = ["setuptools>=42", "wheel", "nuitka", "toml"]
|
||||||
build-backend = "pdm.pep517.api"
|
build-backend = "nuitka.distutils.Build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "difficult-rocket"
|
name = "difficult-rocket"
|
||||||
version = "0.8.7.2"
|
version = "0.8.7.2"
|
||||||
description = "A rocket game"
|
description = "A rocket game"
|
||||||
authors = [
|
authors = [{ name = "shenjackyuanjie", email = "3695888@qq.com" }]
|
||||||
{name = "shenjackyuanjie", email = "3695888@qq.com"}
|
|
||||||
]
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"psutil<6.0.0,>=5.9.3",
|
"psutil<6.0.0,>=5.9.3",
|
||||||
"objprint<1.0.0,>=0.2.2",
|
"objprint<1.0.0,>=0.2.2",
|
||||||
@ -20,14 +16,19 @@ dependencies = [
|
|||||||
"defusedxml>=0.7.1",
|
"defusedxml>=0.7.1",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
license = {text = "CC-BY-NA-SA 4.0"}
|
license = { text = "CC-BY-NA-SA 4.0" }
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
gui-scripts = { DR = "Difficult_Rocket.DR:main" }
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
packages = []
|
||||||
|
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
build = [
|
build = [
|
||||||
"setuptools-rust>=1.5.2,<=1.6.0",
|
"setuptools-rust>=1.5.2,<=1.6.0",
|
||||||
"wheel>=0.38.4,<1.0.0",
|
"wheel>=0.38.4,<1.0.0",
|
||||||
"nuitka>=1.8.1,<1.9.0",
|
"nuitka>=1.8.6",
|
||||||
"setuptools>=65.5.0",
|
"setuptools>=65.5.0",
|
||||||
"viztracer<1.0.0,>=0.15.4",
|
"viztracer<1.0.0,>=0.15.4",
|
||||||
"vizplugins<1.0.0,>=0.1.2",
|
"vizplugins<1.0.0,>=0.1.2",
|
||||||
@ -38,19 +39,15 @@ build = [
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
|
|
||||||
target-version = "py38"
|
target-version = "py38"
|
||||||
|
|
||||||
line-length = 150
|
line-length = 150
|
||||||
|
src = ["Difficult_Rocket", "libs/lib_not_dr", "libs/utils"]
|
||||||
|
|
||||||
src = [
|
exclude = ['libs/pyglet', 'libs/pyperclip', 'libs/MCDR/serializer.py']
|
||||||
"Difficult_Rocket",
|
|
||||||
"libs/Difficult_Rocket"
|
|
||||||
]
|
|
||||||
|
|
||||||
exclude = [
|
[nuitka]
|
||||||
'libs/pyglet',
|
|
||||||
'libs/pyperclip',
|
|
||||||
'libs/MCDR/serializer.py'
|
|
||||||
]
|
|
||||||
|
|
||||||
format = "grouped"
|
|
||||||
|
|
||||||
|
lto = "yes"
|
||||||
|
main = "DR.py"
|
||||||
|
clang = true
|
||||||
|
standalone = true
|
||||||
|
output-dir = "build/windows"
|
||||||
|
Loading…
Reference in New Issue
Block a user