-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix deprecation warning regarding setup.py and pyproject.toml #1384
Comments
In GitLab by @edgano on Aug 12, 2024, 13:53 Looking for more info about these. I found this info here: https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ What commands should be used instead?
But not sure which could be the best strategy |
I think calling I think either The error, I believe, is due to the missing But we can add a pyproject.toml and move part of the metadata, to see if the deprecation warning goes away. Then in the future we can move more things, and follow the PEP's and see which direction we need/want to follow. WDYT? |
In GitLab by @edgano on Aug 12, 2024, 14:25 A ok! |
In relation to this, we should also fix this: https://autosubmit.readthedocs.io/en/master/installation/index.html#installation The docs are still referring to the use python3 setup.py install Which won't work because it doesn't download the dependencies of Autosubmit.
Would be more appropriate. I think this should be done for v4.1.13, to avoid external user issues which are always harder to track. |
Yeah, and this is a really annoying one, because I see this warning every week, nearly every day when I |
@VindeeR I assigned us both so we can collaborate :) I think this should be fairly easy, based on How to modernize a setup.py based project? and the pyproject.toml specification |
I pushed a working first version of the file - I'm not very well versed on this type of files so it might be a rough draft, we'll see -. To test, run |
I think there's no draft pull request yet? But looking at the commit, it's looking like a normal We can remove things from Great job, Irene! |
I forgot to mention; there's a few filler values for the author and member fields; I added Daniel's info but there's some extra random people in there. Besides eventually removing these placeholders, should we add other members of the team other than Daniel? |
That may be hard to maintain. What I've seen in other projects is to use either the original creator of the project, or something like "Autosubmit Team" (so we don't have to update it when the team changes...) |
That would be a good topic for the Thursday meeting, I think. |
While reviewing @naiaraAM 's code in !459 , I created a new Micromamba env on a new laptop, and doing everything over from scratch I got this warning with Py 3.9.12 running
pip install -e .
:It's probably better that we fix this earlier, instead of waiting until they remove it which may prevent AS from working with newer versions of Python for a simple issue that can be fixed in under one hour.
The text was updated successfully, but these errors were encountered: