-
Notifications
You must be signed in to change notification settings - Fork 14
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
update setup.py to pyproject.toml #96
base: main
Are you sure you want to change the base?
Conversation
b6e63b5
to
2ca4180
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
==========================================
+ Coverage 75.12% 75.16% +0.04%
==========================================
Files 132 132
Lines 34398 34480 +82
==========================================
+ Hits 25840 25918 +78
- Misses 8558 8562 +4 ☔ View full report in Codecov by Sentry. |
Thanks for your contribution. One question though: why do you think |
Interesting, those articles contradict what I see other big projects doing, even if they keep using setuptools as build system:
Internally we also moved to pyproject by removing setup.py because we believed that was the new way to go, I didn't even know that you could keep both files in tandem. Would you like me to bring back a barebones |
Did you encounter any specific issues with setup.py or is this intended more as a cosmetic change? |
BTW yes, please don't remove setup.py completely. As a side note, the sign-off thingy should contain a real name and a real email address |
@aiven-sal I encountered issues with our build system which requires pyproject.toml be available in libraries we use. Of course we could also put some patches in our repo only, but I imagined it might be useful to more people to contribute upstream too. I've added the setup.py in the last commit. What do you mean with "real name" and "real email address"? These are the two linked to this GitHub account, I imagined those would be more useful than some generic untraceable values. |
Maybe this can clarify what I mean: https://github.com/cncf/foundation/blob/main/dco-guidelines.md#dco-and-real-names |
To put it in a different way. Imagine we just met at a conference, what name would you use to introduce yourself? That should be the name you use in signoff |
Signed-off-by: ds-cbo <[email protected]> Signed-off-by: C. Bo <[email protected]>
Signed-off-by: ds-cbo <[email protected]> Signed-off-by: C. Bo <[email protected]>
Signed-off-by: ds-cbo <[email protected]> Signed-off-by: C. Bo <[email protected]>
Signed-off-by: ds-cbo <[email protected]> Signed-off-by: C. Bo <[email protected]>
204a41e
to
c2f282a
Compare
I guess that would be it then? |
The CI has failed. Could you please fix it accordingly? It seems that:
|
Signed-off-by: ds-cbo <[email protected]>
@mkmkme I've just updated the dictionary, but as far as I know I already replaced all instances of Do you also expect me to pass the (seemingly unrelated and/or outdated?) pip-audit checks? |
@ds-cbo There's still a bunch of leftovers that you can find by https://github.com/search?q=repo%3Avalkey-io%2Fvalkey-py%20setup.py&type=code IMO all of them should be fixed. Thanks! :) |
We certainly can't merge the PR with CI failing. If you don't want to handle this, I can do it myself. |
I am also quite concerned that the direct calls to |
Signed-off-by: ds-cbo <[email protected]>
As far as I know, I've already modified those in earlier commits. See for example https://github.com/ds-cbo/valkey-py/blob/pyproject.toml/.github/workflows/install_and_test.sh#L23
Understandable. I wouldn't mind fixing it, but I don't really know your preferred course of action here. It's failing on Babel 2.8.0 even though 2.16.0 is already available and nothing seems to prevent it from being installed. Maybe I'm guessing this change happened because now we're running pip-audit including the
I still think you're looking at older CI reports, the reason the newest packaging runs were failing was because |
Pull Request check-list
Description of change
I upgraded the deprecated
setup.py
to the modernpyproject.toml
format, enabling modern installer tools.