Skip to content

Outreach re: ipython 6.0.0rc1 breaking builds of related projects on Python 2.7 #10438

Closed

Description

@nealmcb

After the ipython 6.0.0rc1 release, the python-fire project ran in to Travis CI failures for internal builds, as noted in google/python-fire#57

It would be helpful to have more readily visible or even proactive advice on how to configure setup.py, pip, and other dependency-management systems for a wide variety of use cases. E.g. how to configure a project to depend on ipython 6 for supported python versions, but version 5 otherwise.

Activity

  1. nealmcb commented on Apr 11, 2017

    @nealmcb
    Author

    The discussion in #9900 is pointed to from the README, and was indeed proactive and very helpful. But it only covers the case "I'm installing IPython itself". Extending that effort with tips for the other projects which depend on IPython (and also have naive users doing source builds) is what I'm talking about here.

    A blog post about 6.0.0rc1 and its impact would be most welcome.

  2. nealmcb commented on Apr 11, 2017

    @nealmcb
    Author

    It looks offhand like pypi-data could be used to find most of the pip-installable packages that depend on IPython.

  3. willingc commented on Apr 11, 2017

    @willingc
    Member

    Hi @nealmcb,

    I'll let @takluyver and @Carreau provide more details on the possibility of editing error messages/install messages on discontinuing 2.7 support beyond the IPython 5 LTS release.

    It would be helpful to have more readily visible or even proactive advice on how to configure setup.py, pip, and other dependency-management systems for a wide variety of use cases. E.g. how to configure a project to depend on ipython 6 for supported python versions, but version 5 otherwise.

    We can definitely look at the docs and README to further highlight Python 2 support and IPython 5 LTS.

    A blog post about 6.0.0rc1 and its impact would be most welcome.

    Thanks for the suggestion. We typically do blog posts for major releases and mailing list posts for release candidates.

    Thanks!

  4. nealmcb commented on Apr 11, 2017

    @nealmcb
    Author

    Re: my notion above that pypi-data could be used to find most of the pip-installable packages that depend on IPython....

    I'm really surprised to see that pipy's metadata doesn't include dependency information. I assumed, based on how Debian/Ubuntu package management works, that this would be a basic piece of data to require from packages in a standard way, so that tools like pypi-data could show the full dependency tree. Though I dare say it's complicated....

    I did find some advice on How to extract dependencies from a PyPi package, but it's not that easy.

  5. takluyver commented on Apr 11, 2017

    @takluyver
    Member

    Many packages are only uploaded as source packages, and the setup script can ask for different dependencies depending on the environment (e.g. require x only on Windows, or only on Python 2). So you can't have a static list of all a packages dependencies in general.

    There are better ways to handle conditional dependencies now - you can make a static list with 'environment markers' to filter which ones are used. If packages provide the information, PyPI can record dependencies (e.g. astsearch shows the dependency on astcheck). But many packages don't.

  6. jtratner commented on Apr 11, 2017

    @jtratner
    Contributor

    Heads up that latest pip doesn't actually appear to respect the requirement identifiers for ipython pypa/setuptools#1009 - pypa/setuptools#1009 (comment)

  7. Carreau commented on Apr 11, 2017

    @Carreau
    Member

    A blog post about 6.0.0rc1 and its impact would be most welcome.

    yes, we'll write blog post fro the final release as @willingc pointed out

    Heads up that latest pip doesn't actually appear to respect the requirement identifiers for ipython pypa/setuptools#1009 - pypa/setuptools#1009 (comment)

    The setuptools maintainers are wrong : pypa/pip#3877
    We contributed the patches upstream to pip, pypi and warehouse to support this.

  8. takluyver commented on Mar 10, 2018

    @takluyver
    Member

    Closing this - we've made some efforts to promote the Requires-Python metadata, and things largely seem to have shaken out.

  9. added this to the 6.0 milestone on Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions