Skip to content

Commit a4fa74a

Browse files
committed
get this working on windows
1 parent 80aa4e0 commit a4fa74a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

hatch_build_scripts/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def initialize(
4848
for artifact_file in script.artifact_files():
4949
src_file = work_dir / artifact_file
5050
out_file = out_dir / artifact_file
51+
print(src_file, out_file)
5152
if src_file not in created:
5253
out_file.parent.mkdir(parents=True, exist_ok=True)
5354
shutil.copyfile(src_file, out_file)

tests/test_plugin.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from os.path import join as joinpath
2+
13
from hatch_build_scripts.plugin import OneScriptConfig
24

35
from .utils import create_project
@@ -55,7 +57,7 @@ def test_plugin(tmpdir):
5557
with proj.dist() as dist:
5658
files = {file.filename for file in dist.filelist}
5759

58-
assert "fake/fake.txt" in files
59-
assert "some-dir-out/module.py" in files
60-
assert "another-dir-out/module.py" not in files
61-
assert "some-dir-out/f3.txt" not in files
60+
assert joinpath("fake/fake.txt") in files
61+
assert joinpath("some-dir-out", "module.py") in files
62+
assert joinpath("another-dir-out", "module.py") not in files
63+
assert joinpath("some-dir-out", "f3.txt") not in files

0 commit comments

Comments
 (0)