Release 2.4.199 and remove py38 leftovers

Stefano Ortolani 2024-11-24 12:08:23 +00:00
parent a204497cf6
commit 6e5f38769a
3 changed files with 1400 additions and 1717 deletions

View File

@ -14,7 +14,6 @@ as a cron job
import json import json
import base64 import base64
from distutils.util import strtobool
import io import io
import zipfile import zipfile
@ -42,6 +41,21 @@ moduleconfig = ['apikey', 'url', 'shareable', 'do_not_reanalyze', 'do_not_includ
include_vmrayjobids = False include_vmrayjobids = False
def strtobool(val):
"""Convert a string representation of truth to true (1) or false (0).
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
'val' is anything else.
"""
val = val.lower()
if val in ('y', 'yes', 't', 'true', 'on', '1'):
return 1
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
return 0
else:
raise ValueError("invalid truth value %r" % (val,))
def handler(q=False): def handler(q=False):
global include_vmrayjobids global include_vmrayjobids

3087
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "misp-modules" name = "misp-modules"
version = "2.4.198" version = "2.4.199"
description = "MISP modules are autonomous modules that can be used for expansion and other services in MISP" description = "MISP modules are autonomous modules that can be used for expansion and other services in MISP"
authors = ["Alexandre Dulaunoy <alexandre.dulaunoy@circl.lu>"] authors = ["Alexandre Dulaunoy <alexandre.dulaunoy@circl.lu>"]
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
@ -30,7 +30,7 @@ misp-modules = "misp_modules:main"
[tool.poetry.dependencies] [tool.poetry.dependencies]
## platform (pin this to your python version, for 'poetry export' to work) ## platform (pin this to your python version, for 'poetry export' to work)
python = ">=3.8.*,<3.13" python = ">=3.9.*,<3.13"
## core dependencies ## core dependencies
psutil = "*" psutil = "*"
pyparsing = "*" pyparsing = "*"
@ -41,11 +41,9 @@ urllib3 = ">=1.26,<2"
censys = "2.0.9" censys = "2.0.9"
socialscan = "<2.0.0" socialscan = "<2.0.0"
yara-python = "4.5.0" yara-python = "4.5.0"
# required to support both python 3.8 and wheel builds on python 3.12 numpy = ">=1.26.4,<2.0.0"
numpy = [{version = "1.24.4", python = "3.8.*"}, {version = ">=1.26.4,<2.0.0", python = ">=3.9"}] pandas = ">=2.0.0"
pandas = [{version = "1.5.3", python = "3.8.*"}, {version = ">=2.0.0", python = ">=3.9"}] pandas_ods_reader = ">=1.0.0"
pandas_ods_reader = [{version = "0.1.4", python = "3.8.*"}, {version = ">=1.0.0", python = ">=3.9"}]
pandoc = "*"
## module dependencies ## module dependencies
apiosintds = "*" apiosintds = "*"
assemblyline_client = "*" assemblyline_client = "*"
@ -68,6 +66,7 @@ np = "*"
oauth2 = "*" oauth2 = "*"
opencv-python = "*" opencv-python = "*"
openpyxl = "*" openpyxl = "*"
pandoc = "*"
passivetotal = "*" passivetotal = "*"
pdftotext = "*" pdftotext = "*"
pycountry = "*" pycountry = "*"
@ -84,6 +83,7 @@ pysafebrowsing = "*"
pytesseract = "*" pytesseract = "*"
python-docx = "*" python-docx = "*"
python-pptx = "*" python-pptx = "*"
pyutil = "*"
pyzbar = "*" pyzbar = "*"
requests = { version = "*", extras = ["security"] } requests = { version = "*", extras = ["security"] }
shodan = "*" shodan = "*"