From 6d6e1e5b814de9d63c4e63fe3475c88822c06e72 Mon Sep 17 00:00:00 2001 From: solomocyj Date: Sat, 10 May 2025 14:51:37 +0800 Subject: [PATCH] move to pyproject.toml --- pyproject.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..524769d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "envycontrol" +dynamic = ["version"] +description = "Easy GPU switching for Nvidia Optimus laptops under Linux" +readme = "README.md" +license = "MIT" +authors = [ + { name = "Victor Bayas", email = "victorsbayas@gmail.com" }, +] +keywords = [ + "gpu", + "linux", + "nvidia", + "optimus", + "prime", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: MIT License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", +] + +[project.scripts] +envycontrol = "envycontrol:main" + +[project.urls] +Homepage = "http://github.com/bayasdev/envycontrol" + +[tool.hatch.version] +path = "envycontrol/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/envycontrol", +]