[Distutils] Package classifiers - both major and minor Python versions?
Marius Gedminas
marius at gedmin.as
Fri Jan 22 02:06:13 EST 2016
On Thu, Jan 21, 2016 at 05:53:32PM +0000, Brett Cannon wrote:
> On Thu, 21 Jan 2016 at 06:48 John Whitlock <John-Whitlock at ieee.org> wrote:
>
> > A discussion about the Python language classifiers came up in a pull
> > request [1], and I couldn't find a definite answer. The question is -
> > should a packager specify the major Python versions, minor Python versions,
> > or both?
> >
> > The Python Packaging User Guide's example [2] has both:
> >
> > # Specify the Python versions you support here. In particular, ensure
> > # that you indicate whether you support Python 2, Python 3 or both.
> > 'Programming Language :: Python :: 2',
> > 'Programming Language :: Python :: 2.6',
> > 'Programming Language :: Python :: 2.7',
> > 'Programming Language :: Python :: 3',
> > 'Programming Language :: Python :: 3.2',
> > 'Programming Language :: Python :: 3.3',
> > 'Programming Language :: Python :: 3.4',
> >
> > In the example, 'Programming Language :: Python :: 2' is a major version,
> > and 'Programming Language :: Python :: 2.7' is a minor version.
> >
> > pyroma [3], which I use as a packaging linter, has insisted on both the
> > major and minor versions since the first release in 2011 [4].
> >
> > These were added in 2008, but the announcement on this mailing list didn't
> > include guidance on usage [5]. I can't find any guidance in PEPs either.
> >
>
> You should at least do the major versions, and if you are up for
> maintaining them, then do the minor ones as well.
>
> You want the major ones to tell people whether you even support Python 3 or
> not. Various tools like caniusepython3 rely on at least the major version
> classifier existing to programmatically know about Python 3 support.
Are these tools unable to realize that supporting a particular minor
version implies support for the corresponding major version?
Marius Gedminas
--
HOST SYSTEM RESPONDING, PROBABLY UP...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160122/dc890911/attachment.sig>
More information about the Distutils-SIG
mailing list