From 1dc4347fc089b3047c62e0fe63a521533acd409e Mon Sep 17 00:00:00 2001
From: cmoineau <cyril.moineau@cea.fr>
Date: Fri, 6 Dec 2024 07:52:49 +0000
Subject: [PATCH] Replace scm dependance with pbr

---
 pyproject.toml | 17 +++++++----------
 setup.cfg      |  4 ++++
 2 files changed, 11 insertions(+), 10 deletions(-)
 create mode 100644 setup.cfg

diff --git a/pyproject.toml b/pyproject.toml
index b838aca5e..92f955ddc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,6 @@
 [project]
-name = "aidge_core"
+name="aidge_core"
+
 description="Core algorithms for operators and graph of the AIDGE framework"
 dependencies = [
     "numpy>=1.21.6",
@@ -8,11 +9,11 @@ dependencies = [
 requires-python = ">= 3.7"
 readme = "README.md"
 license = { file = "LICENSE" }
-classifiers = [ 
+classifiers = [
     "Development Status :: 2 - Pre-Alpha",
     "Programming Language :: Python :: 3"
     ]
-dynamic = ["version"] # defined in tool.setuptools_scm
+dynamic = ["version"] # defined by pbr
 
 [project.optional-dependencies]
 test = [
@@ -22,8 +23,8 @@ test = [
 [build-system]
 requires = [
     "setuptools>=64",
-    "setuptools_scm[toml]==7.1.0",
-    "cmake>=3.18.4.post1"
+    "cmake>=3.18.4.post1",
+    "pbr"
 ]
 build-backend = "setuptools.build_meta"
 
@@ -40,11 +41,7 @@ exclude = [ # exclude packages matching these glob patterns (empty by default)
     ".unit_tests.static",
     ".aidge_export_aidge.__pycache__",
     ".aidge_export_aidge.utils.__pycache__",
-] 
-
-# SETUPTOOLS_SCM
-[tool.setuptools_scm]
-write_to = "aidge_core/_version.py"
+]
 
 #####################################################
 # CIBUILDWHEEL
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 000000000..bd90e50b2
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+# pbr file
+[metadata]
+name = file: project_name.txt
+version = file: version.txt
-- 
GitLab