Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 27, 2021
1 parent d44e727 commit 3395213
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions repo_helper/files/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ def make_pyproject(repo_path: pathlib.Path, templates: jinja2.Environment) -> Li
data["project"]["urls"]["Documentation"] = templates.globals["docs_url"]

if templates.globals["console_scripts"]:
data["project"]["scripts"] = {split_entry_point(e) for e in templates.globals["console_scripts"]}
data["project"]["scripts"] = dict(split_entry_point(e) for e in templates.globals["console_scripts"])

data["project"].set_default("entry-points", {})

for group, entry_points in templates.globals["entry_points"].items():
data["project"]["entry-points"][group] = {split_entry_point(e) for e in entry_points}
data["project"]["entry-points"][group] = dict(split_entry_point(e) for e in entry_points)

data.set_default("tool", {})

Expand Down
5 changes: 4 additions & 1 deletion tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
GITHUB_COM = URL("https://github.com")


@pytest.mark.skipif(PYPY and platform.system() == "Windows")
@pytest.mark.skipif(
PYPY and platform.system() == "Windows",
reason="Dulwich causes 'TypeError: os.scandir() doesn't support bytes path on Windows, use Unicode instead'",
)
@pytest.mark.parametrize(
"username, repository", [
("domdfcoding", "sphinx-toolbox"),
Expand Down

0 comments on commit 3395213

Please sign in to comment.