aai-institute / pyDVL

pyDVL is a library of stable implementations of algorithms for data valuation and influence function computation
https://pydvl.org
GNU Lesser General Public License v3.0
94 stars 8 forks source link

Move from `setup.py` to `pyproject.toml` #611

Open AnesBenmerzoug opened 1 month ago

AnesBenmerzoug commented 1 month ago

Now that pyproject.toml is the standard and it can almost everything that can be done with setup.py, we should consider using it exclusively. The main thing with pyproject.toml is it is declarative as opposed to setup.py which is procedural.

The switch would additionally open the door to using other tools such as hatch to (See here for a list and description of its advantages over setuptools and other tools)

At the very least we could move all the static metadata (e.g. package name, authors, description, license) from setup.py to pyproject.toml.

janosg commented 1 month ago

I like the idea. Also want to put everything into pyproject.toml in my other projects, just haven't got around yet. I have no experience with hatch but friends of mine have already switched and it looks good.