From afcbafe3852e909ffa26fc9c299bd2b317d3e162 Mon Sep 17 00:00:00 2001 From: Cecilia Stevens <63068179+ceciliastevens@users.noreply.github.com> Date: Tue, 17 Jun 2025 09:49:39 -0400 Subject: [PATCH 1/2] add deprecation message --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index f265ba14..c0c485cb 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,13 @@ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Documentation Status](https://readthedocs.org/projects/code42cli/badge/?version=latest)](https://clidocs.code42.com/en/latest/?badge=latest) +## Code42CLI end-of-life +Code42CLI is now deprecated. It has been replaced by the [Incydr CLI](https://support.code42.com/hc/en-us/articles/14827667072279-Introduction-to-the-Incydr-command-line-interface). +- Code42CLI will reach **end-of-support on January 1, 2026**, and **end-of-life on January 1, 2027**. +- To ensure uninterrupted functionality and access to the latest features, migrate your integrations to the Incydr CLI as soon as possible. + +For more details, [see our FAQ](https://support.code42.com/hc/en-us/articles/32154640298263-Code42-CLI-end-of-life-FAQ). + Use the `code42` command to interact with your Code42 environment. * `code42 security-data` is a CLI tool for extracting AED events. From a42bba5a4059eb4b6a1bfdd982232987ed0faeaf Mon Sep 17 00:00:00 2001 From: Cecilia Stevens <63068179+ceciliastevens@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:28:25 -0400 Subject: [PATCH 2/2] fix failing tests; pin click version --- setup.py | 2 +- tests/test_bulk.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 06878080..1fd44326 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ python_requires=">=3.9, <4", install_requires=[ "chardet", - "click>=7.1.1", + "click>=7.1.1,<8.2", "click_plugins>=1.1.1", "colorama>=0.4.3", "keyring==18.0.1", diff --git a/tests/test_bulk.py b/tests/test_bulk.py index 4031de51..07c8badf 100644 --- a/tests/test_bulk.py +++ b/tests/test_bulk.py @@ -45,7 +45,8 @@ def test_generate_template_cmd_factory_returns_expected_command(): assert template.name == "generate-template" assert len(template.params) == 2 assert template.params[0].name == "cmd" - assert template.params[0].type.choices == ["add", "remove"] + assert "add" in template.params[0].type.choices + assert "remove" in template.params[0].type.choices assert template.params[1].name == "path" @@ -63,7 +64,8 @@ def test_generate_template_cmd_factory_when_using_defaults_returns_expected_comm assert template.name == "generate-template" assert len(template.params) == 2 assert template.params[0].name == "cmd" - assert template.params[0].type.choices == ["add", "remove"] + assert "add" in template.params[0].type.choices + assert "remove" in template.params[0].type.choices assert template.params[1].name == "path"