Skip to content

Commit a2ab682

Browse files
switching to hatchling
1 parent 18620ec commit a2ab682

2 files changed

Lines changed: 22 additions & 26 deletions

File tree

MANIFEST.in

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

pyproject.toml

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

55
[project]
66
name = "hiplot-mm"
@@ -84,27 +84,30 @@ Homepage = "https://github.com/mindthemath/hiplot"
8484
Documentation = "https://facebookresearch.github.io/hiplot/"
8585
Repository = "https://github.com/mindthemath/hiplot"
8686

87-
[tool.setuptools.packages.find]
88-
include = [
89-
"hiplot*",
90-
]
87+
[tool.hatch.build]
88+
# Force-include the built JS bundles (gitignored but needed at runtime)
89+
[tool.hatch.build.force-include]
90+
"hiplot/static/built" = "hiplot/static/built"
91+
92+
[tool.hatch.build.targets.wheel]
93+
packages = ["hiplot"]
9194
exclude = [
92-
"hiplot.tests*",
95+
"hiplot/tests/",
96+
"hiplot/static/*.svg",
97+
"hiplot/static/logo.png",
9398
]
9499

95-
[tool.setuptools.package-data]
96-
hiplot = [
97-
"py.typed",
98-
"static/icon.png",
99-
"static/built/*",
100-
"static/built/streamlit_component/*",
101-
"templates/*",
100+
[tool.hatch.build.targets.sdist]
101+
include = [
102+
"hiplot/**",
103+
"LICENSE",
104+
"NOTICE",
105+
"README.md",
106+
"pyproject.toml",
102107
]
103-
104-
[tool.setuptools.exclude-package-data]
105-
hiplot = [
106-
"static/*.svg",
107-
"static/logo.png",
108+
exclude = [
109+
"hiplot/tests/",
110+
"examples/",
108111
]
109112

110113
[tool.ty.src]

0 commit comments

Comments
 (0)