From 46ea51050e8ce678035f2b2fbace54d04abfa5d6 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 13 Dec 2024 13:47:12 -0500 Subject: [PATCH] disable namespace package discovery, rename pytest plugin --- pyproject.toml | 4 +++- {pytest_plugin => pytest_romancal}/__init__.py | 0 {pytest_plugin => pytest_romancal}/webbpsf_plugin.py | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename {pytest_plugin => pytest_romancal}/__init__.py (100%) rename {pytest_plugin => pytest_romancal}/webbpsf_plugin.py (100%) diff --git a/pyproject.toml b/pyproject.toml index e4b833e8b..b722706c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,7 +84,7 @@ repository = "https://github.com/spacetelescope/romancal" romancal = "romancal.stpipe.integration:get_steps" [project.entry-points.pytest11] -webbpsf = "pytest_plugin.webbpsf_plugin" +webbpsf = "pytest_romancal.webbpsf_plugin" [project.scripts] roman_static_preview = "romancal.scripts.static_preview:command" @@ -106,6 +106,8 @@ build-backend = "setuptools.build_meta" zip-safe = false [tool.setuptools.packages.find] +namespaces = false +include = ["romancal*", "pytest_romancal*"] [tool.setuptools.package-data] # package_data values are glob patterns relative to each specific subpackage. diff --git a/pytest_plugin/__init__.py b/pytest_romancal/__init__.py similarity index 100% rename from pytest_plugin/__init__.py rename to pytest_romancal/__init__.py diff --git a/pytest_plugin/webbpsf_plugin.py b/pytest_romancal/webbpsf_plugin.py similarity index 100% rename from pytest_plugin/webbpsf_plugin.py rename to pytest_romancal/webbpsf_plugin.py