瀏覽代碼

Check that sdist exports are limited to relevant files

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
8814945ece
共有 2 個文件被更改,包括 4 次插入0 次删除
  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 查看文件

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

+ 3
- 0
tests/sdist/sdist_test.py 查看文件

@@ -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…
取消
儲存