Skip to content
Snippets Groups Projects
Commit 645c4bdf authored by Martin Lange's avatar Martin Lange
Browse files

add FINAM version to metadata

parent 3e23b64b
No related branches found
No related tags found
1 merge request!276Add FINAM version to metadata
Pipeline #203502 passed with stages
in 4 minutes and 59 seconds
......@@ -11,7 +11,7 @@
### Features
* Components and adapters automatically provide default metadata that can be extended by implementations (!274)
* Components and adapters automatically provide default metadata that can be extended by implementations (!274, !276)
### Documentation
......
......@@ -16,6 +16,7 @@ from datetime import datetime
from pathlib import Path
from time import strftime
from ._version import __version__
from .errors import (
FinamCircularCouplingError,
FinamConnectError,
......@@ -524,6 +525,7 @@ class Composition(Loggable):
)
return {
"version": __version__,
"components": comps,
"adapters": adas,
"links": links,
......
......@@ -28,6 +28,7 @@ from finam import (
Output,
TimeComponent,
)
from finam._version import __version__
from finam.adapters.base import Scale
from finam.adapters.time import DelayFixed, NextTime
from finam.modules import CallbackComponent, CallbackGenerator, DebugPushConsumer, debug
......@@ -1037,6 +1038,8 @@ class TestComposition(unittest.TestCase):
in md["links"]
)
self.assertEqual(__version__, md["version"])
if __name__ == "__main__":
unittest.main()
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