enthought / comtypes

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
Other
290 stars 96 forks source link

Adopt declarative config (setup.cfg or pyproject.toml) #555

Closed jaraco closed 3 months ago

jaraco commented 3 months ago

I am also aware that it is not recommended to have a large amount of code written in setup.py as it is now. I confess that I do not know much how to properly replace (or abolish) things like class test(Command) and class post_install(install) when adopting more modern ways such as pyproject.toml or setup.cfg.

Originally posted by @junkmd in https://github.com/enthought/comtypes/issues/216#issuecomment-2154897586

jaraco commented 3 months ago

We can incrementally move metadata from setup.py to setup.cfg and decide if the remaining features in setup.py are needed. We can also use this as an opportunity to modernize other packaging concerns (like declaring the non-legacy setuptools backend).