diff --git a/tests/packages/has-data-files/setup.py b/tests/packages/has-data-files/setup.py index 9c1d4efb..d9183cc9 100644 --- a/tests/packages/has-data-files/setup.py +++ b/tests/packages/has-data-files/setup.py @@ -3,10 +3,9 @@ setup( name="test-package-with-data", version="1.0.0", - packages=find_packages(where="src"), - package_dir={"": "src"}, + packages=find_packages(), data_files=[ - ("share/test-package-with-data/data", ["src/test_package_with_data/data/test.txt"]), - ("share/test-package-with-data", ["src/test_package_with_data/share/config.json"]), + ("share/test-package-with-data/data", ["test_package_with_data/data/test.txt"]), + ("share/test-package-with-data", ["test_package_with_data/share/config.json"]), ], ) diff --git a/tests/packages/has-data-files/test_package_with_data/__init__.py b/tests/packages/has-data-files/test_package_with_data/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/packages/has-data-files/test_package_with_data/data/test.txt b/tests/packages/has-data-files/test_package_with_data/data/test.txt new file mode 100644 index 00000000..f6efc402 --- /dev/null +++ b/tests/packages/has-data-files/test_package_with_data/data/test.txt @@ -0,0 +1 @@ +test data file diff --git a/tests/packages/has-data-files/test_package_with_data/share/config.json b/tests/packages/has-data-files/test_package_with_data/share/config.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/tests/packages/has-data-files/test_package_with_data/share/config.json @@ -0,0 +1 @@ +{} diff --git a/tests/test_installer_data_files.py b/tests/test_installer_data_files.py index 83af683c..7201f70f 100644 --- a/tests/test_installer_data_files.py +++ b/tests/test_installer_data_files.py @@ -43,7 +43,6 @@ def test_package_wheel_path(tmp_path_factory): ) -@pytest.mark.skip(reason="Test has CI-only failures that need investigation") def test_install_installer_data_files_present( tmp_env: TmpEnvFixture, test_package_wheel_path: Path, @@ -54,7 +53,7 @@ def test_install_installer_data_files_present( build_path.mkdir() with tmp_env("python=3.12", "pip") as prefix: - python_executable = Path(prefix, get_python_short_path()) / "python" + python_executable = Path(prefix, get_python_short_path()) installer.install_installer( str(python_executable),