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"