Skip to content

Support package_data with empty key and multiple values #61

@hugovk

Description

@hugovk

Given setup.py:

from setuptools import setup

setup(package_data={"": ["LICENSE", "NOTICE"]})

Run:

$ setup-py-upgrade .
./setup.py and ./setup.cfg written!

Produces setup.cfg:

[options.package_data]
 =
    LICENSE
    NOTICE

Expected:

[options.package_data]
* =
    LICENSE
    NOTICE

This is similar to #4 (fixed by PR #5), and the simple case still works; this setup.py:

from setuptools import setup

setup(package_data={"": ["LICENSE"]})

Correctly produces this setup.cfg:

[options.package_data]
* =
    LICENSE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions