-
Notifications
You must be signed in to change notification settings - Fork 77
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
Upgrade python minimum to 3.8 and tidy up packaging #604
Conversation
Thanks for doing this!
Did you mean |
Codecov Report
@@ Coverage Diff @@
## dev #604 +/- ##
=======================================
Coverage 79.18% 79.18%
=======================================
Files 41 41
Lines 3623 3623
=======================================
Hits 2869 2869
Misses 754 754
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
For dev development, one can do |
for more information, see https://pre-commit.ci
Okay. I've updated this to be that dev related requirements are not in |
Thanks!! We can discuss these tradeoffs (requirements-dev.txt vs setup.cfg vs ...) some other time. I like this being a narrower PR at this time, focused on the >=3.8 change. On line length, I personally like a length of 100 |
Oh, and I can't fully review this PR yet (42 files changed?! Though it looks like many of them are just line lengths). I can get to it maybe by tonight, otherwise tomorrow. |
Yea sorry for the blow up in files... that was because of line length fix by pre-commit! Other than that, looks like all tests are passing 😄 |
I ended up being able to review this now 😄 . I went through the line-length changes quickly (there are too many!). See my inline comments elsewhere. |
I have a not substantial comment to add, that the PR title should change 😁 Now it is a wayyy bigger PR than what was originally intended. |
I think this is ready to merge, right @leewujung ? |
Yeah I think this is ready to merge. It would be nice to transfer some of the detailed descriptions from here to the Contributing to echopype page, or we can have an infrastructure page. @emiliom there are some open questions you had above. Do you want those answered before merging? Or take them to another issue? |
Right, thanks! I'm not sure if they belong in a single issue. @lsetiawan could you reply to my unanswered inline comments when you have a chance? |
Sorry for the late replies! Just saw those inline comments. This setup is pretty flexible at this moment, I know there are some redundancy mainly with the requirements.txt. I can easily revert back to dynamic reading of that file. I'm simply trying to begin future proof the packaging, and I have no hard fast rule on this at the moment haha 🙈 |
Thanks. It seems tough trying to balance multiple drivers, such as future proofing vs minimizing duplicated specifications of the same information. I'm not sure what to recommend, though I personally tend to worry more about duplicated information going out of sync and causing confusion. |
I added one comment above.
I feel the same way. I guess I don't see clear advantage of having everything static in Where does the future proof come in here? |
I've put back the dynamic generation of requirements. I still kept everything about the extra plotting requirement within the |
@lsetiawan thank you for your flexibility as well as for helping us stay on top of current trends. Let's revisit the |
Overview
This PR updates the python minimum requirement to
3.8
syncing up with xarrays. This resolves #603. Also, some unneeded packages has been deleted from requirements. Thesetup.cfg
has now been filled with all the package requirements even the optional ones. Now anyrequirements-x.txt
files are pretty much redundant.