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

pip show pillow shows the licence as UNKNOWN #3938

Closed
GadgetSteve opened this issue Jul 2, 2019 · 10 comments
Closed

pip show pillow shows the licence as UNKNOWN #3938

GadgetSteve opened this issue Jul 2, 2019 · 10 comments

Comments

@GadgetSteve
Copy link

GadgetSteve commented Jul 2, 2019

What did you do?

pip show Pillow
look for Licence

What did you expect to happen?

Recognisable Licence

What actually happened?

Currently pip show pillow shows the licence as UNKNOWN.

What are your OS, Python and Pillow versions?

  • OS: Win 7/10 32/64 expect all
  • Python: 2.7, 3.5, 3.6, 3.7
  • Pillow: 6.0.0

I believe that adding a licence entry to setup.py would resolve this - it would remove the step of visiting the repository to check the licence type for those that have to worry about such things.

@radarhere radarhere changed the title Currently pip show locket shows the licence as UNKNOWN. Currently pip show locket shows the licence as UNKNOWN Jul 2, 2019
@radarhere radarhere changed the title Currently pip show locket shows the licence as UNKNOWN pip show locket shows the licence as UNKNOWN Jul 2, 2019
@hugovk hugovk changed the title pip show locket shows the licence as UNKNOWN pip show pillow shows the licence as UNKNOWN Jul 2, 2019
@hugovk
Copy link
Member

hugovk commented Jul 2, 2019

PR #3752 updated the licence in classifiers from "License :: Other/Proprietary License", to "License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)".

It also removed the license parameter due, because:

Maybe pip isn't recognising HPND in the Trove classifier?

@aclark4life
Copy link
Member

@GadgetSteve makes a good point, we've somehow avoided adding license to setup.py 😄

@hugovk
Copy link
Member

hugovk commented Jul 2, 2019

These suggest license= shouldn't be used when there's a license in the Trove classifiers=:

@aclark4life
Copy link
Member

@hugovk I'd still add it, because I get the feeling other people haven't gotten the memo… at least until we can rule out the pip thing.

@aclark4life
Copy link
Member

E.g.


license = "License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)"

or

license = "Historical Permission Notice and Disclaimer (HPND)"

or

license = "HPND"

Just to populate that field with something and see what happens.

@GadgetSteve
Copy link
Author

Or even "See classifier in pip show -v" would do the job.

aclark4life added a commit that referenced this issue Jul 3, 2019
Also update author name and email
@aclark4life
Copy link
Member

When in doubt, copy someone else 😄 e.g. https://github.com/django/django/blob/master/setup.py

@hugovk
Copy link
Member

hugovk commented Jul 3, 2019

Yeah, let's add license=.

And in general, if pip show shows License: UNKNOWN, then pip show -v is a good tip to see if there's a licence in the classifiers, to avoid visiting the repo.

$ pip show pillow
Name: Pillow
Version: 6.1.0
Summary: Python Imaging Library (Fork)
Home-page: http://python-pillow.org
Author: Alex Clark (Fork Author)
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.7/site-packages
Requires:
Required-by:
$ pip show pillow -v
Name: Pillow
Version: 6.1.0
Summary: Python Imaging Library (Fork)
Home-page: http://python-pillow.org
Author: Alex Clark (Fork Author)
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.7/site-packages
Requires:
Required-by:
Metadata-Version: 2.1
Installer: pip
Classifiers:
  Development Status :: 6 - Mature
  License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.5
  Programming Language :: Python :: 3.6
  Programming Language :: Python :: 3.7
  Programming Language :: Python :: Implementation :: CPython
  Programming Language :: Python :: Implementation :: PyPy
  Topic :: Multimedia :: Graphics
  Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
  Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
  Topic :: Multimedia :: Graphics :: Graphics Conversion
  Topic :: Multimedia :: Graphics :: Viewers
Entry-points:

I reported this to pip here: pypa/pip#6677.

aclark4life added a commit that referenced this issue Jul 3, 2019
@radarhere
Copy link
Member

#3943 has now been merged.

@hugovk
Copy link
Member

hugovk commented Jul 3, 2019

Thanks for the report and fix!

@hugovk hugovk closed this as completed Jul 3, 2019
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

4 participants