Skip to content

Commit

Permalink
more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Oct 30, 2023
1 parent 4033086 commit a78a3e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_setuptools_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ def test_compile(compiled_plugin_dir: Path, tmp_path: Path, dist_type: str) -> N
pyproject = compiled_plugin_dir / "pyproject.toml"
pyproject.write_text(PYPROJECT)

print(f"pyproject.toml {PYPROJECT!r}")

template = compiled_plugin_dir / TEMPLATE
template.write_text("name: my_compiled_plugin\ndisplay_name: My Compiled Plugin\n")
os.chdir(compiled_plugin_dir)
subprocess.check_call([sys.executable, "-m", "build", f"--{dist_type}"])
try:
subprocess.check_call([sys.executable, "-m", "build", f"--{dist_type}"])
except subprocess.CalledProcessError as e:
raise AssertionError(PYPROJECT) from e
dist_dir = compiled_plugin_dir / "dist"
assert dist_dir.is_dir()
if dist_type == "sdist":
Expand Down

0 comments on commit a78a3e1

Please sign in to comment.