From f97bf06b5a96473449e9d5f30fb5bbee6b015553 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 3 Jun 2023 13:43:02 +0200 Subject: [PATCH] chore: updated build system --- .gitignore | 3 +++ pyproject.toml | 31 +++++++++++++++++++++++++++---- setup.cfg | 30 ------------------------------ 3 files changed, 30 insertions(+), 34 deletions(-) delete mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index b6e4761..c87f4f9 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +# Auto generated version file +src/treepuncher/__version__.py diff --git a/pyproject.toml b/pyproject.toml index 96a6c5b..d9a7cb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,30 @@ [build-system] -requires = [ - "setuptools>=42", - "wheel" -] +requires = ["setuptools", "setuptools-scm"] build-backend = "setuptools.build_meta" +[project] +name = "treepuncher" +authors = [ + {name = "alemi", email = "me@alemi.dev"}, +] +description = "An hackable Minecraft client, built with aiocraft" +readme = "README.md" +requires-python = ">=3.7" +keywords = ["minecraft", "client", "bot", "hackable"] +# license = {text = "MIT"} +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +dependencies = [ + "setproctitle", + "termcolor", + "apscheduler", + "aioconsole", + "aiocraft", +] +dynamic = ["version"] + +[tool.setuptools_scm] +write_to = "src/treepuncher/__version__.py" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 9b3108c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,30 +0,0 @@ -[metadata] -name = treepuncher -version = 0.2.1 -author = alemi -author_email = me@alemi.dev -description = An hackable Minecraft client, built with aiocraft -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/alemidev/treepuncher -project_urls = - Bug Tracker = https://github.com/alemidev/treepuncher/issues -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: MIT License - Operating System :: OS Independent - -[options] -install_requires = - setproctitle - termcolor - apscheduler - aioconsole - aiocraft -package_dir = - = src -packages = find: -python_requires = >=3.6 - -[options.packages.find] -where = src