Skip to content

Commit 2d39f64

Browse files
authored
Switch build backend to hatchling (#268)
This leads to the following improvements: * Drops all the test files from the wheel * Add `.gitignore`, remove `CODE_OF_CONDUCT` from sdist
1 parent 08a97f3 commit 2d39f64

4 files changed

Lines changed: 15 additions & 19 deletions

File tree

MANIFEST.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "sphinx-js"
@@ -45,6 +45,19 @@ classifiers = [
4545
[project.urls]
4646
Homepage = "https://github.com/pyodide/sphinx-js"
4747

48+
[tool.hatch.build.targets.sdist]
49+
include = [
50+
"/sphinx_js",
51+
"/tests",
52+
"/LICENSE",
53+
"/requirements_dev.txt",
54+
"/noxfile.py",
55+
"/README.rst",
56+
]
57+
58+
[tool.hatch.build.targets.wheel]
59+
packages = ["sphinx_js"]
60+
4861
[tool.mypy]
4962
python_version = "3.10"
5063
show_error_codes = true

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)