Skip to content

Add Python 3.7 option #9815

Closed
Closed

Description

@Harmon758

Now that Python 3.7.0 has been released.

The current workaround seems to be adding it to the build matrix.include configuration using xenial in .travis.yml:

# Existing Python versions
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
  include:
    - python: 3.7
      dist: xenial
      sudo: true

or alternatively:

matrix:
  include:
    - python: 2.7
    - python: 3.4
    - python: 3.5
    - python: 3.6
    - python: 3.7
      dist: xenial
      sudo: true

Activity

  1. webknjaz commented on Jun 28, 2018

    @webknjaz

    FWIW pyenv already updated it

  2. hugovk commented on Jun 28, 2018

    @hugovk

    See also #9069.

  3. tomato42 commented on Jun 28, 2018

    @tomato42

    Note: There is a 3.7-dev version of python that can be used to run code in Python 3.7-like environment

  4. mbeacom commented on Jun 28, 2018

    @mbeacom

    @tomato42 Sadly, the 3.7-dev is using a fairly dated beta release that doesn't reflect the RC/stable 3.7.

  5. ssbarnea commented on Jul 1, 2018

    @ssbarnea

    Apparently this is what happens when you try to install python 3.7:

    3.7 is not installed; attempting download
    Downloading archive: https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/python-3.7.tar.bz2
    $ curl -sSf -o python-3.7.tar.bz2 ${archive_url}
    curl: (22) The requested URL returned error: 403 Forbidden
    Unable to download 3.7 archive. The archive may not exist. Please consider a different version.
    
  6. added a commit that references this issue on Jul 1, 2018
  7. webknjaz commented on Jul 1, 2018

    @webknjaz

    @BanzaiMan hi, could you please shed some light on whether to expect Python 3.7.0 stable in Travis CI anytime soon? A lot of people really depend on it (https://twitter.com/pfreixes/status/1012654620634767365, HypothesisWorks/hypothesis#1148 (comment))

  8. codingjoe commented on Jul 2, 2018

    @codingjoe

    Honestly for now the saves bet is docker 😕

  9. webknjaz commented on Jul 2, 2018

    @webknjaz

    They didn't merge it either: docker-library/python#297.
    Well, there's manylinux1 image, which ships 3.7, but it has a different purpose.

  10. joepvd commented on Jul 2, 2018

    @joepvd

    With the following snippet, you can use Python 3.7 in your builds:

    language: python
    python: 3.7
    dist: xenial
    sudo: true
    
  11. webknjaz commented on Jul 2, 2018

    @webknjaz

    BTW, I was able to build it under 14.04 as well.

  12. jmsv commented on Jul 2, 2018

    @jmsv

    @joepvd As mentioned here, that snippet breaks Python 3.4 support. Is there any way to use both?

  13. 194 remaining items

  14. added a commit that references this issue on Sep 30, 2018
  15. j3mdamas commented on Oct 1, 2018

    @j3mdamas

    Hi,

    What's the status of Python3.7 on Travis?

    I've just tried to add it to our matrix and Travis gives me (https://travis-ci.org/Acellera/htmd/jobs/435526767):

    3.7 is not installed; attempting download
    Downloading archive: https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/python-3.7.tar.bz2
    $ curl -sSf -o python-3.7.tar.bz2 ${archive_url}
    curl: (22) The requested URL returned error: 403 Forbidden
    Unable to download 3.7 archive. The archi
    
  16. mgedmin commented on Oct 1, 2018

    @mgedmin

    @j3mdamas: it works if you add dist: xenial and sudo: yes to the Python 3.7 job, like you see in the examples at the top of this page.

  17. j3mdamas commented on Oct 1, 2018

    @j3mdamas

    Oh, OK, thanks @mgedmin. We are using precise. I'll try xenial.

  18. duboviy commented on Oct 2, 2018

    @duboviy

    Hello,

    What's the status of fixing Python3.7 on Travis?
    We'd like to use it without dist: xenial and sudo: yes workaround.

  19. michael-k commented on Oct 2, 2018

    @michael-k

    @duboviy They announced that this is the “official” workaround two days ago: #9069 (comment)
    This reduces the chances of getting rid of sudo: yes/required soon. Since Python 3.7 requires OpenSSL 1.0.2+, we can only get rid of dist: xenial when xenial (or later) became the default.

  20. duboviy commented on Oct 2, 2018

    @duboviy

    @michael-k Thanks a lot for the update

  21. locked and limited conversation to collaborators on Oct 2, 2018
  22. BanzaiMan commented on Nov 14, 2018

    @BanzaiMan
    Contributor

    We've announced Xenial availability.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions