On Sun, Feb 9, 2020, 11:03 AM Paul Moore <[email protected]> wrote:
> On Sun, 9 Feb 2020 at 14:39, Soni L. <[email protected]> wrote: > > > > Figuring out versioning is hard. PyPI should encourage semver by > > including PEP 440 version strings that you can copy and paste into > > install_requires. > > I don't understand what you mean by **PyPI** including version > strings. PyPI just publishes the data the module contains. Do you mean > the packaging documentation, or PyPA, or something? > I think they mean that instead of e.g. https://pypi.org/project/six/ just showing `pip install six`, it should also show example install_requires values. E.g. `install_requires: ['six~=1.14.0']`. Or maybe a dropdown where you select the compatibility you want and and it formats the version string. This does seem like a good way to encourage people to specify or at least think about versioned dependencies, although I wonder how many people look at pypi when specifying their dependencies in `install_requires`?
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SJSLXV3ISEYMWA5A4STKZWXOR274JT7B/ Code of Conduct: http://python.org/psf/codeofconduct/
