Skip to content

Provide nightly wheels? #9485

Closed
Closed

Description

@amueller

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.

Activity

  1. rth commented on Nov 21, 2017

    @rth
    Member

    On Travis CI I imagine this could be done with a cron job on the scikit-learn repo. However,

  2. lesteve commented on Nov 21, 2017

    @lesteve
    Member

    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.

  3. lesteve commented on Nov 21, 2017

    @lesteve
    Member

    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.

  4. rth commented on Jun 28, 2018

    @rth
    Member

    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.

  5. added this to the 0.20 milestone on Jun 28, 2018
  6. jnothman commented on Jun 28, 2018

    @jnothman
    Member
  7. amueller commented on Jun 28, 2018

    @amueller
    MemberAuthor

    hm looks like there should be an assert_almost_equal instead of asserting exact equality of floating point numbers, right?

  8. rth commented on Jun 28, 2018

    @rth
    Member

    hm looks like there should be an assert_almost_equal instead of asserting exact equality of floating point numbers, right?

    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...

  9. lesteve commented on Jun 29, 2018

    @lesteve
    Member

    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.

  10. rth commented on Jun 29, 2018

    @rth
    Member

    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.

    +1 definitely

  11. 11 remaining items

  12. jnothman commented on Jan 30, 2019

    @jnothman
    Member
  13. jnothman commented on Jan 30, 2019

    @jnothman
    Member
  14. ogrisel commented on Jan 30, 2019

    @ogrisel
    Member

    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 .dev0 version 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 .dev0 wheels matching the same version / platform tags.

  15. ogrisel commented on Jan 30, 2019

    @ogrisel
    Member

    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.

  16. bsipocz commented on Jan 30, 2019

    @bsipocz
    Contributor

    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.

  17. ogrisel commented on Jan 30, 2019

    @ogrisel
    Member

    The following is not too complex either:

    pip install --pre -f https://scipy.wheels.org scikit-learn
    
  18. ogrisel commented on Jan 30, 2019

    @ogrisel
    Member

    To clarify, scipy.wheels.org is the public URL of the rackspace container.

  19. ogrisel commented on Jan 30, 2019

    @ogrisel
    Member

    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.

  20. adrinjalali commented on Jan 30, 2019

    @adrinjalali
    Member

    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.

  21. rth commented on Jan 30, 2019

    @rth
    Member

    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)..

  22. jnothman commented on Jan 30, 2019

    @jnothman
    Member
  23. bsipocz commented on Jan 30, 2019

    @bsipocz
    Contributor

    Just to confirm it, I'm perfectly happy with the suggestion here: #9485 (comment)

  24. thomasjpfan commented on Feb 18, 2019

    @thomasjpfan
    Member

    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.

  25. thomasjpfan commented on Feb 18, 2019

    @thomasjpfan
    Member

    This is the PR for nightly builds: MacPython/scikit-learn-wheels#17

    It builds for Python 3.6 and 3.7 on all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions