From 2e0f1d4c705fff2139052f990fc848e9e5792806 Mon Sep 17 00:00:00 2001 From: stealthycoin Date: Sat, 22 Oct 2022 13:39:35 -0700 Subject: [PATCH] Add missing files needed to run backend tests to the sdist --- pyproject.toml | 4 ++++ tests/backends/test_pep517.py | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3d6371a60b7d..9bc85b48ab6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,10 @@ include = [ "bin/*", "CHANGELOG.rst", "tests/**/*", + "requirements/**/*.txt", + "configure", + "Makefile.in", + "exe/**/*", ] # end of cli sdist tool section diff --git a/tests/backends/test_pep517.py b/tests/backends/test_pep517.py index 465b97d1f75e..9488180be389 100644 --- a/tests/backends/test_pep517.py +++ b/tests/backends/test_pep517.py @@ -117,6 +117,18 @@ def test_build_sdist(tmpdir, config_settings): "tests", "backends", "build_system", "unit", "__init__.py").check() assert unpacked_sdist.join("tests", "__init__.py").check() + # Make sure sdist will be buildable + assert unpacked_sdist.join("configure").check() + assert unpacked_sdist.join("Makefile.in").check() + assert unpacked_sdist.join("requirements", "bootstrap.txt").check() + assert unpacked_sdist.join( + "requirements", "download-deps", "bootstrap.txt").check() + + # Make sure exe build files are added to the sdist + assert unpacked_sdist.join("exe", "pyinstaller", "aws.spec") + assert unpacked_sdist.join("exe", "asssets", "install") + assert unpacked_sdist.join("exe", "tests", "README.md") + # We do not build the ac.index in building the sdist. So we want to make # sure it is not being included. assert not unpacked_sdist.join("awscli", "data", "ac.index").check() @@ -252,6 +264,10 @@ def test_read_sdist_extras(): "bin/*", "CHANGELOG.rst", "tests/**/*", + "requirements/**/*.txt", + "configure", + "Makefile.in", + "exe/**/*", } extras = set(backends.pep517.read_sdist_extras())