Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Fix import for pep517 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored Mar 29, 2020
1 parent d1cacf9 commit 6a6a12f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release_often/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys

from gidgethub import actions
import pep517
import pep517.envbuild

from . import changelog
from . import version
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6a6a12f

Please sign in to comment.