From 8545beddec4387845ad1af7dd7348ea4677abbad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Jonglez?= <clement.jonglez@tu-berlin.de>
Date: Tue, 4 Jun 2024 12:28:34 +0200
Subject: [PATCH] pyproject.toml: add stubs packages

---
 pyproject.toml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 61c1eb8..4238db4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -49,3 +49,12 @@ testpaths = [
 [project.entry-points.pyinstaller40]
 "hook-dirs" = "orekit_jpype._pyinstaller.entry_points:get_hook_dirs"
 "tests" = "orekit_jpype._pyinstaller.entry_points:get_PyInstaller_tests"
+
+[tool.hatch.build.targets.wheel]
+# Hatch allows installing multiple packages: https://hatch.pypa.io/1.12/config/build/#packages
+packages = [
+    "orekit_jpype",
+    "java-stubs", # stub-only package for the corresponding Java package https://peps.python.org/pep-0561/#stub-only-packages
+    "jpype-stubs", # stub-only package for the corresponding Java package https://peps.python.org/pep-0561/#stub-only-packages
+    "org-stubs" # stub-only package for the corresponding Java package https://peps.python.org/pep-0561/#stub-only-packages
+]
-- 
GitLab