-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Confusion getting PIL / Pillow version string #3082
Comments
@gnbl A fork, by definition, is confusing. We're open to considering any specific changes you suggest to make Pillow versioning less confusing (preferably in the form of a pull request!) As far as I know, it's possible we could drop the 1.1.7 at some point. At least, I can't think of any specific reason why we couldn't do that… |
@aclark4life And there I thought you would be happy if someone took the time to point out an issue (admittedly less pressing) in your project ("All contributions are welcome."). I also thought I was quite specific and that potential minimum required changes to dust off the docstrings were obvious. I've messed with your code a little, but that is on Changes:
Let me know if this would work for you and I'll be glad to create a pull-request. The changes would then produce:
( |
The right place is
PIL.VERSION (not PIL.version) was there before forking, so we should pretend to be compliant.
You are right,
I believe it should be renamed to |
@homm Fixed my typo in the OP. Was not sure where this would fit into the docs, so I did not proceed. The If the |
We're happy for both issues and pull requests! PRs are good to get the conversation going and also you don't need to worry about testing locally as the CIs will do it for us. :) In general, master...gnbl:gnbl_version_doc looks like a step in the right direction to clarify the confusion. The reason for version.py is to have a single source of truth for the Pillow version, so we don't need to update both setup.py and Image.py when making a release (https://packaging.python.org/guides/single-sourcing-package-version/). So I'd keep
Let's revisit this. Is there any point people reporting things back upstream to https://bitbucket.org/effbot/pil-2009-raclette/issues? Also, do we still need to report 1.1.7 as the PIL version? I don't think we really care about it at this point and can't think of a great reason to keep it as 1.1.7. It's extremely unlikely at this point there'll be a 1.1.8, and there's been many here changes in the past 10 years. Should we put the current Pillow version in We could even clean up and have a single version variable (eg. ditch |
My suggestion (without documentation): #3083 |
@gnbl Definitely happy to have this issue addressed! Thanks all |
IIRC, there were tests for some package out there that was relying on the PIL 1.1.7 version. Removing/changing that at this point should be considered a major change. The version submodule is an implementation detail, it exists solely to provide a side-effect free simple import of the version number at build time so that we can have the one source of truth for the python and c code. |
@gnbl Do you think this fix is enough? |
@homm Thanks for the quick work on this! It's never enough ;-) |
There's been several things done, here's a final PR to close this that updates some docs: #3218. |
I was trying to figure out which version of pillow (PIL) is installed, and stumbled on this:
Others also have trouble finding it: https://stackoverflow.com/questions/44739775/how-to-get-python-pil-version
Source files:
The text was updated successfully, but these errors were encountered: