Why don't classifiers for my Python package appear in test PyPI?

I am learning how to publish a Python package following the guidelines in the Python Packaging User Guide . I created a simple setup.pyexample based on the Basic Use section of the setuptools documentation:

from setuptools import setup, find_packages

setup(
    name="HelloWorld",
    version="0.1",
    packages=find_packages(),

    # metadata for upload to PyPI
    author="Me",
    author_email="me@example.com",
    description="This is an Example Package",
    url = "http://example.com/HelloWorld/",
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Python Software Foundation License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
    ],
)

I built the source distribution, registered the HelloWorld package on the PyPI test site and uploaded the package tarball to the Test PyPI site using twine. However, classifiers do not appear on the package page in Test PyPI. Also, they are not in the PKG-INFO release:

# https://testpypi.python.org/pypi?name=HelloWorld&version=0.1&:action=display_pkginfo

Metadata-Version: 1.1
Name: HelloWorld
Version: 0.1
Author: Me
Author-email: me at example com
Home-page: http://example.com/HelloWorld/
Summary: This is an Example Package
Platform: UNKNOWN
+4
source share
1 answer

, PKG-INFO, setup.py sdist:

$ cat HelloWorld.egg-info/PKG-INFO

Metadata-Version: 1.0
Name: HelloWorld
Version: 0.1
Summary: This is an Example Package
Home-page: http://example.com/HelloWorld/
Author: Me
Author-email: me@example.com
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Python Software Foundation License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2

, 1.0 (PEP 241), 1.1 (PEP 314). , setuptools (6.0.2).

Python. OS X 10.8 (Mountain Lion), Python 2.7.2, SO answer. , ​​ 2.7.3. , , - provides, requires, obsoletes - setup. , setup:

setup(
    name="HelloWorld",
    version="0.2",
    # ...
    provides=['hours.of.debugging.fun'],
)

PKG-INFO 1.1, Test PyPI.

+6

All Articles