From 97053d05028aba4bda0038748c11a7caf6c29c88 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Tue, 17 Sep 2024 09:55:16 -0400 Subject: [PATCH 1/2] Solve circular import --- pyproject.toml | 2 +- .../sizeof.py => dask_histogram_sizeof/__init__.py} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{dask_histogram/sizeof.py => dask_histogram_sizeof/__init__.py} (100%) diff --git a/pyproject.toml b/pyproject.toml index 68b833c..dbd0572 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ Documentation = "https://dask-histogram.readthedocs.io/" "Bug Tracker" = "https://github.com/dask-contrib/dask-histogram/issues" [project.entry-points."dask.sizeof"] -dask_histogram = "dask_histogram.sizeof:register" +dask_histogram = "dask_histogram_sizeof:register" [tool.hatch.version] source = "vcs" diff --git a/src/dask_histogram/sizeof.py b/src/dask_histogram_sizeof/__init__.py similarity index 100% rename from src/dask_histogram/sizeof.py rename to src/dask_histogram_sizeof/__init__.py From 830b94b3319dd20699c5fae2d15b979459e8393e Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Tue, 17 Sep 2024 10:23:14 -0400 Subject: [PATCH 2/2] pyproject update --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index dbd0572..c30e88d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,11 @@ test = [ "hist", "pytest", ] +[tool.hatch.build.targets.sdist.force-include] +"../src/dask_histogram_sizeof" = "src/dask_histogram_sizeof" + +[tool.hatch.build.targets.wheel] +packages = ["src/dask_histogram", "src/dask_histogram_sizeof"] [project.urls] Homepage = "https://github.com/dask-contrib/dask-histogram"