Skip to content

Commit

Permalink
Merge pull request sympy#20592 from oscarbenjamin/pr_latex_filename
Browse files Browse the repository at this point in the history
maint(release): fix filename in docs build script
  • Loading branch information
oscarbenjamin authored Dec 12, 2020
2 parents c060059 + d9e4dc7 commit 9e8f62e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions release/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ def build_latex(docsdir, outputdir, version):
run('make', 'clean', cwd=latexdir, env=env)
run('make', 'all', cwd=latexdir, env=env)

filename = 'sympy-%s.pdf' % (version,)
src = join('doc', '_build', 'latex', filename)
dst = join(outputdir, filename)
srcfilename = 'sympy-%s.pdf' % (version,)
dstfilename = 'sympy-docs-pdf-%s.pdf' % (version,)
src = join('doc', '_build', 'latex', srcfilename)
dst = join(outputdir, dstfilename)
shutil.copyfile(src, dst)


Expand Down
2 changes: 1 addition & 1 deletion release/sha256.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
def main(version, outdir):
outdir = Path(outdir)
build_files = [
outdir / f'sympy-{version}.pdf',
outdir / f'sympy-{version}.tar.gz',
outdir / f'sympy-{version}-py3-none-any.whl',
outdir / f'sympy-docs-html-{version}.zip',
outdir / f'sympy-docs-pdf-{version}.pdf',
]
out = check_output(['shasum', '-a', '256'] + build_files)
out = out.decode('ascii')
Expand Down

0 comments on commit 9e8f62e

Please sign in to comment.