diff --git a/aidge_core/__init__.py b/aidge_core/__init__.py index 80f6d0d2a2b6327e8ed7b2c70f1d275a7d506d06..652f485a9d3de6869b55613549172d49913e8509 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 df1a6f8b9798560d872fd93404e4436d9c009dd5..1dd28b5062a63965924589dcfa08373b7834b324 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 dd32aca8fe9ee644825f48ca3981a68c1d89c64d..2dcb0701988d944c93a9f2e0ddfad3e0ebeb3313 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]