Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix appveyor builds #2706

Merged
merged 9 commits into from
Jan 1, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

39 changes: 39 additions & 0 deletions continuous_integration/check_wheels.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
mpenkov marked this conversation as resolved.
Show resolved Hide resolved
# -*- 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
#
mpenkov marked this conversation as resolved.
Show resolved Hide resolved
"""Print available wheels for a particular Python package."""
piskvorky marked this conversation as resolved.
Show resolved Hide resolved
import re
import sys

import requests
piskvorky marked this conversation as resolved.
Show resolved Hide resolved

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