diff --git a/README.md b/README.md index dca00aca0279c2796f50ee7c6a73a286d8258198..0bb3f45f4958286f5f8715fb81f9bac0d299de62 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # Aidge CPP Export -Use this module to export your Aidge model to a generic CPP export \ No newline at end of file +Use this module to export your Aidge model to a generic CPP export + +## Install + +Install with: + + pip install -v . + +## Development mode install + +For editable/development mode, install with: + + pip install -v --no-build-isolation -e . diff --git a/aidge_export_cpp/__init__.py b/aidge_export_cpp/__init__.py index c79853c6e53fefe3733937a01ef70cf483042b6b..6ab2e03aa559ad9c8cf878f1968b73478592124c 100644 --- a/aidge_export_cpp/__init__.py +++ b/aidge_export_cpp/__init__.py @@ -9,5 +9,7 @@ import aidge_core from aidge_export_cpp.utils import ROOT +from ._version import * + from .export import * diff --git a/pyproject.toml b/pyproject.toml index cbfa6210ebcb885d5efea69279f92e5a49b26a06..870f193d2f3f2849fc8c928fc6cf694cf894272a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,13 +26,15 @@ classifiers = [ "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development" ] -dynamic = ["version"] #Â defined in tool.setuptools_scm +dynamic = ["version"] # defined in tool.setuptools_scm + +[project.optional-dependencies] +test = ["pytest"] [build-system] requires = [ "setuptools>=64", - "setuptools_scm[toml]==7.1.0", - "toml" + "setuptools_scm[toml]==7.1.0" ] build-backend = "setuptools.build_meta" @@ -41,9 +43,10 @@ build-backend = "setuptools.build_meta" [tool.setuptools] [tool.setuptools.packages.find] where = ["."] # list of folders that contain the packages (["."] by default) -include = ["aidge_export_cpp.*"] # package names should match these glob patterns (["*"] by default) -exclude = ["aidge_export_cpp.unit_tests*"] # exclude packages matching these glob patterns (empty by default) -namespaces = false # to disable scanning PEP 420 namespaces (true by default) +include = ["aidge_export_cpp"] # package names should match these glob patterns (["*"] by default) +namespaces = false # to disable scanning PEP 420 namespaces (true by default) +[tool.setuptools.exclude-package-data] +aidge_export_cpp = ["unit_tests*"] # exclude unit_tests which may be included as data # SETUPTOOLS_SCM [tool.setuptools_scm] write_to = "aidge_export_cpp/_version.py" diff --git a/version.txt b/version.txt deleted file mode 100644 index d917d3e26adc9854b4569871e20111c38de2606f..0000000000000000000000000000000000000000 --- a/version.txt +++ /dev/null @@ -1 +0,0 @@ -0.1.2