Skip to content

Commit d7859ea

Browse files
authoredNov 30, 2023
Chore/prep release 1.18.0 (#409)
* prep 1.18.0 release * suppress pandas FutureWarning
1 parent a622c7d commit d7859ea

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
The intended audience of this file is for py42 consumers -- as such, changes that don't affect
99
how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here.
1010

11+
## 1.18.0 - 2023-11-30
12+
13+
### Added
14+
15+
- Support for Python 3.12, includes various dependency version requirement updates.
16+
1117
## 1.17.0 - 2023-08-04
1218

1319
### Removed

‎src/code42cli/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.17.0"
1+
__version__ = "1.18.0"

‎src/code42cli/output_formats.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import csv
22
import io
33
import json
4+
import warnings
45
from itertools import chain
56
from typing import Generator
67

@@ -16,6 +17,8 @@
1617
from code42cli.util import find_format_width
1718
from code42cli.util import format_to_table
1819

20+
# remove this once we drop support for Python 3.7
21+
warnings.filterwarnings("ignore", category=FutureWarning)
1922

2023
CEF_DEFAULT_PRODUCT_NAME = "Advanced Exfiltration Detection"
2124
CEF_DEFAULT_SEVERITY_LEVEL = "5"
@@ -90,6 +93,8 @@ def _iter_table(self, dfs, columns=None, **kwargs):
9093
if df.empty:
9194
return
9295
# convert everything to strings so we can left-justify format
96+
# applymap() is deprecated in favor of map() for pandas 2.0+ (method renamed)
97+
# pandas only supports Python 3.8+, update this once we drop support for Python 3.7
9398
df = df.fillna("").applymap(str)
9499
# set overrideable default kwargs
95100
kwargs = {

0 commit comments

Comments
 (0)
Please sign in to comment.