diff --git a/CHANGELOG.md b/CHANGELOG.md index 861005dc..d5369176 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" 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 = {