This PR migrates package metadata from setup.py to pyproject.toml and fix pytest.yml.
1. Motivation and Context
setup.py is a bit messy.
In addition, since we now use self-hosted runners, the installed packages will not be automatically deleted from the sandbox, making pytest sometimes fail due to the leftover of previous GitHub action runs.
This PR mainly changes the package installation process.
2. Summary of the change
This PR migrates to using pyproject.toml. pytest.yml is changed accordingly for package installation.
This PR also changes the dattri installation in pytest.yml to pip install -e .[test,full], and clean up the installed dattri package after pytest.
3. What tests have been added/updated for the change?
Tested locally on my laptop by running the following:
Description
This PR migrates package metadata from setup.py to pyproject.toml and fix pytest.yml.
1. Motivation and Context
setup.py is a bit messy.
In addition, since we now use self-hosted runners, the installed packages will not be automatically deleted from the sandbox, making pytest sometimes fail due to the leftover of previous GitHub action runs.
This PR mainly changes the package installation process.
2. Summary of the change
This PR migrates to using pyproject.toml. pytest.yml is changed accordingly for package installation.
This PR also changes the dattri installation in pytest.yml to
pip install -e .[test,full]
, and clean up the installed dattri package after pytest.3. What tests have been added/updated for the change?
Tested locally on my laptop by running the following:
and all tests passed.