Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #3646 -- Don't use shell globbing in our release script #3809

Merged
merged 1 commit into from
Jul 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import absolute_import, division, print_function

import getpass
import glob
import io
import os
import subprocess
Expand Down Expand Up @@ -106,10 +107,11 @@ def release(version):
run("python", "setup.py", "sdist")
run("python", "setup.py", "sdist", "bdist_wheel", cwd="vectors/")

run(
"twine", "upload", "-s", "dist/cryptography-{0}*".format(version),
"vectors/dist/cryptography_vectors-{0}*".format(version), shell=True
packages = (
glob.glob("dist/cryptography-{0}*".format(version)) +
glob.glob("vectors/dist/cryptography_vectors-{0}*".format(version))
)
run("twine", "upload", "-s", *packages)

session = requests.Session()

Expand Down