From e6791c57d5908f1d20a71fea7ffb04ff42a16ea6 Mon Sep 17 00:00:00 2001 From: Christopher Doris Date: Wed, 22 Jan 2025 10:59:51 +0000 Subject: [PATCH] switch to hatchling build system --- pyproject.toml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5f391d5b..0fa9d417 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=42", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "juliacall" @@ -10,17 +10,10 @@ readme = { file = "README.md", content-type = "text/markdown" } classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent" + "Operating System :: OS Independent", ] requires-python = ">=3.8" dependencies = ["juliapkg ~=0.1.8"] -[tool.setuptools] -zip-safe = false - -[tool.setuptools.packages.find] -where = ["pysrc"] -include = ["juliacall"] - -[tool.setuptools.package-data] -"juliacall" = ["*.json", "*.jl"] +[tool.hatch.build.targets.wheel] +packages = ["pysrc/juliacall"]