From db9c455d32dc822b1f706a82ce8d9b979a3fba28 Mon Sep 17 00:00:00 2001 From: Sangjoon Bob Lee Date: Mon, 28 Apr 2025 13:50:26 -0400 Subject: [PATCH 1/4] refactor: remove under diffpy/__init__.py --- news/remove-namespace.rst | 23 +++++++++++++++++++++++ src/diffpy/__init__.py | 11 +---------- 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 news/remove-namespace.rst diff --git a/news/remove-namespace.rst b/news/remove-namespace.rst new file mode 100644 index 0000000..790d30b --- /dev/null +++ b/news/remove-namespace.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/src/diffpy/__init__.py b/src/diffpy/__init__.py index 751b01c..868b74d 100644 --- a/src/diffpy/__init__.py +++ b/src/diffpy/__init__.py @@ -11,13 +11,4 @@ # # See LICENSE.rst for license information. # -############################################################################## - -"""Blank namespace package for module diffpy.""" - - -from pkgutil import extend_path - -__path__ = extend_path(__path__, __name__) - -# End of file +############################################################################## \ No newline at end of file From 51ffebb0c87a9c62e9d713eed20d8885308635e6 Mon Sep 17 00:00:00 2001 From: Sangjoon Bob Lee Date: Mon, 28 Apr 2025 13:55:22 -0400 Subject: [PATCH 2/4] chore: update news item --- news/remove-namespace.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/remove-namespace.rst b/news/remove-namespace.rst index 790d30b..3ba530e 100644 --- a/news/remove-namespace.rst +++ b/news/remove-namespace.rst @@ -12,7 +12,7 @@ **Removed:** -* +* Remove the import of extend_path from pkgutil in diffpy/__init__.py since we are not strictly following the Python namespace package convention. **Fixed:** From 93fb9cd32e63cfb5f5701efb915e7cc41d9d21c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 17:56:18 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit hooks --- src/diffpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffpy/__init__.py b/src/diffpy/__init__.py index 868b74d..78ce07b 100644 --- a/src/diffpy/__init__.py +++ b/src/diffpy/__init__.py @@ -11,4 +11,4 @@ # # See LICENSE.rst for license information. # -############################################################################## \ No newline at end of file +############################################################################## From 32f165f298f5b7dfdad1d0f9e2287fe404edbc5c Mon Sep 17 00:00:00 2001 From: Sangjoon Bob Lee Date: Mon, 28 Apr 2025 13:57:39 -0400 Subject: [PATCH 4/4] ci: rerun CI for test on pr