Skip to content

Commit

Permalink
Fix appveyor builds (#2706)
Browse files Browse the repository at this point in the history
* move install_wheels script

* git add continuous_integration/check_wheels.py

* bump versions for numpy and scipy

* update old requirements.txt

* add file header

* get rid of install_wheels.py hack

* fixup: update travis.yml

* Update continuous_integration/check_wheels.py

Co-Authored-By: Radim Řehůřek <me@radimrehurek.com>

* Update continuous_integration/check_wheels.py

Co-Authored-By: Radim Řehůřek <me@radimrehurek.com>

Co-authored-by: Radim Řehůřek <me@radimrehurek.com>
  • Loading branch information
mpenkov and piskvorky authored Jan 1, 2020
1 parent cc8188c commit 12897cb
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ matrix:

install:
- pip install tox
- python ci/install_wheels.py

script: tox -vv
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ install:
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""

- "python ci/install_wheels.py"

build: false

test_script:
Expand Down
30 changes: 0 additions & 30 deletions ci/install_wheels.py

This file was deleted.

12 changes: 0 additions & 12 deletions continuous_integration/appveyor/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
# Fetch numpy and scipy wheels from the sklearn rackspace wheelhouse.
# Those wheels were collected from http://www.lfd.uci.edu/~gohlke/pythonlibs/
# This is a temporary solution. As soon as numpy and scipy provide official
# wheel for windows we ca delete this --find-links line.
--find-links http://28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com/

# fix the versions of numpy to force the use of numpy and scipy to use the whl
# of the rackspace folder instead of trying to install from more recent
# source tarball published on PyPI
numpy==1.11.3
scipy==0.18.1
cython
six >= 1.5.0
smart_open >= 1.2.1
nose
wheel
wheelhouse_uploader

38 changes: 38 additions & 0 deletions continuous_integration/check_wheels.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 RaRe Technologies s.r.o.
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""Print available wheels for a particular Python package."""
import re
import sys

import requests

def to_int(value):
value = ''.join((x for x in value if x.isdigit()))
try:
return int(value)
except Exception:
return 0


def to_tuple(version):
return tuple(to_int(x) for x in version.split('.'))


def main():
project = sys.argv[1]
json = requests.get('https://pypi.org/pypi/%s/json' % project).json()
for version in sorted(json['releases'], key=to_tuple):
print(version)
wheel_packages = [
p for p in json['releases'][version]
if p['packagetype'] == 'bdist_wheel'
]
for p in wheel_packages:
print(' %(python_version)s %(filename)s' % p)


if __name__ == '__main__':
main()
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ setenv =
commands =
python --version
pip --version
python ci/install_wheels.py
python setup.py build_ext --inplace
pytest {posargs:gensim/test}

Expand Down

0 comments on commit 12897cb

Please sign in to comment.