未验证 提交 c6f436a4 编写于 作者: F frostming

Add news, fix dir copy

上级 71c88876
Fix wheel builds when `package_dir` is mapped.
Add test cases for `pdm build`.
...@@ -4,6 +4,7 @@ import json ...@@ -4,6 +4,7 @@ import json
import os import os
import shutil import shutil
import sys import sys
from distutils.dir_util import copy_tree
from io import BytesIO from io import BytesIO
from pathlib import Path from pathlib import Path
from typing import Callable, Iterable, List, Optional, Tuple from typing import Callable, Iterable, List, Optional, Tuple
...@@ -265,7 +266,7 @@ def fixture_project(project_no_init): ...@@ -265,7 +266,7 @@ def fixture_project(project_no_init):
def func(project_name): def func(project_name):
source = FIXTURES / "projects" / project_name source = FIXTURES / "projects" / project_name
shutil.copytree(source, project_no_init.root, dirs_exist_ok=True) copy_tree(source.as_posix(), project_no_init.root.as_posix())
return project_no_init return project_no_init
return func return func
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册