From 7b7b529a2bfde3177a8376751c83074e9028a0a1 Mon Sep 17 00:00:00 2001 From: Dhaval Gojiya Date: Fri, 21 Nov 2025 15:21:25 +0530 Subject: [PATCH] feat: Migrate from Setuptools to Hatchling as the build backend --- MANIFEST.in | 3 --- README.rst | 2 +- pyproject.toml | 9 ++++----- 3 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index b7e69a3d..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include LICENSE -include README.rst -include CHANGELOG.rst diff --git a/README.rst b/README.rst index 4cc2cc62..34c4c932 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ Or if you want to install directly from the repository: .. code-block:: console - $ python setup.py install + $ pip install . Usage ===== diff --git a/pyproject.toml b/pyproject.toml index f619fc43..ffcd4c1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -build-backend = "setuptools.build_meta" -requires = [ "setuptools" ] +build-backend = "hatchling.build" +requires = [ "hatchling" ] [project] name = "pysolr" @@ -35,9 +35,8 @@ dev = [ "pre-commit>=4.4", ] -[tool.setuptools] -py-modules = [ "pysolr" ] -include-package-data = false +[tool.hatch.build.targets.sdist] +exclude = [ ".github" ] [tool.ruff] lint.select = [