Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hatch for build backend #33

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
]
Loading