You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using scikit-optimize I realized that it would be great if we could provide nightly wheels. The numpy and scipy wheels mean that we can run CI against their master, which is great for us and them.
It would be good if we could provide the same courtesy to our downsteam users.
(also I just asked cython to do the same for us, so we should set a good example ;)
I have not looked into how scipy and numpy do it, but I'd hope we can steal some of their tools.
Reacted by Tim Head, Tom Dupré la Tour, Roman Yurchak, Gael Varoquaux and Adrin Jalali
On Travis CI I imagine this could be done with a cron job on the scikit-learn repo. However,
the only way to know it's a cron job is via the TRAVIS_EVENT_TYPE env variable. And so if we build wheels depending on this variable, it means that this would interfere with the existing cron jobs cf CRON Build breaks #10074 (comment)
IIRC your issue was quite generic, along the lines of "should we replace all the assert_allclose by something better and is there actually something better that we could do".
If applicable to fix the wheels, I would be in favour of tweaking the failing tests (which is generally what we have done in the past) and leave the generic, potentially more satisfactory solution, for later.
I would be in favour of tweaking the failing tests (which is generally what we have done in the past) and leave the genric, potentially more satisfactory solution, for later.
Cool, if you're interested, I don't think anyone will be offended if you
want to finish that PR, though someone else will need to configure
Travis/Appveyor with pypi credentials, yeah?
Note that the wheelhouse-uploader (used to upload the wheels to rackspace) has built-in support for timestamping wheels with the .dev0 version extension so that pip can now which is the most recent version:
For the second option this should be pretty straightforward, everything is in place as far as I know. We just need a bash script that will make sure to use the master branch of scikit-learn when run from a travis cron job while the manually fixed tags is still respected when we prepare a stable release in a PR for instance.
From the user perspective having this uploaded to pypi is preferable, as then it's super easy to install with pip install --pre. I suppose having a workaround for the rackspace link is also not very complicated, but still it's not out of the box solution.
What I don't like about uploading nightlies to pypi is that it's keeping a large history of binaries and that feels like a waste of resources, see e.g.:
I'm also not so keen on uploading nightly wheels to PyPi. Personally, I often visit https://pypi.org/project/<project-name>/#history to see when the last releases happened for some project. Having that page mostly contain noise from nightly wheels is not great. Maybe directly suggesting devs to install nightly releases from some Rackpace container would we enough?
the pypi UI allows easy deletion of old releases,
Even if it's possible, I doubt we really want to have to deal with deleting last hundreds of releases at some points in time (with the risk of deleting actual releases)..
The proposal for PyPI upload is to upload to project scikit-learn-nightly,
not scikit-learn. So it won't litter the scikit-learn page, but I don't
think there's much loss to uploading to scipy.wheels. Either way the user
will need to be aware of their existence.
I opened a PR to add nightly builds on the scikit-learn-wheels repo. It builds for all platforms with python >= 3.6. The only platform that does not build is osx, which runs into #12644.
Activity
rth commentedon Nov 21, 2017
On Travis CI I imagine this could be done with a cron job on the scikit-learn repo. However,
TRAVIS_EVENT_TYPEenv variable. And so if we build wheels depending on this variable, it means that this would interfere with the existing cron jobs cf CRON Build breaks #10074 (comment)masterinstead of using the pinned version there?lesteve commentedon Nov 21, 2017
I don't know all the details but we should certainly do it as part as the MacPython repo. AFAIK this is what numpy and scipy do and we are already using the MacPython repo for our release wheel. Maybe this is as simple as having the necessary rights, going to https://travis-ci.org/MacPython/numpy-wheels/settings and enabling a Travis cron job to run daily on the master branch? cc @ogrisel who may know more details.
lesteve commentedon Nov 21, 2017
Quickly browsing at https://github.com/MacPython/numpy-wheels/blob/master/.travis.yml it looks like there is a bit of logic in the .travis.yml (search DAILY_COMMIT) to upload the dev wheels to a different Rackspace container.
rth commentedon Jun 28, 2018
I haven't had time to finish this.
Labeling it for v0.20 not to say that it should be included, but last time I tried to build wheels (MacPython/scikit-learn-wheels#4 and more particularly https://travis-ci.org/rth/scikit-learn-wheels/builds/334709530 ) there were a few minor test failures, that I think will also be an issue for the stable wheels, and need to be resolved before the release.
jnothman commentedon Jun 28, 2018
amueller commentedon Jun 28, 2018
hm looks like there should be an
assert_almost_equalinstead of asserting exact equality of floating point numbers, right?rth commentedon Jun 28, 2018
Yes, I opened an issue about it previously (I think) in #10562 , will try to make a PR next week unless someone makes it before...
lesteve commentedon Jun 29, 2018
IIRC your issue was quite generic, along the lines of "should we replace all the assert_allclose by something better and is there actually something better that we could do".
If applicable to fix the wheels, I would be in favour of tweaking the failing tests (which is generally what we have done in the past) and leave the generic, potentially more satisfactory solution, for later.
rth commentedon Jun 29, 2018
+1 definitely
11 remaining items
jnothman commentedon Jan 30, 2019
jnothman commentedon Jan 30, 2019
ogrisel commentedon Jan 30, 2019
I guess I am fine with either of the following options:
Note that the wheelhouse-uploader (used to upload the wheels to rackspace) has built-in support for timestamping wheels with the
.dev0version extension so that pip can now which is the most recent version:scikit_learn-0.21.dev0+20180830121050-cp37-cp37m-manylinux1_x86_64.whl
wheelhouse-uploader also takes care of getting rid of older timestamped
.dev0wheels matching the same version / platform tags.ogrisel commentedon Jan 30, 2019
For the second option this should be pretty straightforward, everything is in place as far as I know. We just need a bash script that will make sure to use the master branch of scikit-learn when run from a travis cron job while the manually fixed tags is still respected when we prepare a stable release in a PR for instance.
bsipocz commentedon Jan 30, 2019
From the user perspective having this uploaded to pypi is preferable, as then it's super easy to install with
pip install --pre. I suppose having a workaround for the rackspace link is also not very complicated, but still it's not out of the box solution.ogrisel commentedon Jan 30, 2019
The following is not too complex either:
ogrisel commentedon Jan 30, 2019
To clarify, scipy.wheels.org is the public URL of the rackspace container.
ogrisel commentedon Jan 30, 2019
What I don't like about uploading nightlies to pypi is that it's keeping a large history of binaries and that feels like a waste of resources, see e.g.:
https://pypi.org/project/tf-nightly/#history
I am not sure if there is a way to delete old pypi releases.
adrinjalali commentedon Jan 30, 2019
the pypi UI allows easy deletion of old releases, there must also be a way to clear them using their API, but I couldn't find one at a first glance.
rth commentedon Jan 30, 2019
I'm also not so keen on uploading nightly wheels to PyPi. Personally, I often visit
https://pypi.org/project/<project-name>/#historyto see when the last releases happened for some project. Having that page mostly contain noise from nightly wheels is not great. Maybe directly suggesting devs to install nightly releases from some Rackpace container would we enough?Even if it's possible, I doubt we really want to have to deal with deleting last hundreds of releases at some points in time (with the risk of deleting actual releases)..
jnothman commentedon Jan 30, 2019
bsipocz commentedon Jan 30, 2019
Just to confirm it, I'm perfectly happy with the suggestion here: #9485 (comment)
thomasjpfan commentedon Feb 18, 2019
I opened a PR to add nightly builds on the scikit-learn-wheels repo. It builds for all platforms with python >= 3.6. The only platform that does not build is osx, which runs into #12644.
thomasjpfan commentedon Feb 18, 2019
This is the PR for nightly builds: MacPython/scikit-learn-wheels#17
It builds for Python 3.6 and 3.7 on all platforms.