Skip to content
Snippets Groups Projects
Commit e737e850 authored by Christophe Guillon's avatar Christophe Guillon Committed by Maxence Naud
Browse files

[Setup] Update setup in pyproject.toml

Add dynamic version include in package init.
Fix package find/data to include all packages except unit_tests.
Remove unecessary build time dependency on toml.
Add install instructions to README.md.
parent df167f3f
No related branches found
No related tags found
1 merge request!21v0.1.3
# 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 .
......@@ -9,5 +9,7 @@ import aidge_core
from aidge_export_cpp.utils import ROOT
from ._version import *
from .export import *
......@@ -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"
0.1.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment