1
0
forked from pool/python-pymisp

10 Commits

Author SHA256 Message Date
4c8fa03954 Accepting request 1325729 from security:csirt-tooling
OBS-URL: https://build.opensuse.org/request/show/1325729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymisp?expand=0&rev=50
2026-01-07 15:02:36 +00:00
6c5a0cbffa - Update to 2.5.17.3:
* New:
    + Use pure-magic-rs. [Raphaël Vinot]
    + Optionally use faup-rs for URL parsing. [Raphaël Vinot]
    + Enrich event/attribute endpoints. [Raphaël Vinot]
    + Create a sign_blob method to sign events. [Raphaël Vinot]
    + support for signing added. [iglocska]
  * Changes:
    + Properly support lief 0.17. [Raphaël Vinot]
    + Exception when a first/last seen is invalid. [Raphaël Vinot]
    + [emailobject] Improve parsing of the Received headers. [Sami Tainio]
    + Remove top level files from wheel. [Raphaël Vinot]
    + Remove tests from wheel. [Raphaël Vinot]
    + Allow MD in docs. [Raphaël Vinot]
    + Remove ref to recommonmark. [Raphaël Vinot]
    + [AnalystData] Flattening analyst data based on the recent changes on
      MISP standard format.
    + [MISPAnalystData] Reverted the declaration of Analyst data objects
      lists back to the mixin parent class.
    + Bump version, deps, templates. [Raphaël Vinot]
    + Drop python 3.8, add python 3.13. [Raphaël Vinot]
    + Remove fonts from submodules, on-demand download if needed. [Raphaël
      Vinot]
  * Other:
    + Replace deprecated ExpandedPyMISP with PyMISP. [Jure Sah]
    + Improve the logging message. [Peter Leitmann]
    + Add a check if add_attributes() method truly has values to add. [Peter
      Leitmann]
    + Testing Analyst Data in different scenarios.

OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=9
2026-01-07 09:02:21 +00:00
15e94bd16f Accepting request 1224369 from security:csirt-tooling
- update to version 2.5.1:

OBS-URL: https://build.opensuse.org/request/show/1224369
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymisp?expand=0&rev=49
2024-11-15 14:43:41 +00:00
4645a56a72 remove file that shouldn't be there
OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=7
2024-11-15 06:48:11 +00:00
9173e26bf8 - update to version 2.5.1:
- New
   - Onion-address type. [Raphaël Vinot]
 - Changes
   - Bump changelog. [Raphaël Vinot]
   - Bump objects. [Raphaël Vinot]
   - Bump version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
 - Fix
   - Skip trying to install doc in python 3.9. [Raphaël Vinot]
- update to version 2.5.0:
 - Changes
   - Bump changelog. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - [tests] misp_instance_version_master now uses the 2.5 branch.
     [iglocska]
 - Fix
   - Make mypy happy. [Raphaël Vinot]
- update to version 2.4.198:
 - Changes
   - Re-Bump changelog. [Raphaël Vinot]
   - Bump changelog. [Raphaël Vinot]
   - Bump deps, version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Only include the changelog in the sdist package. [Raphaël Vinot]
     Related #1295
   - [data] describeTypes.json updated. [Alexandre Dulaunoy]
 - Other
   - Openioc.py is not a script, but had exec bit. [Sebastian Wagner]

OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=6
2024-11-15 06:43:01 +00:00
4d1620242d - remove the date from python-publicsuffixlist's version. the package python-publicsuffixlist in openSUSE uses the suffix list from the package publicsuffixlist, not the list packaged by python-publicsuffixlist
sed -i -r '/publicsuffixlist/ s/(version *= *"\^[0-9]+\.[0-9]\.[0-9]+)\.[0-9]{8}/\1/' pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=5
2024-09-04 06:36:18 +00:00
2e3bf6bf58 - Add python-pymisp-doc-rpmlintrc as source
OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=4
2024-09-04 05:48:51 +00:00
32eb1f13b4 Add python-pymisp-doc-rpmlintrc as source
OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=3
2024-09-04 05:48:10 +00:00
44ff734011 - update to version 2.4.197:
- Changes
   - Bump deps, version, templates. [Raphaël Vinot]
   - [misp-objects] updated to the latest version. [Alexandre Dulaunoy]
 - Fix
   - Avoid printing huge log when a request fails. [Raphaël Vinot]
     fix #1286
- update to version 2.4.196:
 - Changes
   - Bump version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
 - Fix
   - Remove broken config. [Raphaël Vinot]
- update to version 2.4.195:
 - New
   - Add delete role, test suite for roles. [Raphaël Vinot]
   - Test publish & search. [Raphaël Vinot]
   - Add delete role, test suite for roles. [Raphaël Vinot]
   - Test publish & search. [Raphaël Vinot]
 - Changes
   - Bump Changelog. [Raphaël Vinot]
   - Bump objects. [Raphaël Vinot]
   - Bump Changelog (issue with template) [Raphaël Vinot]
   - Bump changelog. [Raphaël Vinot]
   - Bump version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - [publish tests] further debugging. [iglocska]
   - [publish test] check if the publishing actually worked as intended.

OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=2
2024-09-03 16:26:23 +00:00
c4991f9b2b osc copypac from project:devel:languages:python package:python-pymisp revision:108
OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=1
2024-09-03 15:39:32 +00:00
7 changed files with 684 additions and 86 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a97710e7d50e2beb689f9dc8ac0d7655520a79fea7fbfabc8d197d3b48009e92
size 232676
oid sha256:2aaf2bda0683ccbd7a2c13f8bf87be223356258a975628a80796bce0cc9243ea
size 274506

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b34da016b5c525507ece83fe6c205e54b5bb9afe3810d1e1f7c3762dc7fbd1cb
size 1885517

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:408c2fd7b9c1910595ae3dcd580dca0cebb7db222bfa49eb09a9eb5e10f61c26
size 1896167

