Skip to content

Commit

Permalink
Add missing files needed to run backend tests to the sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
stealthycoin committed Jan 4, 2023
1 parent 23e30c4 commit 2e0f1d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ include = [
"bin/*",
"CHANGELOG.rst",
"tests/**/*",
"requirements/**/*.txt",
"configure",
"Makefile.in",
"exe/**/*",
]
# end of cli sdist tool section

Expand Down
16 changes: 16 additions & 0 deletions tests/backends/test_pep517.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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())

Expand Down

0 comments on commit 2e0f1d4

Please sign in to comment.