From 9a302c177e2610d623d02cc3bf380acc193722ef Mon Sep 17 00:00:00 2001 From: Anissa Zacharias Date: Tue, 27 Feb 2024 09:53:33 -0700 Subject: [PATCH] Update to implicit namespace package (#563) * update to implicit namespace package * add to release notes --- MANIFEST.in | 5 +++++ docs/release-notes.rst | 1 + geocat/__init__.py | 1 - setup.cfg | 8 +++++--- 4 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 geocat/__init__.py diff --git a/MANIFEST.in b/MANIFEST.in index 56e2f68e1..bb630fbbe 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,6 +4,9 @@ include README.md recursive-include geocat *.py recursive-exclude * __pycache__ recursive-exclude * *.py[co] +exclude .gitignore +exclude .pre-commit-config.yaml +exclude .readthedocs.yml include *.md include *.toml @@ -14,3 +17,5 @@ prune ci* prune .github* prune .circleci* prune docs* +prune benchmarks* +prune build_envs* diff --git a/docs/release-notes.rst b/docs/release-notes.rst index ceded2e5e..91ee52bd8 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -18,6 +18,7 @@ Internal Changes * Python 3.12 Support by `Cora Schneck`_ in (:pr:`548`) * Temporarily pin ASV to ``<0.6.2`` by `Anissa Zacharias`_ in (:pr:`556`) * Added ``linkcheck_ignore`` to ``docs/conf.py`` to address erroneous failures `Anissa Zacharias`_ in (:pr:`559`) +* Convert to implicit namespace packaging set up by `Anissa Zacharias`_ in (:pr:`563`) v2024.01.0 (January 30, 2023) diff --git a/geocat/__init__.py b/geocat/__init__.py deleted file mode 100644 index de40ea7ca..000000000 --- a/geocat/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup.cfg b/setup.cfg index d90274639..326f7b5c7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,9 +27,7 @@ classifiers = zip_safe = False include_package_data = True python_requires = >=3.9, <3.13 -packages = - geocat - geocat.comp +packages = find_namespace: setup_requires = setuptools_scm setuptools @@ -48,6 +46,10 @@ tests_require = netcdf4 geocat-datafiles +[options.packages.find] +where = . +include = geocat.* + [options.extras_require] docs = ipykernel