From ea58faad2370c9427f2709f7f9acc94004fd0003 Mon Sep 17 00:00:00 2001 From: Gyeongjae Choi Date: Tue, 25 Jun 2024 20:55:45 +0900 Subject: [PATCH] Use hatch for build backend (#33) * Use hatch for build * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- pyproject.toml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8cfba8a..7fed936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,10 @@ [build-system] -requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.2"] - -build-backend = "setuptools.build_meta" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] name = "pyodide-cli" -version = "0.0.1" +dynamic = ["version"] authors = [{name = "Pyodide developers"}] description = '"The command line interface for the Pyodide project"' classifiers = [ @@ -31,28 +30,14 @@ Documentation = "https://pyodide.org/en/stable/" [project.optional-dependencies] test = ["pytest"] +[tool.hatch.version] +source = "vcs" + [project.scripts] pyodide = "pyodide_cli.__main__:main" -[tool.setuptools] -package-dir = {"" = "."} -include-package-data = false - -[tool.setuptools.packages] -find = {namespaces = false} - -# Evable versioning via setuptools_scm -[tool.setuptools_scm] - [tool.pycln] all = true [tool.isort] profile = "black" -known_first_party = [ - "pyodide", - "pyodide_js", - "micropip", - "pyodide_build", - "_pyodide", -]