View File

@@ -1 +1 @@
addFilter("python-pymisp-doc.noarch: W: zero-length /usr/share/doc/packages/python-pymisp-doc/examples/feed-generator/output/empty")
addFilter("python-pymisp-doc.noarch: E: zero-length /usr/share/doc/packages/python-pymisp-doc/examples/feed-generator/output/empty")

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pymisp
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,9 @@
#
%define skip_python2 1
%define misp_objects_revision 45bb7539a0067e23b709d082c18dcba56c34bfce
%define misp_objects_revision bdcc37547de6ca331e00d632bedd81207d26905d
Name: python-pymisp
Version: 2.4.170.2
Version: 2.5.17.3
Release: 0
Summary: Python API for MISP
License: BSD-2-Clause
@@ -33,17 +32,17 @@ Source1: https://github.com/MISP/misp-objects/archive/%{misp_objects_revi
# packaging tool
Source2: update-misp-objects.sh
Source3: python-pymisp-doc-rpmlintrc
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonschema >= 4.18.4
Recommends: python-oletools
Requires: python-Deprecated >= 1.2.14
Requires: python-python-dateutil >= 2.8.2
Requires: python-requests >= 2.31.0
Recommends: python-oletools >= 0.60.2
Requires: python-Deprecated >= 1.3.1
Requires: python-python-dateutil >= 2.9.0
Requires: python-requests >= 2.32.5
Recommends: %{name}-doc
Recommends: python-extract-msg >= 0.28.0
Recommends: python-extract-msg >= 0.55.0
Recommends: python-magic >= 0.4.27
Recommends: python-reportlab
Recommends: python3-beautifulsoup4 >= 4.12.2
@@ -59,23 +58,22 @@ Suggests: python-pydeep
#pyfaup = {version = "^1.2", optional = true}
BuildArch: noarch
# SECTION tests
BuildRequires: %{python_module Deprecated >= 1.2.14}
BuildRequires: %{python_module jsonschema >= 4.18.4}
BuildRequires: %{python_module oletools}
BuildRequires: %{python_module Deprecated >= 1.3.1}
BuildRequires: %{python_module oletools >= 0.60.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.8.2}
BuildRequires: %{python_module python-dateutil >= 2.9.0}
BuildRequires: %{python_module python-magic >= 0.4.27}
BuildRequires: %{python_module reportlab}
BuildRequires: %{python_module requests >= 2.31.0}
BuildRequires: %{python_module requests-mock}
# /SECTION
# SECTION docs
BuildRequires: python3-CommonMark
BuildRequires: python3-Sphinx
BuildRequires: python3-recommonmark >= 0.7.1
BuildRequires: python3-sphinx-autodoc-typehints
BuildRequires: python3-Sphinx >= 8.2.3
BuildRequires: python3-myst-parser >= 4.0.1
BuildRequires: python3-sphinx-autodoc-typehints >= 3.5.2
# /SECTION
%python_subpackages
%{?python_enable_dependency_generator}
%package -n %{name}-doc
Summary: Examples and Documentation for %{name}
@@ -94,10 +92,14 @@ Examples and HTML documentation for %{name}.
%setup -T -D -b 1 -n PyMISP-%{version}
mv ../misp-objects-*/* pymisp/data/misp-objects/
find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
find examples -name "*.py" -type f -exec chmod -x '{}' \+
find examples pymisp/data/misp-objects pymisp/tools -name "*.py" -type f -exec chmod -x '{}' \+
# https://github.com/MISP/PyMISP/issues/1295
sed -i '/CHANGELOG.txt/d' pyproject.toml
# remove the date from python-publicsuffixlist's version. the package python-publicsuffixlist in openSUSE uses the suffix list from the package publicsuffixlist, not the list packaged by python-publicsuffixlist
sed -i -r '/publicsuffixlist/ s/(version *= *"\^[0-9]+\.[0-9]\.[0-9]+)\.[0-9]{8}/\1/' pyproject.toml
%build
%python_build
%pyproject_wheel
pushd docs
export LANG=en_US.UTF-8
make %{?_smp_mflags} html
@@ -105,20 +107,22 @@ rm build/html/.buildinfo
popd
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
# requires optional dependencies which we don't have (extract_msg, RTFDE etc.)
rm tests/test_emailobject.py
%pytest
# requires network
donttest="((TestPDFExport and test_utf) or test_mimeType)"
%pytest -k "not $donttest"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/pymisp/
%{python_sitelib}/pymisp-%{version}*-info
%{python_sitelib}/pymisp-%{version}.dist-info
%files -n %{name}-doc
%doc examples docs/build/html

View File

@@ -1,9 +1,11 @@
#!/bin/bash
set -x
version=$(awk '/^Version:/ {print $2}' python-pymisp.spec)
echo "Detected version $version"
revision=$(wget "https://github.com/MISP/PyMISP/tree/v$version/pymisp/data" -O - | awk '/\/MISP\/misp-objects\/tree\//' | grep -Eo 'misp-objects/tree/[[:alnum:]]{40}' | egrep -Eo "[[:alnum:]]{40}")
echo "Detected revision $revision"
sed -i "s/^\%define misp_objects_revision.*$/%define misp_objects_revision $revision/" python-pymisp.spec
sed -i "s/^\%define misp_objects_revision.*$/%define misp_objects_revision ${revision}/" python-pymisp.spec
rm misp-objects.tar.gz
osc service runall download_files