Hello community,

here is the log from the commit of package python-pymisp for openSUSE:Factory 
checked in at 2018-10-11 11:48:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymisp (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymisp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymisp"

Thu Oct 11 11:48:08 2018 rev:10 rq:639137 version:2.4.95.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymisp/python-pymisp.changes      
2018-05-29 10:38:01.839749980 +0200
+++ /work/SRC/openSUSE:Factory/.python-pymisp.new/python-pymisp.changes 
2018-10-11 11:48:28.786555629 +0200
@@ -1,0 +2,54 @@
+Mon Sep 17 19:51:59 UTC 2018 - Sebastian Wagner <[email protected]>
+
+- Add fix-274.patch and fix-274-1.patch to fix missing enum library (#274).
+- update to version v2.4.95 (2018-09-06):
+ - New
+ -  Add helpers for new server related APIs.
+  Fix #266
+ -  Reworking the REST API (WiP)
+ -  Add Jupyter for search.
+ - Changes
+ -  [data-model] updated describeTypes file.
+ -  Added email-header attribute.
+ -  Updated types/categories mapping.
+ -  Open all json files as bytes before loading in json.
+ -  [PyMISP] describeTypes.json updated to add XMR type.
+ - Fix
+ -  Normalizing the outputs.
+ -  Jerry rig support for old python.
+ -  Format of the describeTypes.
+ -  [search.py] more example of query type added.
+ -  Properly validate the last-type search query.
+ -  Opening the json blobs as bytes was buggy.
+ -  Allow boolean parameters in search_index.
+ -  Typo in OpenIOC script.
+  - Fix #237
+ -  Bad URL in get_attachment.
+  - Fix #240
+ -  Improve error message in case the object template is unknown.
+- update to version v2.4.93 (2018-07-01):
+ - New
+ -  Add many comments in the jupyter notebook.
+ -  Return the new object in `add_object`
+ -  Add the ability to add Other attributes via the API.
+ -  Tuto for MISPEvent.
+ -  Load Org and Orgc as MISPOrganisation.
+  - Related to #239
+ - Changes
+ -  Moar jupyter.
+ -  Add few more calls.
+ -  Fix sample retrieval from new-style zips.
+ -  Raise an exception if the response is not in JSON.
+- update to version v2.4.92.1 (2018-06-05):
+ - Fix
+ -  Index out of range in add_object.
+- update to version v2.4.92 (2018-06-05):
+ - New
+ -  Add edit_object, simplify add_object.
+ - Fix
+ -  Correct docstring of search method. [iso]
+ -  Response data type mismatch in _send_attributes()
+  - Fix #206
+ -  Decoding issue.
+
+-------------------------------------------------------------------

Old:
----
  pymisp-2.4.90.1.tar.gz

New:
----
  fix-274-1.patch
  fix-274.patch
  pymisp-2.4.95.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pymisp.spec ++++++
--- /var/tmp/diff_new_pack.2exq18/_old  2018-10-11 11:48:32.578550804 +0200
+++ /var/tmp/diff_new_pack.2exq18/_new  2018-10-11 11:48:32.578550804 +0200
@@ -12,32 +12,36 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{!?license: %global license %doc}
-%bcond_without test
 Name:           python-pymisp
-Version:        2.4.90.1
+Version:        2.4.95.1
 Release:        0
 Summary:        Python API for MISP
 License:        BSD-2-Clause
 Group:          Development/Languages/Python
 Url:            https://github.com/MISP/PyMISP
 Source:         
https://files.pythonhosted.org/packages/source/p/pymisp/pymisp-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-274.patch
+Patch0:         
https://github.com/MISP/PyMISP/commit/ceedb6e95c07a10eac091277a57af6b21e0d800f.patch#/fix-274.patch
+# PATCH-FIX-UPSTREAM fix-274-1.patch
+Patch1:         
https://github.com/MISP/PyMISP/commit/f0f3b3f8441bd8b0179ca18b11e1aacaf1d2fc53.patch#/fix-274-1.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-%if %{with test}
+# SECTION tests
 BuildRequires:  %{python_module jsonschema}
 BuildRequires:  %{python_module python-dateutil}
 BuildRequires:  %{python_module python-magic}
 BuildRequires:  %{python_module requests-mock}
 BuildRequires:  %{python_module requests}
-%endif
+BuildRequires:  python2-enum34
+# /SECTION
 # SECTION docs
 BuildRequires:  python3-CommonMark
 BuildRequires:  python3-Sphinx
@@ -46,6 +50,9 @@
 Requires:       python-jsonschema
 Requires:       python-python-dateutil
 Requires:       python-requests
+%ifpython2
+Requires:       python2-enum34
+%endif
 Recommends:     %{name}-doc
 Recommends:     python-magic
 Suggests:       python-pydeep
@@ -67,6 +74,8 @@
 
 %prep
 %setup -q -n pymisp-%{version}
+%patch0 -p1
+%patch1 -p1
 find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
 
 %build
@@ -81,12 +90,10 @@
 %python_install
 %{python_expand %fdupes %{buildroot}%{$python_sitelib}}
 
-%if %{with test}
 %check
 # Requires internet access and a MISP-instance
 rm tests/test.py
 %python_exec setup.py test
-%endif
 
 %files %{python_files}
 %doc README.md

++++++ fix-274-1.patch ++++++
>From f0f3b3f8441bd8b0179ca18b11e1aacaf1d2fc53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= <[email protected]>
Date: Thu, 20 Sep 2018 12:22:06 -0700
Subject: [PATCH] fix: use proper dependency (enum34)

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 9a997a52..fb39a0d3 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@
         'Topic :: Security',
         'Topic :: Internet',
     ],
-    install_requires=['six', 'requests', 'python-dateutil', 'jsonschema', 
'setuptools>=36.4', 'python-dateutil', 'enum;python_version<"3.4"'],
+    install_requires=['six', 'requests', 'python-dateutil', 'jsonschema', 
'setuptools>=36.4', 'python-dateutil', 'enum34;python_version<"3.4"'],
     extras_require={'fileobjects': ['lief>=0.8', 'python-magic'],
                     'neo': ['py2neo'],
                     'openioc': ['beautifulsoup4'],
++++++ fix-274.patch ++++++
>From ceedb6e95c07a10eac091277a57af6b21e0d800f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= <[email protected]>
Date: Mon, 17 Sep 2018 13:59:25 -0700
Subject: [PATCH] fix: Python2 support.

Fix #274
---
 setup.py              |  4 ++--
 tests/test_offline.py | 25 ++++++++++++-------------
 2 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/setup.py b/setup.py
index 1d25cbe2..3e508602 100644
--- a/setup.py
+++ b/setup.py
@@ -26,8 +26,7 @@
         'Topic :: Security',
         'Topic :: Internet',
     ],
-    test_suite="tests.test_offline",
-    install_requires=['six', 'requests', 'python-dateutil', 'jsonschema', 
'setuptools>=36.4', 'python-dateutil'],
+    install_requires=['six', 'requests', 'python-dateutil', 'jsonschema', 
'setuptools>=36.4', 'python-dateutil', 'enum;python_version<"3.4"'],
     extras_require={'fileobjects': ['lief>=0.8', 'python-magic'],
                     'neo': ['py2neo'],
                     'openioc': ['beautifulsoup4'],
@@ -39,6 +38,7 @@
         'requests-mock',
         'six'
     ],
+    test_suite="tests.test_offline",
     include_package_data=True,
     package_data={'pymisp': ['data/*.json',
                              'data/misp-objects/schema_objects.json',
diff --git a/tests/test_offline.py b/tests/test_offline.py
index 0de7d8aa..2fd37609 100644
--- a/tests/test_offline.py
+++ b/tests/test_offline.py
@@ -166,18 +166,18 @@ def add_hashes(self, event, mock):
             Regression tests for #174
         """
         hashes_fname = mock.add_hashes(event,
-                         md5='68b329da9893e34099c7d8ad5cb9c940',
-                         sha1='adc83b19e793491b1c6ea0fd8b46cd9f32e592fc',
-                         
sha256='01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b',
-                         filename='foobar.exe')
+                                       md5='68b329da9893e34099c7d8ad5cb9c940',
+                                       
sha1='adc83b19e793491b1c6ea0fd8b46cd9f32e592fc',
+                                       
sha256='01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b',
+                                       filename='foobar.exe')
         self.assertEqual(3, len(hashes_fname))
         for attr in hashes_fname:
             self.assertTrue(isinstance(attr, pm.mispevent.MISPAttribute))
             self.assertIn("filename|", attr["type"])
 
         hashes_only = mock.add_hashes(event, 
md5='68b329da9893e34099c7d8ad5cb9c940',
-                         sha1='adc83b19e793491b1c6ea0fd8b46cd9f32e592fc',
-                         
sha256='01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b')
+                                      
sha1='adc83b19e793491b1c6ea0fd8b46cd9f32e592fc',
+                                      
sha256='01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b')
         self.assertEqual(3, len(hashes_only))
         for attr in hashes_only:
             self.assertTrue(isinstance(attr, pm.mispevent.MISPAttribute))
@@ -204,7 +204,6 @@ def add_regkeys(self, event, mock):
         self.assertEqual(key[0]["type"], "regkey|value")
         self.assertIn("foobar|foobar", key[0]["value"])
 
-
     def test_addAttributes(self, m):
         self.initURI(m)
         p = MockPyMISP(self.domain, self.key)
@@ -364,7 +363,7 @@ def test_describeTypes_sane_default_valid_category(self, m):
     def test_flatten_error_messages_singular(self, m):
         self.initURI(m)
         pymisp = PyMISP(self.domain, self.key)
-        error = pymisp.get(1)
+        pymisp.get(1)
         response = self.auth_error_msg
         response['error'] = ['foo', 'bar', 'baz']
         messages = pymisp.flatten_error_messages(response)
@@ -405,7 +404,7 @@ def test_change_toids_invalid(self, m):
         self.initURI(m)
         pymisp = PyMISP(self.domain, self.key)
         try:
-            _ = pymisp.change_toids(self.key, 42)
+            pymisp.change_toids(self.key, 42)
             self.assertFalse('Exception required for off domain value')
         except Exception:
             pass
@@ -434,7 +433,7 @@ def test_freetext_offdomain(self, m):
         self.initURI(m)
         pymisp = PyMISP(self.domain, self.key)
         try:
-            _ = pymisp.freetext(1, None, adhereToWarninglists='hard')
+            pymisp.freetext(1, None, adhereToWarninglists='hard')
             self.assertFalse('Exception required for off domain value')
         except Exception:
             pass
@@ -452,9 +451,9 @@ def test_download_samples(self, m):
     def test_sample_upload(self, m):
         self.initURI(m)
         pymisp = PyMISP(self.domain, self.key)
-        upload = pymisp.upload_sample("tmux", 
"tests/viper-test-files/test_files/tmux", 1)
-        upload = pymisp.upload_sample("tmux", "non_existing_file", 1)
-        upload = pymisp.upload_sample("tmux", b"binblob", 1)
+        pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux", 
1)
+        pymisp.upload_sample("tmux", "non_existing_file", 1)
+        pymisp.upload_sample("tmux", b"binblob", 1)
 
     def test_get_all_tags(self, m):
         self.initURI(m)
++++++ pymisp-2.4.90.1.tar.gz -> pymisp-2.4.95.1.tar.gz ++++++
++++ 7404 lines of diff (skipped)


Reply via email to