From bc8fed6cba9e2b16086b2a936d3844abf0edea78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Fri, 5 Jul 2024 13:24:53 +0200
Subject: [PATCH] fix : package warning

---
 MANIFEST.in    |  1 +
 pyproject.toml | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index 0725e2309..ae5b7c7c2 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -2,6 +2,7 @@ include README.md LICENCE
 recursive-include aidge_core *.py 
 recursive-exclude aidge_core/unit_tests *.py
 
+recursive-include aidge_core/aidge_export_aidge *
 recursive-include include *.hpp
 recursive-include src *.cpp
 recursive-include python_binding *.cpp
diff --git a/pyproject.toml b/pyproject.toml
index f58601739..fac3c6dd9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -32,12 +32,14 @@ build-backend = "setuptools.build_meta"
 # SETUPTOOLS
 [tool.setuptools]
 [tool.setuptools.packages.find]
-where = ["."]  # list of folders that contain the packages (["."] by default)
-include = ["aidge_core*"]  # package names should match these glob patterns (["*"] by default)
+where = ["aidge_core"]  # list of folders that contain the packages (["."] by default)
+include = ["aidge_core*" , "aidge_core.aidge_export_aidge*", "aidge_core.aidge_export_aidge.utils"]  # package names should match these glob patterns (["*"] by default)
 exclude = ["aidge_core.unit_tests*"]  # exclude packages matching these glob patterns (empty by default)
-namespaces = false  # to disable scanning PEP 420 namespaces (true by default)
+[tool.setuptoos.packages-data]
+aidge_export_aidge = ["*.cpp", "*.hpp", "*.md", "*.cmake" , "*.jinja"]
+
 # SETUPTOOLS_SCM
-[tool.setuptools_scm]
+[too.setuptools_scm]
 write_to = "aidge_core/_version.py"
 
 #####################################################
-- 
GitLab