From 3c11de0fba08145e50edbb67a22de1235c813715 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 3 Dec 2023 20:22:58 +0800 Subject: [PATCH] set dynmaic --- pyproject.toml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f7d185d..3ee8eb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,5 @@ -[build-system] -requires = ["setuptools>=42", "wheel", "nuitka", "toml"] -build-backend = "nuitka.distutils.Build" - [project] name = "difficult-rocket" -version = "0.8.7.3" description = "A rocket game" authors = [{ name = "shenjackyuanjie", email = "3695888@qq.com" }] dependencies = [ @@ -18,11 +13,13 @@ dependencies = [ requires-python = ">=3.8" license = { text = "CC-BY-NA-SA 4.0" } readme = "README.md" -gui-scripts = { DR = "Difficult_Rocket.DR:main" } +dynamic = ["version"] [tool.setuptools] packages = [] +[tool.setuptools.dynamic] +version = { attr = "Difficult_Rocket.__version__" } [project.optional-dependencies] build = [