Skip to content

Commit b1a5dfe

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

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

hatch_build_scripts/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def initialize(
5555

5656
build_data["artifacts"].append(str(out_dir.relative_to(self.root)))
5757

58+
print(build_data["artifacts"])
59+
5860

5961
def load_scripts(config: dict[str, Any]) -> Sequence[OneScriptConfig]:
6062
script_defaults = dataclass_defaults(OneScriptConfig)

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)