[Distutils] Package classifiers - both major and minor Python versions?

John Whitlock John-Whitlock at ieee.org
Thu Jan 21 09:39:46 EST 2016


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.

Thanks for your advice,
John Whitlock

[1] https://github.com/zheller/flake8-quotes/pull/14/files#r50356768
[2]
https://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#classifiers
[3] https://bitbucket.org/regebro/pyroma
[4]
https://bitbucket.org/regebro/pyroma/src/9addf825bc8fc3deaf09e724a16cb98b35c53c76/pyroma/tests.py?fileviewer=file-view-default
[5] https://mail.python.org/pipermail/distutils-sig/2008-October/010419.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160121/f8ac5eb4/attachment-0001.html>


More information about the Distutils-SIG mailing list