Skip to content

Commit fdf608d

Browse files
add deprecation message (#418)
* add deprecation message * fix failing tests; pin click version
1 parent 2fcb567 commit fdf608d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
77
[![Documentation Status](https://readthedocs.org/projects/code42cli/badge/?version=latest)](https://clidocs.code42.com/en/latest/?badge=latest)
88

9+
## Code42CLI end-of-life
10+
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).
11+
- Code42CLI will reach **end-of-support on January 1, 2026**, and **end-of-life on January 1, 2027**.
12+
- To ensure uninterrupted functionality and access to the latest features, migrate your integrations to the Incydr CLI as soon as possible.
13+
14+
For more details, [see our FAQ](https://support.code42.com/hc/en-us/articles/32154640298263-Code42-CLI-end-of-life-FAQ).
15+
916
Use the `code42` command to interact with your Code42 environment.
1017

1118
* `code42 security-data` is a CLI tool for extracting AED events.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
python_requires=">=3.9, <4",
3333
install_requires=[
3434
"chardet",
35-
"click>=7.1.1",
35+
"click>=7.1.1,<8.2",
3636
"click_plugins>=1.1.1",
3737
"colorama>=0.4.3",
3838
"keyring==18.0.1",

tests/test_bulk.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def test_generate_template_cmd_factory_returns_expected_command():
4545
assert template.name == "generate-template"
4646
assert len(template.params) == 2
4747
assert template.params[0].name == "cmd"
48-
assert template.params[0].type.choices == ["add", "remove"]
48+
assert "add" in template.params[0].type.choices
49+
assert "remove" in template.params[0].type.choices
4950
assert template.params[1].name == "path"
5051

5152

@@ -63,7 +64,8 @@ def test_generate_template_cmd_factory_when_using_defaults_returns_expected_comm
6364
assert template.name == "generate-template"
6465
assert len(template.params) == 2
6566
assert template.params[0].name == "cmd"
66-
assert template.params[0].type.choices == ["add", "remove"]
67+
assert "add" in template.params[0].type.choices
68+
assert "remove" in template.params[0].type.choices
6769
assert template.params[1].name == "path"
6870

6971

0 commit comments

Comments
 (0)