Skip to content

Commit

Permalink
Added shell to deploy script
Browse files Browse the repository at this point in the history
This will resolve issues on UNIX systems with the run() command calling a single string
  • Loading branch information
max3-2 authored and john-hen committed Feb 9, 2021
1 parent 991c69c commit 9c3f539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

root = Path(__file__).absolute().parent.parent

process = run('sphinx-build docs deploy/docs', cwd=root)
process = run('sphinx-build docs deploy/docs', cwd=root, shell=True)
if process.returncode:
raise RuntimeError('Error while building documentation.')

process = run('flit build --format wheel', cwd=root)
process = run('flit build --format wheel', cwd=root, shell=True)
if process.returncode:
raise RuntimeError('Error while building wheel.')
move(root/'dist', root/'deploy'/'dist')

0 comments on commit 9c3f539

Please sign in to comment.