From 5f8a33c5ce234c44125977feccd55f144f453944 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 24 May 2024 08:34:25 +0200 Subject: [PATCH] Bug fix to allow multiple builds of package The [tool.setuptools.packages.find] section in 'pyproject.toml' was removed because it didn't affect the generated wheel, as the wheel still excluded the 'tests' directory with this section removed. Including [tool.setuptools.packages.find] caused issues with multiple builds of the package. This led to the creation of infinite nested 'build/lib/build/lib' directories. By removing this section, the default behaviour now ignores 'build*' directories, preventing these problems. For more details, refer to the related discussion on the setuptools: https://github.com/pypa/setuptools/issues/4076 --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 841b354..ba922d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,8 +59,5 @@ testing = [ [project.entry-points.pytest11] pytest_httpx = "pytest_httpx" -[tool.setuptools.packages.find] -exclude = ["tests*"] - [tool.setuptools.dynamic] version = {attr = "pytest_httpx.version.__version__"}