Skip to content

Commit ea58faa

Browse files
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>
1 parent 8a82cbe commit ea58faa

1 file changed

Lines changed: 6 additions & 21 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.2"]
3-
4-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
54

65
[project]
76
name = "pyodide-cli"
8-
version = "0.0.1"
7+
dynamic = ["version"]
98
authors = [{name = "Pyodide developers"}]
109
description = '"The command line interface for the Pyodide project"'
1110
classifiers = [
@@ -31,28 +30,14 @@ Documentation = "https://pyodide.org/en/stable/"
3130
[project.optional-dependencies]
3231
test = ["pytest"]
3332

33+
[tool.hatch.version]
34+
source = "vcs"
35+
3436
[project.scripts]
3537
pyodide = "pyodide_cli.__main__:main"
3638

37-
[tool.setuptools]
38-
package-dir = {"" = "."}
39-
include-package-data = false
40-
41-
[tool.setuptools.packages]
42-
find = {namespaces = false}
43-
44-
# Evable versioning via setuptools_scm
45-
[tool.setuptools_scm]
46-
4739
[tool.pycln]
4840
all = true
4941

5042
[tool.isort]
5143
profile = "black"
52-
known_first_party = [
53-
"pyodide",
54-
"pyodide_js",
55-
"micropip",
56-
"pyodide_build",
57-
"_pyodide",
58-
]

0 commit comments

Comments
 (0)