mgedmin / strace-process-tree

Tool to help me make sense out of `strace -f` output.
https://pypi.org/project/strace-process-tree/
GNU General Public License v2.0
55 stars 3 forks source link

Replace setup.py with pyproject.toml #8

Open jtojnar opened 1 year ago

jtojnar commented 1 year ago

The former is deprecated and mypy would complain:

error: Skipping analyzing "setuptools": module is installed, but missing library stubs or py.typed marker

pyproject.toml is also significantly cleaner.

https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ https://packaging.python.org/en/latest/guides/single-sourcing-package-version/ https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html

Also moved isort config there. Zest and flake8 are currently not supported so they remain in setup.cfg. Not sure what tool bdist_wheel and metadata is for so they remain as well.

mgedmin commented 1 year ago

Zest and

Zest is not the name of a tool, it's the name of ... TBH I don't know, probably the company(?) that released a bunch of PyPI packages, one of which is zest.releaser, the tool that I use for automating certain release steps.

Not sure what tool bdist_wheel and metadata is for so they remain as well.

They're used by python setup.py bdist_wheel, which uses setuptools + wheel to build wheels for uploading to PyPI. This is deprecated and should be replaced by build.

I don't remember what bdist_wheel settings exist in setup.cfg. If there's universal = 1, it should've been dropped at the time of the Python 2.7 version drop, but I always forget about it.