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

This file will not be in the source distribution!

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

assert not repo_content_path.is_dir() assert not repo_content_path.is_dir()
dds.repo_import(dds.build_dir / 'foo@1.2.3.tar.gz') dds.repo_import(dds.build_dir / 'foo@1.2.3.tar.gz')
assert repo_content_path.is_dir() 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