From 6a6a12f35db6d0bfa065d7c80b2d2a65bc21b545 Mon Sep 17 00:00:00 2001 From: Brett Cannon <54418+brettcannon@users.noreply.github.com> Date: Sun, 29 Mar 2020 13:57:47 -0700 Subject: [PATCH] Fix import for pep517 (#8) --- release_often/__main__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release_often/__main__.py b/release_often/__main__.py index 2f23d73..9c6dabf 100644 --- a/release_often/__main__.py +++ b/release_often/__main__.py @@ -4,7 +4,7 @@ import sys from gidgethub import actions -import pep517 +import pep517.envbuild from . import changelog from . import version @@ -44,10 +44,10 @@ def update_changelog(path, new_version): def build(): - directory = actions.workspace() - output_dir = directory / "dist" - for builder in (pep517.build_sdist, pep517.build_wheel): - builder(directory, output_dir) + source_dir = actions.workspace() + output_dir = source_dir / "dist" + for builder in (pep517.envbuild.build_sdist, pep517.envbuild.build_wheel): + builder(source_dir, output_dir) subprocess.run(["twine", "check", f"{output_dir}/*"], check=True) return output_dir