From f73ffc805fc2610f7b1a2bc67d306000d03de1b29c555a9e22fe021e7058d442 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 21:38:10 +0000 Subject: [PATCH] - update to 0.6: * Dropped support for Python 3.5/3.6 * Fix elastic mapping for new Wireshark 4 * Accepting rpcap:// as a valid interface name * Add args and kwargs to RemoteCapture __init__ * Replace py dependency with termcolor. * Unicode support added to correct issue617 * Make packet layer names case-insensitive for backward compatibility with v0.4.6 - update to 0.5.3: * EK Bugfixes version * Fix LiveRingCapture params. - update to 0.5.2: * Add some params for LiveRingCapture. * EK Layer now supports "payload"-type fields by casting to bytes. * EK Layer has new "get_field_as_list" function to assist with getting fields that may appear once or more * Fixed issues with printing boolean fields in EK layer. * Fixed verification of capture interface on LiveCapture. - update to 0.5: * New EK parsing mode, allowing faster and easier use than the regular JSON mode which will likely be eventually deprecated. * Support typing in EK mode. * Checking file permissions in FileCapture * Show tshark error in crash exception * Verify capture settings before starting capture * Fix path when user provides `tshark_path` using `LiveCapture`. * Fix some tshark_path problems. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshark?expand=0&rev=10 --- python-pyshark.changes | 35 +++++++++++++++++++++++++++++++++++ python-pyshark.spec | 22 ++++++++++++++-------- v0.4.6.tar.gz | 3 --- v0.6.tar.gz | 3 +++ 4 files changed, 52 insertions(+), 11 deletions(-) delete mode 100644 v0.4.6.tar.gz create mode 100644 v0.6.tar.gz diff --git a/python-pyshark.changes b/python-pyshark.changes index 6156af7..a8c2e5b 100644 --- a/python-pyshark.changes +++ b/python-pyshark.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Tue Jan 2 21:36:58 UTC 2024 - Dirk Müller + +- update to 0.6: + * Dropped support for Python 3.5/3.6 + * Fix elastic mapping for new Wireshark 4 + * Accepting rpcap:// as a valid interface name + * Add args and kwargs to RemoteCapture __init__ + * Replace py dependency with termcolor. + * Unicode support added to correct issue617 + * Make packet layer names case-insensitive for backward + compatibility with v0.4.6 +- update to 0.5.3: + * EK Bugfixes version + * Fix LiveRingCapture params. +- update to 0.5.2: + * Add some params for LiveRingCapture. + * EK Layer now supports "payload"-type fields by casting to + bytes. + * EK Layer has new "get_field_as_list" function to assist with + getting fields that may appear once or more + * Fixed issues with printing boolean fields in EK layer. + * Fixed verification of capture interface on LiveCapture. +- update to 0.5: + * New EK parsing mode, allowing faster and easier use than the + regular JSON mode which will likely be eventually deprecated. + * Support typing in EK mode. + * Checking file permissions in FileCapture + * Show tshark error in crash exception + * Verify capture settings before starting capture + * Fix path when user provides `tshark_path` using + `LiveCapture`. + * Fix some tshark_path problems. + * Fix Windows eventloop-related issues + ------------------------------------------------------------------- Sat Jun 18 17:40:17 UTC 2022 - Martin Hauke diff --git a/python-pyshark.spec b/python-pyshark.spec index ac21cad..8ac2f53 100644 --- a/python-pyshark.spec +++ b/python-pyshark.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyshark # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2019-2022, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,10 +17,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-pyshark -Version: 0.4.6 +Version: 0.6 Release: 0 Summary: A Python wrapper for tshark output parsing License: MIT @@ -28,15 +27,21 @@ Group: Development/Languages/Python URL: https://github.com/KimiNewt/pyshark #Git-Clone: https://github.com/KimiNewt/pyshark.git Source: https://github.com/KimiNewt/pyshark/archive/v%{version}.tar.gz +BuildRequires: %{python_module appdirs} BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module py} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module termcolor} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: wireshark +Requires: python-appdirs Requires: python-lxml Requires: python-py +Requires: python-termcolor Requires: wireshark BuildArch: noarch %python_subpackages @@ -49,20 +54,21 @@ wireshark dissectors. %setup -q -n pyshark-%{version}/src %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # test "inmem_capture" needs to be fixed upstream, do not run it for now -rm -f ../tests/capture/test_inmem_capture.py +rm -f ../tests/capture/test_inmem_capture.py ../tests/capture/test_live_capture.py %pytest ../tests %files %{python_files} %license ../LICENSE.txt %doc ../README.md -%{python_sitelib}/* +%{python_sitelib}/pyshark +%{python_sitelib}/pyshark-%{version}.dist-info %changelog diff --git a/v0.4.6.tar.gz b/v0.4.6.tar.gz deleted file mode 100644 index 2618b1b..0000000 --- a/v0.4.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1b97219c985d7ff41572f641031d6888a5c5692eed910b1758e8b278a3b4b274 -size 31100 diff --git a/v0.6.tar.gz b/v0.6.tar.gz new file mode 100644 index 0000000..ca6e1b7 --- /dev/null +++ b/v0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:097707f0de33edf6209635cb7b63c6ca62ba3504b1be6a15a65fc984cabb8672 +size 44227