MomentsLD / moments

MIT License
10 stars 3 forks source link

move package setup from setup.py to pyproject.toml #169

Closed molpopgen closed 7 months ago

molpopgen commented 7 months ago

Update the package configuration to current Python "standards":

molpopgen commented 7 months ago

Need to look into the cause of these two messages during the Ubuntu CI:

 ImportError while trying to load entry-point bdist_mpkg: cannot import name 'Plist' from 'plistlib' (/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/plistlib.py)
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
molpopgen commented 7 months ago

If this PR is merged, then the docs will want to remove mentions of python setup.py because any given env may not be ready for it.

For example, to make an editable/development install/build:

python setup.py build_ext -i

becomes

python -m pip install -e .

And python setup.py bdist_wheel would probably be replaced with python -m build -w . (which requires python -m pip install build).

Etc..

apragsdale commented 7 months ago

Thanks @molpopgen - this is really helpful!