Skip to content

Commit

Permalink
Use hatch for build backend (#33)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ryanking13 and pre-commit-ci[bot] authored Jun 25, 2024
1 parent 8a82cbe commit ea58faa
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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",
]

0 comments on commit ea58faa

Please sign in to comment.