Skip to content

Commit

Permalink
feat(version): update version
Browse files Browse the repository at this point in the history
  • Loading branch information
philloooo committed Nov 2, 2015
1 parent 886184c commit fb4a925
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 5,245 deletions.
4 changes: 4 additions & 0 deletions bin/hook-requests.py
@@ -0,0 +1,4 @@
from hookutils import collect_data_files

# Get the cacert.pem
datas = collect_data_files('requests')
2 changes: 1 addition & 1 deletion bin/package_osx.sh
Expand Up @@ -15,7 +15,7 @@ print gdc_client.version.__version__
echo "Creating package for version ${VERSION}"

# Create binary
pyinstaller --clean --noconfirm --onefile -c gdc-client
pyinstaller --clean --additional-hooks-dir=. --noconfirm --onefile -c gdc-client

# Bundle app
APPNAME="gdc-client"
Expand Down
2 changes: 1 addition & 1 deletion bin/package_ubuntu.sh
Expand Up @@ -13,7 +13,7 @@ print gdc_client.version.__version__
""")

# Create binary
pyinstaller --clean --noconfirm --onefile -c gdc-client
pyinstaller --clean --additional-hooks-dir=. --noconfirm --onefile -c gdc-client

# Zip dist
SOURCE_DIR='dist'
Expand Down
2 changes: 1 addition & 1 deletion bin/package_windows.sh
Expand Up @@ -8,4 +8,4 @@ set -x
/c/Python27/Scripts/pip.exe install PyInstaller==2.1

# Create binary
/c/Python27/Scripts/pyinstaller -F --clean --noconfirm --onefile -c gdc-client -i ../resources/gdc_client.ico
/c/Python27/Scripts/pyinstaller -F --clean --additional-hooks-dir=. --noconfirm --onefile -c gdc-client -i ../resources/gdc_client.ico
3 changes: 2 additions & 1 deletion gdc_client/repl/__init__.py
Expand Up @@ -342,13 +342,14 @@ def _get_upload_client(self, manifest):
multipart=self.get('multipart', bool),
part_size=self.get('part_size', int),
server=self.settings['server'],
files=files, verify=self.get('verify', bool))
files=files, verify=self.get('verify', bool), manifest_name=manifest)
return client


def do_upload(self, manifest):
'''upload files given a manifest path'''
client = self._get_upload_client(manifest)
client.upload()

def do_abort(self, manifest):
'''abort a partially uploaded file'''
Expand Down
22 changes: 11 additions & 11 deletions gdc_client/upload/client.py
Expand Up @@ -138,13 +138,13 @@ def __init__(self, token, processes, server, part_size,
self.headers = {'X-Auth-Token': token}
self.manifest_name = manifest_name
self.verify = verify
if OS_WINDOWS:
try:
# this only works in executable built by pyinstaller
self.verify = os.path.join(
sys._MEIPASS, 'cacert.pem') if verify else verify
except:
print 'Using system default CA'
try:
# this only works in executable built by pyinstaller
self.verify = os.path.join(
sys._MEIPASS, 'requests', 'cacert.pem') if verify else verify
except:
print 'Using system default CA'

self.files = files
self.incompleted = deque(copy.deepcopy(self.files))
self.server = server
Expand Down Expand Up @@ -272,10 +272,10 @@ def _upload(self):

with open(self.file_path, 'rb') as f:
try:
# r = requests.put(self.url+"/_dry_run", headers=self.headers, verify=self.verify)
# if r.status_code != 200:
# print "Can't upload:{}".format(r.text)
# return
r = requests.put(self.url+"/_dry_run", headers=self.headers, verify=self.verify)
if r.status_code != 200:
print "Can't upload:{}".format(r.text)
return
self.pbar = ProgressBar(
widgets=[Percentage(), Bar()], maxval=self.file_size).start()
stream = Stream(f, self.pbar, self.file_size)
Expand Down
2 changes: 1 addition & 1 deletion gdc_client/version.py
@@ -1 +1 @@
__version__ = 'v0.2.15.2'
__version__ = 'v0.2.18.2'
5,229 changes: 0 additions & 5,229 deletions resources/cacert.pem

This file was deleted.

0 comments on commit fb4a925

Please sign in to comment.