From a1c3267529d0f5d070d5754a0dd28fb61dcf42cd Mon Sep 17 00:00:00 2001 From: "Mika Ayenson, PhD" Date: Fri, 20 Feb 2026 14:16:27 -0600 Subject: [PATCH] [FR] Add deprecated file to release for upstream testing (#5749) --- detection_rules/packaging.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/detection_rules/packaging.py b/detection_rules/packaging.py index 270947b84..bf679c1d7 100644 --- a/detection_rules/packaging.py +++ b/detection_rules/packaging.py @@ -501,6 +501,9 @@ class Package: readme_file.write_text(readme_text) notice_file.write_text(notice_contents) + deprecated_rules_file = package_dir / "deprecated_rules.json" + shutil.copyfile(get_etc_path(["deprecated_rules.json"]), deprecated_rules_file) + def create_bulk_index_body(self) -> tuple[Ndjson, Ndjson]: """Create a body to bulk index into a stack.""" package_hash = self.get_package_hash(verbose=False) diff --git a/pyproject.toml b/pyproject.toml index fe6b601a0..4195c3fa1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "1.5.45" +version = "1.5.46" description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine." readme = "README.md" requires-python = ">=3.12"