Skip to content

Commit 699cab9

Browse files
committed
[UPD] Updated interface to v1.2.0. Fixing versioning issue
1 parent 680e55f commit 699cab9

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

iris_interface/IrisModuleInterface.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
import logging
2121
import string
22-
2322
from random import choice
24-
from iris_interface import IrisInterfaceStatus
25-
26-
from celery import Task, current_app, shared_task
2723

2824
from app.datamgmt.iris_engine.evidence_storage import EvidenceStorage
2925
from app.datamgmt.manage.manage_srv_settings_db import get_server_settings_as_dict
26+
from app.iris_engine.module_handler.module_handler import deregister_from_hook as iris_deregister_from_hook
3027
from app.iris_engine.module_handler.module_handler import get_mod_config_by_name
3128
from app.iris_engine.module_handler.module_handler import register_hook as iris_register_hook
32-
from app.iris_engine.module_handler.module_handler import deregister_from_hook as iris_deregister_from_hook
29+
from celery import Task
30+
31+
from iris_interface import IrisInterfaceStatus
3332

3433

3534
class IrisPipelineTypes(object):
@@ -54,8 +53,8 @@ class IrisModuleInterface(Task):
5453
"""
5554
_module_name = "IrisBaseModule"
5655
_module_description = "Base model of an Iris Module interface"
57-
_interface_version = 1.1
58-
_module_version = 1.0
56+
_interface_version = "1.2.0"
57+
_module_version = "1.0.0"
5958
_module_type = 'pipeline' # OR processor
6059
_pipeline_support = True
6160

@@ -211,7 +210,6 @@ def get_configuration(self) -> IrisInterfaceStatus:
211210
return IrisInterfaceStatus.I2InterfaceNotReady("Module configuration not retrieved, using default",
212211
data=data)
213212

214-
self.log.info("Using server configuration")
215213
return IrisInterfaceStatus.I2Success(data=self._mod_web_config)
216214

217215
@staticmethod
@@ -294,14 +292,14 @@ def get_module_description(self) -> str:
294292
"""
295293
return self._module_description
296294

297-
def get_module_version(self) -> float:
295+
def get_module_version(self) -> str:
298296
"""
299-
Returns the interface version for compatibility check on Iris side
297+
Returns the module version
300298
:return: float
301299
"""
302-
return self._interface_version
300+
return self._module_version
303301

304-
def get_interface_version(self) -> float:
302+
def get_interface_version(self) -> str:
305303
"""
306304
Returns the interface version for compatibility check on Iris side
307305
:return: float

setup.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,24 @@
1717
# You should have received a copy of the GNU Lesser General Public License
1818
# along with this program; if not, write to the Free Software Foundation,
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20-
20+
import pathlib
2121

2222
import setuptools
2323

24+
# The directory containing this file
25+
CURR_DIR = pathlib.Path(__file__).parent
26+
27+
# The text of the README file
28+
README = (CURR_DIR / "README.md").read_text()
2429

2530
setuptools.setup(
2631
name='iris_interface',
27-
version='1.1',
32+
version='1.2.0',
2833
packages=['iris_interface'],
29-
author="Airbus CyberSecurity",
30-
author_email="ir@cyberactionlab.net",
34+
author="DFIR-IRIS - Airbus CyberSecurity",
35+
author_email="contact@dfir-iris.org",
3136
description="An interface for Iris modules",
32-
long_description="An interface for Iris modules",
37+
long_description=README,
3338
long_description_content_type="text/markdown",
3439
url="https://github.com/dfir-iris/iris-module-interface",
3540
classifiers=[

0 commit comments

Comments
 (0)