-
Notifications
You must be signed in to change notification settings - Fork 120
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
Feat/move to poetry #470
base: master
Are you sure you want to change the base?
Feat/move to poetry #470
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to p5py
Thank you for the PR @martynvdijke. It would be great to use tilde specification to specify the dependency. That way we can still get minor updates for those libraries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to use poetry
Thanks @martynvdijke I will review this soon! |
@martynvdijke thank you for the PR. This looks great to me, I will test this a bit more locally and merge this soon! |
@tushar5526 any update on this ? |
Hey hey @tushar5526 I guess you are busy, no worry on that any update on the PR ? |
Hey @martynvdijke ,sorry as I have not been able to find much time (lots of stuff going on rn) I will try to share feedback with you this weekend. Thank you for your patience :) |
No worries, take your time just checking in :) |
pyopengl-accelerate = "^3.1.7" | ||
pyopengl = "^3.1.6" | ||
requests = "^2.25.0" | ||
numpy = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the requirements.txt numpy is not tagged to a specific version (which is a bad practice already)
I appreciate you pinning the version, but why different versions are pinned for different python version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because numpy version 1.21 is the last version that is python3.7 compatible.
Otherwise poetry can not figure out the dependency for python 3.7 if that makes sense ?
So by pinning it like this we can ensure compatibility on python3.7 and have a more up to date version for the python versions above.
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
freetype-py = "^2.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why freetype-py
is added a direct dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
skia-python = "^87.5" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why different dependency versions are pinned for different python versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same reason as above otherwise poetry can figure out which dependencies to use for older python versions.
Since they cannot run the newest version on the older pytthon versions
@martynvdijke , again thanks for your PR and patience. I have left some comments. I think we can also remove the requirements.txt file if there are no dependency on it. |
@tushar5526 I had a look at the comments and update and explained to your comments |
Hey all,
Just found this repo while searching for the docs I saw that #464 was still hanging.
So decided to fix that, this introduced poetry as a dependency management tool.
It should also add the pylint configuration as a setting file.