Skip to content

Declare a license in the package metadata (PyPI reports the package as UNKNOWN) #40

Description

@nuest

Hi, and thanks for staticmap!

The published package (staticmap 0.5.7) bundles the Apache-2.0 LICENSE.txt, but its distribution metadata declares no license: setup.py passes neither a license= argument nor any License :: classifier (classifiers=[]). Automated license scanners (e.g. pip-licenses) therefore report the package as UNKNOWN.

Declaring the license in setup.py would fix it:

setup(
    ...,
    license="Apache-2.0",
    classifiers=[
        "License :: OSI Approved :: Apache Software License",
    ],
)

This makes the license machine-readable and lets downstream projects verify dependency licenses automatically in CI. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions