- drop python2, not supported anymore upstream
- add fix-tests-template-version.patch from upstream commit to fix tests - update to version 2.4.120: - New - [attribute type] kusto-query attribute type. [Alexandre Dulaunoy] Kusto query is the query language for the Kusto services in Azure used to search large dataset. It's used in Windows Defender ATP Hunting-Queries and also Azure Sentinel (Cloud-native SIEM). - Remove python < 3.6 support. [Raphaël Vinot] - Changes - Bump version. [Raphaël Vinot] - Bump Changelog. [Raphaël Vinot] - Bump misp-objects. [Raphaël Vinot] - Bump dependencies, add debug. [Raphaël Vinot] - Upate dummy events creator. [Raphaël Vinot] - Add tests on more version of Python. [Raphaël Vinot] - Search with the STIX output returns a json STIX. [Raphaël Vinot] Was XML before. - Bump dependencies. [Raphaël Vinot] - Add more typing information. [Raphaël Vinot] - Add typing markup. [Raphaël Vinot] - Bump misp-objects. [Raphaël Vinot] - Bump Dependencies. [Raphaël Vinot] - Bump misp-objects. [Raphaël Vinot] - Fix - Add missing variable in dummy creator. [Raphaël Vinot] - Et2misp was python2 only. [Raphaël Vinot] - Feed generator was broken. [Raphaël Vinot] Fix #506 - Event without hashable attribute. [Raphaël Vinot] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymisp?expand=0&rev=54
This commit is contained in:
committed by
Git OBS Bridge
parent
0a7fefd7a6
commit
ac9001ce34
45
fix-tests-template-version.patch
Normal file
45
fix-tests-template-version.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
From acaf56b88832edaa8801b1dbcc6281a43867e532 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= <raphael@vinot.info>
|
||||
Date: Fri, 17 Jan 2020 15:20:56 +0100
|
||||
Subject: [PATCH] fix: Bump template_version in test cases
|
||||
|
||||
---
|
||||
tests/mispevent_testfiles/event_obj_attr_tag.json | 2 +-
|
||||
tests/mispevent_testfiles/event_obj_def_param.json | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tests/mispevent_testfiles/event_obj_attr_tag.json b/tests/mispevent_testfiles/event_obj_attr_tag.json
|
||||
index aa15b830..42d544de 100644
|
||||
--- a/tests/mispevent_testfiles/event_obj_attr_tag.json
|
||||
+++ b/tests/mispevent_testfiles/event_obj_attr_tag.json
|
||||
@@ -30,7 +30,7 @@
|
||||
"name": "file",
|
||||
"sharing_group_id": "0",
|
||||
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
||||
- "template_version": "18",
|
||||
+ "template_version": "19",
|
||||
"uuid": "a"
|
||||
},
|
||||
{
|
||||
diff --git a/tests/mispevent_testfiles/event_obj_def_param.json b/tests/mispevent_testfiles/event_obj_def_param.json
|
||||
index 2f6dd2b3..d80cf95e 100644
|
||||
--- a/tests/mispevent_testfiles/event_obj_def_param.json
|
||||
+++ b/tests/mispevent_testfiles/event_obj_def_param.json
|
||||
@@ -30,7 +30,7 @@
|
||||
"name": "file",
|
||||
"sharing_group_id": "0",
|
||||
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
||||
- "template_version": "18",
|
||||
+ "template_version": "19",
|
||||
"uuid": "a"
|
||||
},
|
||||
{
|
||||
@@ -55,7 +55,7 @@
|
||||
"name": "file",
|
||||
"sharing_group_id": "0",
|
||||
"template_uuid": "688c46fb-5edb-40a3-8273-1af7923e2215",
|
||||
- "template_version": "18",
|
||||
+ "template_version": "19",
|
||||
"uuid": "b"
|
||||
}
|
||||
]
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:594ea0a9e150052232425009eac6dd104a80f494d0e273cc48dd114d7ea8482b
|
||||
size 1618748
|
3
pymisp-2.4.120.tar.gz
Normal file
3
pymisp-2.4.120.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4359953881c70d8c851ba847ebd41fe636ecc155ee92a6b653dcae2d241a6fef
|
||||
size 1594056
|
@@ -1,3 +1,56 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 18 09:59:31 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
- drop python2, not supported anymore upstream
|
||||
- add fix-tests-template-version.patch from upstream commit to fix tests
|
||||
- update to version 2.4.120:
|
||||
- New
|
||||
- [attribute type] kusto-query attribute type. [Alexandre Dulaunoy]
|
||||
Kusto query is the query language for the Kusto services in Azure used
|
||||
to search large dataset. It's used in Windows Defender ATP Hunting-Queries
|
||||
and also Azure Sentinel (Cloud-native SIEM).
|
||||
- Remove python < 3.6 support. [Raphaël Vinot]
|
||||
- Changes
|
||||
- Bump version. [Raphaël Vinot]
|
||||
- Bump Changelog. [Raphaël Vinot]
|
||||
- Bump misp-objects. [Raphaël Vinot]
|
||||
- Bump dependencies, add debug. [Raphaël Vinot]
|
||||
- Upate dummy events creator. [Raphaël Vinot]
|
||||
- Add tests on more version of Python. [Raphaël Vinot]
|
||||
- Search with the STIX output returns a json STIX. [Raphaël Vinot]
|
||||
Was XML before.
|
||||
- Bump dependencies. [Raphaël Vinot]
|
||||
- Add more typing information. [Raphaël Vinot]
|
||||
- Add typing markup. [Raphaël Vinot]
|
||||
- Bump misp-objects. [Raphaël Vinot]
|
||||
- Bump Dependencies. [Raphaël Vinot]
|
||||
- Bump misp-objects. [Raphaël Vinot]
|
||||
- Fix
|
||||
- Add missing variable in dummy creator. [Raphaël Vinot]
|
||||
- Et2misp was python2 only. [Raphaël Vinot]
|
||||
- Feed generator was broken. [Raphaël Vinot]
|
||||
Fix #506
|
||||
- Event without hashable attribute. [Raphaël Vinot]
|
||||
Related #506
|
||||
- Other
|
||||
- Update api.py. [AaronK]
|
||||
minor typo, can;t help it noticing those. sorry,
|
||||
- Fixed TODO, added quarantineFolder/quarantineRule from
|
||||
messagesBlocked, added some error handling to prevent empty attributes
|
||||
from trying to be added. [th3jiv3r]
|
||||
- Scrape proofpoint tap api for messages blocked/delivered & clicks
|
||||
blocked/permitted and create misp events. [th3jiv3r]
|
||||
- Add variable for proofpoint tap api auth. [th3jiv3r]
|
||||
- Update README.md. [AaronK]
|
||||
minor typo
|
||||
- Define the number of entries to output. [AndreC10002]
|
||||
Allow for defining in the settings.py file the number of entries to output
|
||||
- Update generate.py. [AndreC10002]
|
||||
- Cleanup of code and 'quick-n-dirty' sanitizing of tags. [Koen Van
|
||||
Impe]
|
||||
- Sync. [Koen Van Impe]
|
||||
- Update README.md. [Raphaël Vinot]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 1 16:16:49 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
|
@@ -17,8 +17,9 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pymisp
|
||||
Version: 2.4.119.1
|
||||
Version: 2.4.120
|
||||
Release: 0
|
||||
Summary: Python API for MISP
|
||||
License: BSD-2-Clause
|
||||
@@ -27,6 +28,7 @@ URL: https://github.com/MISP/PyMISP
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pymisp/pymisp-%{version}.tar.gz
|
||||
# Internal script for generating changelog
|
||||
Source1: changelog.sh
|
||||
Patch0: https://github.com/MISP/PyMISP/commit/acaf56b88832edaa8801b1dbcc6281a43867e532.patch#/fix-tests-template-version.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -76,6 +78,7 @@ Examples and HTML documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n pymisp-%{version}
|
||||
%patch0 -p1
|
||||
find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
|
||||
|
||||
%build
|
||||
@@ -91,8 +94,6 @@ popd
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||
|
||||
%check
|
||||
# Requires internet access and a MISP-instance
|
||||
rm tests/test.py
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user