-
Notifications
You must be signed in to change notification settings - Fork 78
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: modernize with PDM #304
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.
Don't know what to say, thanks @frostming for modernizing NebulaGraph-python, and welcome to the community! I prefer to wait till other two ongoing PR being merged to get this merged :-D. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #304 +/- ##
=======================================
Coverage 77.83% 77.83%
=======================================
Files 18 18
Lines 2423 2423
=======================================
Hits 1886 1886
Misses 537 537 ☔ View full report in Codecov by Sentry. |
@Nicole00 I think we could merge this first before the other ongoing PR? As either way will involve conflict handling, we may merge this ASAP. If it's agreed we could ask @frostming to rebase for the last time :D |
It's really an amazing pr! |
Sorry I already merged the the other pr, and now there's some conflict for this one. @frostming |
Never mind, I will resolve it. |
One concern, I saw the master has changed the minimum python version to |
Signed-off-by: Frost Ming <me@frostming.com>
Signed-off-by: Frost Ming <me@frostming.com>
Signed-off-by: Frost Ming <me@frostming.com>
Confirm with @wey-gu , we can support >=3.6. It will be ok to keep it with |
Yes, sorry for the confusion, the reason that PR 3.6~~3.8 was dropped was due to the limitation of pip-complier(only a case in dev requirement), now, with the great PDM it's easy to support them all as our production requirements list is quite small. Please let's keep 3.6+ back if possible with the magic of PDM and Ming. |
It depends on the compatibility strategy of your project. From a view at January 2024, I would recommend The only trouble is it could be hard to find a dependency resolution to work on both 3.6 and 3.12. |
@@ -27,35 +27,31 @@ jobs: | |||
|
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.
@Nicole00 we could add 3.6 3.7 3.8 back in separate PR after this being merged. :D
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.
AFAIK the setup-python
action can no longer install 3.6 easily. And some of our dev dependencies don't work on 3.6.
Lines 32 to 42 in 2eeaef4
dev = [ | |
"black==22.8.0; python_version >= \"3.7\"", | |
] | |
test = [ | |
"pytest; python_full_version >= \"3.7.1\"", | |
"pytest-cov; python_full_version >= \"3.7.1\"", | |
] | |
example = [ | |
"prettytable; python_full_version >= \"3.7.1\"", | |
"pandas; python_full_version >= \"3.7.1\"", | |
] |
That's the trouble part what I mean.
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.
Ah, got it, let's put CI with 3.9+ as is, and keep the requirement broader to defer the decision of changing minimal py.
We could make CI best effort in a slightly broader in other PR.
@Nicole00 This seems to be a good enough timing for at least dropping 3.6 :D
Thanks Ming! We could consider
Thanks a lot for this insight! |
ref: https://github.com/vesoft-inc/nebula-python/actions/runs/7442819063/job/20246850015?pr=304 If needed, we could go with |
Signed-off-by: Frost Ming <me@frostming.com>
OK, let's see if the CI still fails(likely 😢 ) |
Signed-off-by: Frost Ming <me@frostming.com>
] | ||
test = [ | ||
"pytest; python_full_version >= \"3.7.1\"", | ||
"pytest-cov; python_full_version >= \"3.7.1\"", |
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.
Maybe we have to give a version for pytest-cov?
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.
Upgraded the version
Signed-off-by: Frost Ming <me@frostming.com>
🥳🎉 cc @QingZ11 |
Signed-off-by: Frost Ming me@frostming.com
Close #303