badges / pypipins

Badges for your site to display download totals, latest version using PyPI
http://pypip.in
MIT License
78 stars 45 forks source link

Fallback on license field #10

Closed coldfix closed 10 years ago

coldfix commented 10 years ago

On PyPI one can only use well-known licenses in the classifier fields. The field 'license' is a usefull fallback to lookup the license name in case no classifier is available.

kura commented 10 years ago

I did think about doing this myself, but then I found people actually blob the whole license in this field, I personally would like to see this field primary (so mine just says MIT instead of MIT License). How about setting it as primary field and forcing a length check + fallback to classifier?

coldfix commented 10 years ago

Oh, I didn't think about this. What length would you suggest? Maybe a check for newlines would be less arbitrary and also prevent this sort of thing.

kura commented 10 years ago

Newline check sounds good.

coldfix commented 10 years ago

Done.