Browse Source

Check that sdist exports are limited to relevant files

default_compile_flags
vector-of-bool 4 years ago
parent
commit
8814945ece
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      tests/sdist/create/other-file.txt
  2. +3
    -0
      tests/sdist/sdist_test.py

+ 1
- 0
tests/sdist/create/other-file.txt View File

@@ -0,0 +1 @@
This file will not be in the source distribution!

+ 3
- 0
tests/sdist/sdist_test.py View File

@@ -22,3 +22,6 @@ def test_import_sdist_archive(dds: DDS):
assert not repo_content_path.is_dir()
dds.repo_import(dds.build_dir / 'foo@1.2.3.tar.gz')
assert repo_content_path.is_dir()
assert repo_content_path.joinpath('library.jsonc').is_file()
# Excluded file will not be in the sdist:
assert not repo_content_path.joinpath('other-file.txt').is_file()

Loading…
Cancel
Save