Skip to content

Commit

Permalink
Chore/prep release 1.18.0 (#409)
Browse files Browse the repository at this point in the history
* prep 1.18.0 release

* suppress pandas FutureWarning
  • Loading branch information
tora-kozic authored Nov 30, 2023
1 parent a622c7d commit d7859ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/code42cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.17.0"
__version__ = "1.18.0"
5 changes: 5 additions & 0 deletions src/code42cli/output_formats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import csv
import io
import json
import warnings
from itertools import chain
from typing import Generator

Expand All @@ -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"
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit d7859ea

Please sign in to comment.