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
{{ message }}
Repository navigation
Outreach re: ipython 6.0.0rc1 breaking builds of related projects on Python 2.7 #10438
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.
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.
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.
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....
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.
Activity
nealmcb commentedon Apr 11, 2017
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.
nealmcb commentedon Apr 11, 2017
It looks offhand like pypi-data could be used to find most of the pip-installable packages that depend on IPython.
willingc commentedon Apr 11, 2017
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.
We can definitely look at the docs and README to further highlight Python 2 support and IPython 5 LTS.
Thanks for the suggestion. We typically do blog posts for major releases and mailing list posts for release candidates.
Thanks!
nealmcb commentedon Apr 11, 2017
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.
takluyver commentedon Apr 11, 2017
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.
jtratner commentedon Apr 11, 2017
Heads up that latest pip doesn't actually appear to respect the requirement identifiers for ipython pypa/setuptools#1009 - pypa/setuptools#1009 (comment)
Carreau commentedon Apr 11, 2017
yes, we'll write blog post fro the final release as @willingc pointed out
The setuptools maintainers are wrong : pypa/pip#3877
We contributed the patches upstream to pip, pypi and warehouse to support this.
takluyver commentedon Mar 10, 2018
Closing this - we've made some efforts to promote the
Requires-Pythonmetadata, and things largely seem to have shaken out.