Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensing metadata is very long #104

Closed
hyandell opened this issue Nov 7, 2022 · 7 comments
Closed

Licensing metadata is very long #104

hyandell opened this issue Nov 7, 2022 · 7 comments

Comments

@hyandell
Copy link

hyandell commented Nov 7, 2022

Hi platformdirs folk,

I noticed on https://pypi.org/project/platformdirs/ that the licensing metadata section of the package is including the full license. I'm not sure if that was intended; it flagged for me on a script that was expecting something more like "MIT" or "MIT License".

@ofek
Copy link
Contributor

ofek commented Nov 7, 2022

Broke in #92 (see https://pypi.org/project/platformdirs/2.5.2/)

Hatchling produces a less verbose license section on PyPI because until they support PEP 639 the rendering is not what one may think. It's actually "License: {license_classifier.split(' :: ')[-1]} ({license['text']})"

@gaborbernat
Copy link
Contributor

@ofek so how do I fix it? 😆

@ofek
Copy link
Contributor

ofek commented Nov 7, 2022

go back to license = "MIT"

@gaborbernat
Copy link
Contributor

      ValueError: invalid pyproject.toml config: `project.license`.
      configuration error: `project.license` must be valid exactly by one definition (2 matches found):
      
          - keys:
              'file': {type: string}
            required: ['file']
          - keys:
              'text': {type: string}
            required: ['text']

seems pypy setup triggers setuptools that runs its check automatically and fails with this 🤦 once making your suggested change. Ah setuptools what a mess!

@ofek
Copy link
Contributor

ofek commented Nov 8, 2022

when is setuptools triggered? pypy works fine in other ci

@gaborbernat
Copy link
Contributor

@gaborbernat
Copy link
Contributor

Fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants