Hello community,

here is the log from the commit of package python-pymisp for openSUSE:Factory 
checked in at 2017-09-22 21:34:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymisp (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymisp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymisp"

Fri Sep 22 21:34:06 2017 rev:2 rq:527495 version:2.4.80

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymisp/python-pymisp.changes      
2017-06-29 15:11:30.031714783 +0200
+++ /work/SRC/openSUSE:Factory/.python-pymisp.new/python-pymisp.changes 
2017-09-22 21:34:08.654709104 +0200
@@ -1,0 +2,56 @@
+Wed Sep 20 09:37:12 UTC 2017 - sebix+novell....@sebix.at
+
+- update to version 2.4.80
+ - Properly initialize a new malware sample. [Raphaël Vinot]
+ - Merge branch 'master' of github.com:MISP/PyMISP. [Raphaël Vinot]
+ - Permission issue... [Alexandre Dulaunoy]
+ - Merge branch 'objects' [Raphaël Vinot]
+ - Bump misp object. [Raphaël Vinot]
+ - Allow to get the list of known types out of MISPEvent again. [Raphaël
+   Vinot]
+ - Merge branch 'objects' of github.com:MISP/PyMISP into objects.
+   [Raphaël Vinot]
+ - Changed source => object / destination => referenced. [iglocska]
+ - Use MISPAbstract as a master class everywhere. [Raphaël Vinot]
+   This is probably breaking everything.... ¯\_(ツ)_/¯
+ - Bump miso-objects. [Raphaël Vinot]
+ - Changed two fields in object references. [iglocska]
+   - source_uuid => object_uuid
+   - destination_uuid => referenced_uuid
+ - Some more refactoring. [Raphaël Vinot]
+ - Some more refactoring and cleanup. [Raphaël Vinot]
+ - Update object definitions. [Raphaël Vinot]
+ - Update PE generator. [Raphaël Vinot]
+ - Refactoring in order to load objects. [Raphaël Vinot]
+ - Add support for multiple entries of the same type in an object.
+   [Raphaël Vinot]
+ - Remove some python versions from travis. [Raphaël Vinot]
+ - Do not try to run code requiring lief. [Raphaël Vinot]
+ - Remove ImportError. [Raphaël Vinot]
+ - Install deps in travis. [Raphaël Vinot]
+ - Update tests. [Raphaël Vinot]
+ - Do not fail if pymisp is not installed. [Raphaël Vinot]
+ - Add support for ELF and MachO objects. [Raphaël Vinot]
+ - Update get_template_id, cleanup. [Raphaël Vinot]
+ - Refactor all the things. [Raphaël Vinot]
+   Add script for MISP core, make everything generic.
+ - Fixing undefined ressources_path. [edhoedt]
+ - Update function names in mispevent. [Raphaël Vinot]
+ - Re-enable python < 3.5 support. [Raphaël Vinot]
+ - Update file/pe/pe-sections objects creator. [Raphaël Vinot]
+ - Doesn't require describe_types in MISPAttribute's constructor.
+   [Raphaël Vinot]
+ - Update accordingly to the current server implementation. [Raphaël
+   Vinot]
+ - Re-enable python2 support... [Raphaël Vinot]
+ - Initial commit supporting MISP Objects. [Raphaël Vinot]
+ - ChangeLog updated to the latest version. [Alexandre Dulaunoy]
+- add fix-tests-pr-111.patch to skip an optional test depending on third party 
data
+
+-------------------------------------------------------------------
+Thu Sep  7 20:05:10 UTC 2017 - sebix+novell....@sebix.at
+
+- update to version 2.4.79
+- updated shebang fixes
+
+-------------------------------------------------------------------

Old:
----
  pymisp-2.4.68.tar.gz

New:
----
  fix-tests-pr-111.patch
  pymisp-2.4.80.tar.gz

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

Other differences:
------------------
++++++ python-pymisp.spec ++++++
--- /var/tmp/diff_new_pack.0F7Tz9/_old  2017-09-22 21:34:09.386606078 +0200
+++ /var/tmp/diff_new_pack.0F7Tz9/_new  2017-09-22 21:34:09.390605514 +0200
@@ -13,53 +13,90 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{!?license: %global license %doc}
 %bcond_without test
 Name:           python-pymisp
-Version:        2.4.68
+Version:        2.4.80
 Release:        0
-License:        BSD-2-Clause
 Summary:        Python API for MISP
-Url:            https://github.com/MISP/PyMISP
+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
-BuildRequires:  python-rpm-macros
+# PATCH-FIX-UPSTREAM fix-tests-pr-111.patch -- skip an optional test depending 
on third party data
+Patch0:         
https://github.com/MISP/PyMISP/pull/111.patch#/fix-tests-pr-111.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 %if %{with test}
 BuildRequires:  %{python_module jsonschema}
 BuildRequires:  %{python_module python-dateutil}
+BuildRequires:  %{python_module python-magic}
+BuildRequires:  %{python_module requests-mock}
 BuildRequires:  %{python_module requests}
 %endif
+# SECTION docs
+BuildRequires:  python3-CommonMark
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-recommonmark
+# /SECTION
 Requires:       python-jsonschema
 Requires:       python-python-dateutil
 Requires:       python-requests
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Recommends:     %{name}-doc
+Recommends:     python-magic
+Suggests:       python-pydeep
 BuildArch:      noarch
 
 %python_subpackages
 
-%description
-PyMISP - Python Library to access MISP
+%package -n %{name}-doc
+Summary:        Examples and Documentation for %{name}
+Group:          Documentation/HTML
 
+%description
 PyMISP is a Python library to access MISP platforms via their REST API.
 
 PyMISP allows you to fetch events, add or update events/attributes, add or 
update samples or search for attributes.
 
+%description -n %{name}-doc
+Examples and HTML documentation for %{name}.
+
 %prep
 %setup -q -n pymisp-%{version}
-sed -i '/#!\/usr\/bin\/env python/ d' */*.py */*/*.py
+%patch0 -p1
+find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
 
 %build
 %python_build
+pushd docs
+export LANG=en_US.UTF-8
+make html
+rm build/html/.buildinfo
+popd
 
 %install
 %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}
-%defattr(-,root,root,-)
+%doc README.md
+%license LICENSE
 %{python_sitelib}/*
 
+%files -n %{name}-doc
+%doc examples docs/build/html
+
 %changelog

++++++ fix-tests-pr-111.patch ++++++
>From d59e70ce8425b610d1e5a9cde77cfb26af9ba184 Mon Sep 17 00:00:00 2001
From: Sebastian Wagner <wag...@cert.at>
Date: Wed, 20 Sep 2017 11:15:13 +0200
Subject: [PATCH 1/2] TST: update test requirements

---
 .travis.yml | 2 +-
 setup.py    | 9 ++++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5f93e2fc..391d973e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,7 +20,7 @@ install:
     - pip install -U nose
     - pip install coveralls
     - pip install codecov
-    - pip install requests-mock pytest
+    - pip install requests-mock
     - pip install 
https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
     - pip install git+https://github.com/kbandla/pydeep.git
     - pip install python-magic
diff --git a/setup.py b/setup.py
index 553666f1..5b5d2737 100644
--- a/setup.py
+++ b/setup.py
@@ -26,8 +26,15 @@
         'Topic :: Security',
         'Topic :: Internet',
     ],
-    test_suite="tests",
+    test_suite="tests.test_offline",
     install_requires=['six', 'requests', 'python-dateutil', 'jsonschema'],
+    tests_require=[
+        'jsonschema',
+        'python-dateutil',
+        'python-magic',
+        'requests-mock',
+        'six'
+    ],
     include_package_data=True,
     package_data={'pymisp': ['data/*.json', 
'data/misp-objects/schema_objects.json',
                              'data/misp-objects/schema_relationships.json',

>From 0790e571a1819f6aaff82005a47132c2b6cd8494 Mon Sep 17 00:00:00 2001
From: Sebastian Wagner <wag...@cert.at>
Date: Wed, 20 Sep 2017 11:15:33 +0200
Subject: [PATCH 2/2] TST: skip test with optional files if not existing

---
 tests/test_offline.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/test_offline.py b/tests/test_offline.py
index 25229c02..47e43a50 100644
--- a/tests/test_offline.py
+++ b/tests/test_offline.py
@@ -233,9 +233,12 @@ def make_objects(self, path):
 
     def test_objects(self, m):
         paths = ['cmd.exe', 'tmux', 'MachO-OSX-x64-ls']
-        for path in paths:
-            json_blob = self.make_objects(os.path.join('tests',
-                                          'viper-test-files', 'test_files', 
path))
+        try:
+            for path in paths:
+                json_blob = self.make_objects(os.path.join('tests',
+                                              'viper-test-files', 
'test_files', path))
+        except IOError:  # Can be replaced with FileNotFoundError when support 
for python 2 is dropped
+            return unittest.SkipTest()
         print(json_blob)
 
 if __name__ == '__main__':
++++++ pymisp-2.4.68.tar.gz -> pymisp-2.4.80.tar.gz ++++++
++++ 10172 lines of diff (skipped)


Reply via email to