PBR

Unknown distribution option: 'long_description_content_type'

Bug #1762494 reported by Sergey Vilgelm
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PBR
Fix Released
Undecided
Stephen Finucane

Bug Description

Hi, I would like to use description-content-type
Since version 4.0.0 this parameter should be available, but I see warning:

    (marshmallow-objects-kvxIyAxI) bash-3.2$ python setup.py --version
    /Users/svilgelm/Library/Mobile Documents/com~apple~CloudDocs/projects/marshmallow-objects/.eggs/pbr-4.0.1-py2.7.egg/pbr/core.py:120: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    1.0.11

Here is setup.py and setup.cfg files:

    (marshmallow-objects-kvxIyAxI) bash-3.2$ cat setup.py
    #!/usr/bin/env python

    import setuptools

    setuptools.setup(setup_requires=['pbr>=4.0.1'], pbr=True)
    (marshmallow-objects-kvxIyAxI) bash-3.2$ cat setup.cfg
    [metadata]
    name = marshmallow-objects
    summary = Marshmallow Objects and Models
    description-file =
        README.md
    description-content-type = text/markdown
    author = Sergey Vilgelm
    author-email = <email address hidden>
    home-page = https://github.com/SVilgelm/marshmallow-objects
    license = MIT License
    classifier =
        Environment :: Python
        Intended Audience :: Information Technology
        Intended Audience :: Developers
        License :: OSI Approved :: MIT License
        Operating System :: OS Independent
        Programming Language :: Python
        Programming Language :: Python :: 2
        Programming Language :: Python :: 3
    keywords =
        marshmallow objects
        marshmallow models
        yaml/json config parser

    [files]
    packages =
        marshmallow_objects

    [bdist_wheel]
    universal = 1

Revision history for this message
Ian Wienand (iwienand) wrote :

I noticed this too, and on further investigation I believe that it's not really solvable by PBR as things currently stand with setuptools. I've filed [1] which would allow it to be set

[1] https://github.com/pypa/setuptools/pull/1343

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to pbr (master)

Fix proposed to branch: master
Review: https://review.openstack.org/565177

Changed in pbr:
assignee: nobody → Ian Wienand (iwienand)
status: New → In Progress
Revision history for this message
Roman Horenovsky (rhproperty) wrote :

Hello, may I ask you about the progress of this fix?

Regards, Roman

Revision history for this message
Jeremy Stanley (fungi) wrote :

It's blocked waiting for setuptools maintainers to approve the pull request linked from comment #1 and then tag a release.

Changed in pbr:
assignee: Ian Wienand (iwienand) → Sergey Vilgelm (sergey.vilgelm)
Revision history for this message
Sergey Vilgelm (sergey.vilgelm) wrote :

The pull was merged on May 18, and included in release #39.2.0 on Mya 19. Since that time @Ian Wienand didn't work on the commit, so I decided to continue his work.

Changed in pbr:
assignee: Sergey Vilgelm (sergey.vilgelm) → Ian Wienand (iwienand)
Changed in pbr:
assignee: Ian Wienand (iwienand) → Stephen Finucane (stephenfinucane)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pbr (master)

Reviewed: https://review.openstack.org/565177
Committed: https://git.openstack.org/cgit/openstack-dev/pbr/commit/?id=77e75e25e383fb8319be7b46eca3d1d10136bc22
Submitter: Zuul
Branch: master

commit 77e75e25e383fb8319be7b46eca3d1d10136bc22
Author: Ian Wienand <email address hidden>
Date: Mon Apr 30 19:32:01 2018 +1000

    Special case long_description_content_type

    As described in the pypa pull request, special-case passing through
    these fields into the metadata. setuptools will maintain them.

    Change-Id: I89eb8c6d627790680a61a0a4b7490191b6e8e90c
    Closes-Bug: #1762494

Changed in pbr:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack-dev/pbr 5.0.0

This issue was fixed in the openstack-dev/pbr 5.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.