Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_export_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Axel Farrugia
aidge_export_cpp
Commits
869e1ffd
Commit
869e1ffd
authored
10 months ago
by
Cyril Moineau
Committed by
Maxence Naud
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Update export_cpp with
eclipse/aidge/aidge_core!277
parent
fd867582
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
aidge_export_cpp/__init__.py
+1
-1
1 addition, 1 deletion
aidge_export_cpp/__init__.py
aidge_export_cpp/utils/__init__.py
+6
-19
6 additions, 19 deletions
aidge_export_cpp/utils/__init__.py
pyproject.toml
+11
-6
11 additions, 6 deletions
pyproject.toml
setup.cfg
+4
-0
4 additions, 0 deletions
setup.cfg
with
22 additions
and
26 deletions
aidge_export_cpp/__init__.py
+
1
−
1
View file @
869e1ffd
...
@@ -10,7 +10,7 @@ import aidge_core
...
@@ -10,7 +10,7 @@ import aidge_core
from
aidge_export_cpp.utils
import
ROOT
from
aidge_export_cpp.utils
import
ROOT
from
._version
import
*
#
from ._version import *
from
.export
import
*
from
.export
import
*
This diff is collapsed.
Click to expand it.
aidge_export_cpp/utils/__init__.py
+
6
−
19
View file @
869e1ffd
from
pathlib
import
Path
from
pathlib
import
Path
import
os
from
import
lib.metadata
import
version
# Constants
# Constants
FILE
=
Path
(
__file__
).
resolve
()
FILE
=
Path
(
__file__
).
resolve
()
ROOT
=
FILE
.
parents
[
1
]
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
):
def
get_project_version
()
->
str
:
return
version
(
"
aidge_export_cpp
"
)
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
())
This diff is collapsed.
Click to expand it.
pyproject.toml
+
11
−
6
View file @
869e1ffd
...
@@ -9,7 +9,7 @@ dependencies = [
...
@@ -9,7 +9,7 @@ dependencies = [
requires-python
=
">
=
3.7
"
requires-python
=
">
=
3.7
"
readme
=
"README.md"
readme
=
"README.md"
license
=
{
file
=
"LICENSE"
}
license
=
{
file
=
"LICENSE"
}
classifiers
=
[
classifiers
=
[
"Development Status :: 2 - Pre-Alpha"
,
"Development Status :: 2 - Pre-Alpha"
,
"Intended Audience :: Developers"
,
"Intended Audience :: Developers"
,
"Intended Audience :: Education"
,
"Intended Audience :: Education"
,
...
@@ -26,7 +26,14 @@ classifiers = [
...
@@ -26,7 +26,14 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence"
,
"Topic :: Scientific/Engineering :: Artificial Intelligence"
,
"Topic :: Software Development"
"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]
[project.optional-dependencies]
test
=
[
"pytest"
]
test
=
[
"pytest"
]
...
@@ -34,7 +41,7 @@ test = ["pytest"]
...
@@ -34,7 +41,7 @@ test = ["pytest"]
[build-system]
[build-system]
requires
=
[
requires
=
[
"setuptools>
=
64
",
"setuptools>
=
64
",
"
setuptools_scm[toml]=
=
7.1
.
0
"
"
pbr
"
]
]
build-backend
=
"setuptools.build_meta"
build-backend
=
"setuptools.build_meta"
...
@@ -47,6 +54,4 @@ include = ["aidge_export_cpp"] # package names should match these glob patterns
...
@@ -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)
namespaces
=
false
# to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.exclude-package-data]
[tool.setuptools.exclude-package-data]
aidge_export_cpp
=
[
"unit_tests*"
]
# exclude unit_tests which may be included as 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"
This diff is collapsed.
Click to expand it.
setup.cfg
0 → 100644
+
4
−
0
View file @
869e1ffd
# pbr file
[metadata]
version
=
file: version.txt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment