-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
Migrate from setup.py to pyproject.toml #1822
Comments
Perhaps I'm missing something here but we don't use So actually adopting pyproject.toml is a separate issue and should not be confused with distools or setup.py deprecation. And considering how much work would be involved in migrating to toml files across all the python repos for Alerta I don't think we have the time or resources right now. We can target this for a future release but for now I would prefer to let others go through the pain first and we can learn from their experiences. |
Sorry if the issue in unclear - it's about consideration. There's probably more reasons for or against it than I have mentioned. No, we don't use The adoptation might belong in separate issues, I have no opinion here. I do agree that time and resources are better spent on other issues for now, but I think a migration probably have to be done sooner or later. |
For future reference... https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html |
Not sure is this relevant, but previously in COPY webhooks-custom/ /app/webhooks-custom
RUN /venv/bin/pip install /app/webhooks-custom/my-webhook This now fails with
I worked around it by What caused this change? And why am I getting this deprecation warning since I am using |
@pantelis-karamolegkos Yes, it is relevant. The change is because Python is deprecating the use of setup.py. We need to remove all references to |
Good example here ... sphinx-doc/sphinx-intl#86 |
Migrate from setup.py to pyproject.toml
In the interest of the keeping the project up-to-date, we should consider migrating from setup.py to the new standard with pyproject.toml.
Python 3.12
In Python 3.12, the distutils module will be removed (PEP 632).
Setuptools has integrated a complete copy of distutils and does not depend on the standard library. Pip has silently been replacing distutils with setuptools for a long time.
Setuptools
Starting with PEP 621, the Python community selected pyproject.toml as a standard way of specifying project metadata. Setuptools has adopted this standard and will use the information contained in this file as an input in the build process.
Setuptools discourage the use of setup.py and that the majority of the command line interfaces are (or will be) deprecated.
If compatibility with legacy builds or versions of tools that don’t support certain packaging standards (e.g. PEP 517 or PEP 660), a simple setup.py script can be added to your project, while keeping the configuration in pyproject.toml
The text was updated successfully, but these errors were encountered: