From 1d5ca094627bfcedd087e2cb59f2cfb51ea7371c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 1 Jul 2021 17:05:43 +0200
Subject: [PATCH] unit test that

---
 CHANGELOG.md               | 1 +
 snakehouse/requirements.py | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c2a245..84dbae1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
 * `snakehouse` doesn't need cython and satella installed in advance
 * added `find_all`
 * made available for PyPy users
+* deprecated `find_pyx` and `find_pyx_and_c`
 
 # v1.4
 
diff --git a/snakehouse/requirements.py b/snakehouse/requirements.py
index a5df28a..80c5b8d 100644
--- a/snakehouse/requirements.py
+++ b/snakehouse/requirements.py
@@ -1,4 +1,6 @@
 import typing as tp
+import warnings
+
 from satella.coding import for_argument
 from satella.files import read_lines, find_files
 
@@ -11,6 +13,7 @@ def find_pyx(directory_path: str) -> tp.List[str]:
     :param directory_path: directory to look through
     :return: .pyx files found
     """
+    warnings.warn('This is deprecated. Use find_all instead', DeprecationWarning)
     return find_files(directory_path, '(.*)\\.pyx$', scan_subdirectories=True)
 
 
@@ -32,6 +35,7 @@ def find_pyx_and_c(directory_path: str) -> tp.List[str]:
     :param directory_path:
     :return: list of all .pyx and .c files found in given directory
     """
+    warnings.warn('This is deprecated. Use find_all instead', DeprecationWarning)
     files = find_pyx(directory_path)
     files.extend(find_c(directory_path))
     return files
-- 
GitLab