PNNL-CompBio / coderdata

Automation scripts and benchmark dataset package for cancer drug prediction deep learning models.
Other
11 stars 3 forks source link

missing pyproject.toml #211

Open ymahlich opened 1 month ago

ymahlich commented 1 month ago

When installing a python package locally via pip that I actively develop on I prefer doing so via pip install -e/--editable <path-to-local-git-repo>. This allows me to being able to import the package from anywhere without having to reinstall it after every change.

setuptools / setup.py is being deprecated. pip recommends switching to a pyproject.toml.

I don't think this is necessarily urgent, but maybe something to keep in the back of our heads.

ymahlich commented 3 weeks ago

Putting together another package and making it ready for distribution I came across this: https://hatch.pypa.io/1.8/ Might be useful for creating the pyproject.toml (see more details here: https://hatch.pypa.io/1.8/intro/#existing-project). As far as I understand it it should be able to just use a preexisting setup.py and essentially translates that into a pyproject.toml which will be the way pip will be installing software in the future.

jjacobson95 commented 1 week ago

We will have to update scripts/push_to_pypi.py.py as well. This is where the package is built before pushing it to pypy in the build_all.py script