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

pdm list contains full license text #2538

Closed
1 task done
JohnHardy opened this issue Jan 5, 2024 · 0 comments · Fixed by #2539
Closed
1 task done

pdm list contains full license text #2538

JohnHardy opened this issue Jan 5, 2024 · 0 comments · Fixed by #2539
Labels
🐛 bug Something isn't working

Comments

@JohnHardy
Copy link
Contributor

  • I have searched the issue tracker and believe that this is not a duplicate.

The full license text sometimes appears in the output of pdm list

This is because the license file is somtimes in the package medata.

license = { file="LICENSE" } in pyproject.toml

Steps to reproduce

pdm list --fields name,version,licenses

Actual behavior

See how the full license text appears in the search export.

╭────────────────────────────┬────────────────────────────────┬───────────────────────────────────────────────────────────────────────────────╮
│ name                       │ version                        │ licenses                                                                      │
├────────────────────────────┼────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│ Arpeggio                   │ 2.0.0                          │ MIT                                                                           │
│ arrow                      │ 1.2.3                          │ Apache 2.0                                                                    │
│ attrs                      │ 23.1.0                         │ MIT License                                                                   │
│ binaryornot                │ 0.4.4                          │ BSD                                                                           │
...
│ platformdirs               │ 3.10.0                         │ MIT License                                                                   │
│ pluggy                     │ 1.2.0                          │ MIT                                                                           │
│ plumbum                    │ 1.8.2                          │ Copyright (c) 2013 Tomer Filiba ([email protected])                       │
│                            │                                │                                                                               │
│                            │                                │ Permission is hereby granted, free of charge, to any person obtaining a copy  │
│                            │                                │ of this software and associated documentation files (the "Software"), to deal │
│                            │                                │ in the Software without restriction, including without limitation the rights  │
│                            │                                │ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     │

Expected behavior

The list should only include the short form name of the license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant