From cf68f8d7921547676cf08384f06905b45715ef70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Tue, 16 Jul 2024 09:34:58 +0200
Subject: [PATCH] fix: minor bugs, imports, typos

---
 aidge_core/__init__.py | 2 +-
 aidge_core/utils.py    | 3 ++-
 pyproject.toml         | 9 +++++++--
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/aidge_core/__init__.py b/aidge_core/__init__.py
index 80f6d0d2a..652f485a9 100644
--- a/aidge_core/__init__.py
+++ b/aidge_core/__init__.py
@@ -11,4 +11,4 @@ from .aidge_core import * # import so generated by PyBind
 from .export_utils import ExportNode, generate_file, generate_str
 from .aidge_export_aidge import *
 from . import utils
-from _version import *
+from ._version import *
diff --git a/aidge_core/utils.py b/aidge_core/utils.py
index df1a6f8b9..1dd28b506 100644
--- a/aidge_core/utils.py
+++ b/aidge_core/utils.py
@@ -12,6 +12,7 @@ import queue
 import threading
 import subprocess
 import pathlib
+from typing import List
 
 
 def template_docstring(template_keyword, text_to_replace):
@@ -42,7 +43,7 @@ def enqueue_output(stream, queue):
     stream.close()
 
 
-def run_command(command: list[str], cwd: pathlib.Path = None):
+def run_command(command: List[str], cwd: pathlib.Path = None):
     """
     This function has the job to run a command and return stdout and stderr that are not shown
     by subprocess.check_call / call.
diff --git a/pyproject.toml b/pyproject.toml
index dd32aca8f..2dcb07019 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -33,8 +33,13 @@ build-backend = "setuptools.build_meta"
 [tool.setuptools]
 [tool.setuptools.packages.find]
 where = ["."]  # 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)
+include = [ # package names should match these glob patterns (["*"] by default)
+    "aidge_core*"
+]
+exclude = [ # exclude packages matching these glob patterns (empty by default)
+    "aidge_core.unit_tests",
+    "aidge_core.unit_tests.static"
+] 
 
 # SETUPTOOLS_SCM
 [tool.setuptools_scm]
-- 
GitLab