From 2d862ce3ee1705ddd56668e094391202664dd7e6 Mon Sep 17 00:00:00 2001 From: Tora Kozic Date: Thu, 30 Nov 2023 12:07:04 -0700 Subject: [PATCH 1/2] prep 1.18.0 release --- CHANGELOG.md | 6 ++++++ src/code42cli/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 861005dc..91b24573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The intended audience of this file is for py42 consumers -- as such, changes that don't affect how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here. +## 1.18.0 - 2023-11-30 + +### Added + +- Support for Python 3.12, includes various dependency version requirement updates. + ## 1.17.0 - 2023-08-04 ### Removed diff --git a/src/code42cli/__version__.py b/src/code42cli/__version__.py index 30244104..6cea18d8 100644 --- a/src/code42cli/__version__.py +++ b/src/code42cli/__version__.py @@ -1 +1 @@ -__version__ = "1.17.0" +__version__ = "1.18.0" From f65dcdeda4ba6ca9bbce32e77d2af94da0a8be02 Mon Sep 17 00:00:00 2001 From: Tora Kozic Date: Thu, 30 Nov 2023 12:14:14 -0700 Subject: [PATCH 2/2] suppress pandas FutureWarning --- CHANGELOG.md | 2 +- src/code42cli/output_formats.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91b24573..d5369176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ how a consumer would use the library (e.g. adding unit tests, updating documenta ## 1.18.0 - 2023-11-30 -### Added +### Added - Support for Python 3.12, includes various dependency version requirement updates. diff --git a/src/code42cli/output_formats.py b/src/code42cli/output_formats.py index b0f87a25..114fb706 100644 --- a/src/code42cli/output_formats.py +++ b/src/code42cli/output_formats.py @@ -1,6 +1,7 @@ import csv import io import json +import warnings from itertools import chain from typing import Generator @@ -16,6 +17,8 @@ from code42cli.util import find_format_width from code42cli.util import format_to_table +# remove this once we drop support for Python 3.7 +warnings.filterwarnings("ignore", category=FutureWarning) CEF_DEFAULT_PRODUCT_NAME = "Advanced Exfiltration Detection" CEF_DEFAULT_SEVERITY_LEVEL = "5" @@ -90,6 +93,8 @@ def _iter_table(self, dfs, columns=None, **kwargs): if df.empty: return # convert everything to strings so we can left-justify format + # applymap() is deprecated in favor of map() for pandas 2.0+ (method renamed) + # pandas only supports Python 3.8+, update this once we drop support for Python 3.7 df = df.fillna("").applymap(str) # set overrideable default kwargs kwargs = {