Refactor packaging configuration files

Ghost User
2024-10-31T12:41:22Z

A topic that has been around for a while is the way we build pypi packages.

We used `setup.py` on a lot of packages. A alternative way to build packages can be achieved with `pyproject.toml`.

[Is setup.py depricated?](https://packagin...

A topic that has been around for a while is the way we build pypi packages.

We used setup.py on a lot of packages. A alternative way to build packages can be achieved with pyproject.toml.

Is setup.py depricated?

... However, python setup.py and the use of setup.py as a command line tool are deprecated. ...

There are a lot of depricated commands that should be replaced (install, develop, sdist, bdist_wheel)

Is pyproject.toml mandatory?

While it is not technically necessary yet, it is STRONGLY RECOMMENDED Even tho a pyproject.toml is not mandatory. It's highly recommended.

Should setup.py be deleted? How to modernize a setup.py based project?

No, setup.py can exist in a modern Setuptools based project.

Django Security

python manage.py check --deploy django sonar