old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  """
  release.py
  Retrieve latest compressed wheels from GitHub
  
  
  Created by Stephan Hügel on 2016-06-19
  """
  
  import io
  import tarfile
  import zipfile
  import requests
  from subprocess import check_output
  
  path = 'dist/'
  url = "https://github.com/urschrei/pypolyline/releases/download/{tag}/pypolyline-{tag}-{target}.{extension}"
  # get latest tag
  tag = check_output(["git", "describe", "--abbrev=0"]).strip()
  
  releases = [
  {
      'tag': tag,
      'target': 'x86_64-apple-darwin-cp27',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-apple-darwin-cp35',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-unknown-linux-gnu',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-pc-windows-gnu-cp27',
      'extension': 'zip'
      },
  {
      'tag': tag,
      'target': 'i686-pc-windows-gnu-cp27',
      'extension': 'zip'
      },
  {
      'tag': tag,
      'target': 'x86_64-pc-windows-gnu-cp34',
      'extension': 'zip'
      }
  ]
  for release in releases:
      built = url.format(**release)
      retrieved = requests.get(built, stream=True)
      # don't continue if something's wrong
      retrieved.raise_for_status()
      content = retrieved.content
      so = io.BytesIO(content)
      if release.get('extension') == 'zip':
          raw_zip = zipfile.ZipFile(so)
          raw_zip.extractall(path)
      else:
          tar = tarfile.open(mode="r:gz", fileobj=so)
          tar.extractall(path)
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  """
  release.py
  Retrieve latest compressed wheels from GitHub
  
  
  Created by Stephan Hügel on 2016-06-19
  """
  
  import io
  import tarfile
  import zipfile
  import requests
  from subprocess import check_output
  
  path = 'dist/'
  url = "https://github.com/urschrei/pypolyline/releases/download/{tag}/pypolyline-{tag}-{target}.{extension}"
  # get latest tag
  tag = check_output(["git", "describe", "--abbrev=0"]).strip()
  
  releases = [
  {
      'tag': tag,
      'target': 'x86_64-apple-darwin-cp27',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-apple-darwin-cp36',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-unknown-linux-gnu',
      'extension': 'tar.gz'
      },
  {
      'tag': tag,
      'target': 'x86_64-pc-windows-gnu-cp27',
      'extension': 'zip'
      },
  {
      'tag': tag,
      'target': 'i686-pc-windows-gnu-cp27',
      'extension': 'zip'
      },
  {
      'tag': tag,
      'target': 'x86_64-pc-windows-gnu-cp34',
      'extension': 'zip'
      }
  ]
  for release in releases:
      built = url.format(**release)
      retrieved = requests.get(built, stream=True)
      # don't continue if something's wrong
      retrieved.raise_for_status()
      content = retrieved.content
      so = io.BytesIO(content)
      if release.get('extension') == 'zip':
          raw_zip = zipfile.ZipFile(so)
          raw_zip.extractall(path)
      else:
          tar = tarfile.open(mode="r:gz", fileobj=so)
          tar.extractall(path)
  
subject: Use 3.6 for releases