From 2b1e073d955517477cf2307c0347d7a9cefa9015 Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Tue, 25 Jun 2024 20:04:43 +0900 Subject: [PATCH 1/2] Use hatch for build --- pyproject.toml | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8cfba8a..532f676 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", -] +profile = "black" \ No newline at end of file From 38cae7cc855f667775f79958e285d1ff73816eb4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:07:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 532f676..7fed936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,4 +40,4 @@ pyodide = "pyodide_cli.__main__:main" all = true [tool.isort] -profile = "black" \ No newline at end of file +profile = "black"