ThatXliner / idae

A PEP 723 script runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[REQUEST]: Caching

flying-sheep opened this issue · comments

Prerequisites

  • I have searched the issues and believe that it has not already been requested (and possibly rejected)
  • I have made sure that this feature isn't possible with this project's plugin system and/or configuration; core changes must be made to make this happen.
  • I agree to follow the Code of Conduct

Feature description

Idae deletes the venv every time, which is slow. We could store environments so they can be reused as long as the dependencies stay the same.

A good way to get a hash for the set of dependencies would be Hatch’s code, which takes care of normalizing dependencies: https://github.com/pypa/hatch/blob/ce186ae60beb4b5f73ebd78fd9bd0c6d27a62a4c/src/hatch/utils/dep.py#L23-L34