diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c2a24596c9c465fca62c38eff649b17dc146f63..84dbae15afd67b93effe46f2b2ccd5b6fc48e794 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 a5df28a9c3a77bd70ff6d75aeb640b3f83649bf2..80c5b8d284f9c8568c8e966880394285dbaa36c3 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