summaryrefslogtreecommitdiff
path: root/scripts/upload-old-releases-as-zip.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-11-17 17:21:39 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-11-17 17:21:39 -0500
commitfb4e16dd7217067b72a54e35f146c1257f4df2de (patch)
tree0088202a4ea222d69b7c787e82c702d4e2c3cc25 /scripts/upload-old-releases-as-zip.py
parente78b2a6ef713500e112e817652149f45826c26ca (diff)
downloadpython-setuptools-bitbucket-fb4e16dd7217067b72a54e35f146c1257f4df2de.tar.gz
Use a local path rather than a tempdir that never gets cleaned up.
Diffstat (limited to 'scripts/upload-old-releases-as-zip.py')
-rw-r--r--scripts/upload-old-releases-as-zip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upload-old-releases-as-zip.py b/scripts/upload-old-releases-as-zip.py
index c4b1bfb5..38cfcd55 100644
--- a/scripts/upload-old-releases-as-zip.py
+++ b/scripts/upload-old-releases-as-zip.py
@@ -13,7 +13,6 @@ import json
import os
import shutil
import tarfile
-import tempfile
import codecs
import urllib.request
import urllib.parse
@@ -33,7 +32,8 @@ class SetuptoolsOldReleasesWithoutZip:
"""docstring for SetuptoolsOldReleases"""
def __init__(self):
- self.dirpath = tempfile.mkdtemp(prefix=DISTRIBUTION)
+ self.dirpath = './dist'
+ os.makedirs(self.dirpath, exist_ok=True)
print("Downloading %s releases..." % DISTRIBUTION)
print("All releases will be downloaded to %s" % self.dirpath)
self.data_json_setuptools = self.get_json_data(DISTRIBUTION)