Skip to content
Snippets Groups Projects
Commit 29a0fec1 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Update export_cpp with aidge_core!277

parent 05400e59
No related branches found
No related tags found
2 merge requests!33Add and modify operators to run the ConvNeXt onnx model,!25remove scm
Pipeline #62351 failed
......@@ -10,7 +10,7 @@ import aidge_core
from aidge_export_cpp.utils import ROOT
from ._version import *
# from ._version import *
from .export import *
from pathlib import Path
import os
from importlib.metadata import version
# Constants
FILE = Path(__file__).resolve()
ROOT = FILE.parents[1]
OPERATORS_REGISTRY = {}
def show_version():
version_aidge_export_cpp = version("aidge_export_cpp")
print(f"Aidge Export CPP: {version_aidge_export_cpp}")
def operator_register(*args):
key_list = [arg for arg in args]
def decorator(operator):
class Wrapper(operator):
def __init__(self, *args, **kwargs):
return operator(*args, **kwargs)
for key in key_list:
OPERATORS_REGISTRY[key] = operator
return Wrapper
return decorator
def supported_operators():
return list(OPERATORS_REGISTRY.keys())
def get_project_version()->str:
return version("aidge_export_cpp")
......@@ -9,7 +9,7 @@ dependencies = [
requires-python = ">= 3.7"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
......@@ -26,7 +26,14 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development"
]
dynamic = ["version"] # defined in tool.setuptools_scm
dynamic = ["version"] # defined by pbr
[project.urls]
Homepage = "https://www.deepgreen.ai/en/platform"
Documentation = "https://eclipse-aidge.readthedocs.io/en/latest/"
Repository = "https://gitlab.eclipse.org/eclipse/aidge/aidge_export_cpp"
Issues = "https://gitlab.eclipse.org/eclipse/aidge/aidge_export_cpp/-/issues/"
Changelog = "https://gitlab.eclipse.org/eclipse/aidge/aidge_export_cpp/-/releases"
[project.optional-dependencies]
test = ["pytest"]
......@@ -34,7 +41,7 @@ test = ["pytest"]
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm[toml]==7.1.0"
"pbr"
]
build-backend = "setuptools.build_meta"
......@@ -47,6 +54,4 @@ include = ["aidge_export_cpp"] # package names should match these glob patterns
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"
# pbr file
[metadata]
version = file: version.txt
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