Revert OS X / Windows changes for PyPI packages

This commit is contained in:
Florian Bruhin 2017-02-09 00:46:11 +01:00
parent 601110761d
commit c0c636c3eb
3 changed files with 17 additions and 39 deletions

View File

@ -21,20 +21,9 @@ matrix:
- os: linux
env: DOCKER=ubuntu-xenial
services: docker
- os: linux
language: python
python: 3.5
env: TESTENV=py35-pyqt571
- os: linux
language: python
python: 3.6
env: TESTENV=py36-pyqt571
- os: osx
env: TESTENV=py36 OSX=elcapitan
osx_image: xcode7.3
- os: osx
env: TESTENV=py36-pyqt571 OSX=elcapitan
osx_image: xcode7.3
# https://github.com/qutebrowser/qutebrowser/issues/2013
# - os: osx
# env: TESTENV=py35 OSX=yosemite

View File

@ -28,7 +28,6 @@ CI machines.
from __future__ import print_function
import os
import time
import subprocess
import urllib
@ -45,26 +44,22 @@ def pip_install(pkg):
pkg])
using_pypi = '-pyqt' in os.environ['TESTENV']
print("Getting PyQt5...")
qt_version = '5.5.1'
pyqt_version = '5.5.1'
pyqt_url = ('https://www.qutebrowser.org/pyqt/'
'PyQt5-{}-gpl-Py3.4-Qt{}-x32.exe'.format(
pyqt_version, qt_version))
try:
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
except (OSError, IOError):
print("Downloading PyQt failed, trying again in 10 seconds...")
time.sleep(10)
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
if not using_pypi:
print("Getting PyQt5...")
qt_version = '5.5.1'
pyqt_version = '5.5.1'
pyqt_url = ('https://www.qutebrowser.org/pyqt/'
'PyQt5-{}-gpl-Py3.4-Qt{}-x32.exe'.format(
pyqt_version, qt_version))
try:
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
except (OSError, IOError):
print("Downloading PyQt failed, trying again in 10 seconds...")
time.sleep(10)
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
print("Installing PyQt5...")
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
print("Installing PyQt5...")
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
print("Installing tox")
pip_install('pip')
@ -73,10 +68,5 @@ pip_install(r'-rmisc\requirements\requirements-tox.txt')
print("Linking Python...")
with open(r'C:\Windows\system32\python3.bat', 'w') as f:
f.write(r'@C:\Python34\python %*')
with open(r'C:\Windows\system32\python3.5.bat', 'w') as f:
f.write(r'@C:\Python35\python %*')
with open(r'C:\Windows\system32\python3.6.bat', 'w') as f:
f.write(r'@C:\Python36\python %*')
if not using_pypi:
check_setup(r'C:\Python34\python')
check_setup(r'C:\Python34\python')

View File

@ -93,13 +93,12 @@ elif [[ $TRAVIS_OS_NAME == osx ]]; then
sudo -H python get-pip.py
brew --version
brew_install python3
[[ $TESTENV != *-pyqt* ]] && brew_install qt5 pyqt5 && check_pyqt
brew_install python3 qt5 pyqt5
pip_install -r misc/requirements/requirements-tox.txt
pip --version
tox --version
check_pyqt
exit 0
fi