For simple python libraries setup.py has been discouraged for a long time in favour of pyproject.toml for exactly this reason