[RFC,v1,15/15] dts: merge DTS version.py to DPDK

Message ID 20220406145606.2913834-16-juraj.linkes@pantheon.tech (mailing list archive)
State RFC, archived
Delegated to: Thomas Monjalon
Headers
Series merge DTS core files to DPDK |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS

Commit Message

Juraj Linkeš April 6, 2022, 2:56 p.m. UTC
  ---
 dts/version.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 dts/version.py
  

Patch

diff --git a/dts/version.py b/dts/version.py
new file mode 100755
index 0000000000..9f23357435
--- /dev/null
+++ b/dts/version.py
@@ -0,0 +1,21 @@ 
+# <COPYRIGHT_TAG>
+
+VERSION_MAJOR = "21"
+VERSION_MINOR = "11"
+VERSION_PATCH = "0"
+VERSION_EXTRA = ""
+
+__version__ = "%s.%s.%s" % (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
+
+if VERSION_EXTRA:
+    __version__ = "%s-%s" % (__version__, VERSION_EXTRA)
+
+
+def dts_version():
+    """
+    Return the version of dts package
+    """
+    return __version__
+
+
+__all__ = ["dts_version", "__version__"]