4 ms·
Can I have it find the requirements as of a specific date? If I find a script/notebook/project with no requirements.txt, I usually know when it was created. Be
by remram 2y ago
Can I have it find the requirements as of a specific date?
If I find a script/notebook/project with no requirements.txt, I usually know when it was created. Being able to get the versions that were selected back then on the author's machine would be great for reproducibility.
- 0cf8612b2e1e 2y agoI have never realized until this moment that I want such a tool. Ideally, you would never find yourself in this position, but alas.
- matrss 2y agoFor the future, please pick a package manager that can give you a lock file alongside your code, so that you have a definitive record of the dependencies. Even if you have all versions as of the time of the last modification to the code, you don't know if the dependency resolution happened at that point in time, or if the environment was set up years prior and never updated. Nevertheless, this is what you are looking for: https://pypi.org/project/pypi-timemachine/ https://pypi.org/project/pypi-timemachine/
- remram 2y agoWhen I said "the author" I was not trying to mean myself. Agreed that in a perfect world I would never need this, but...
- d0mine 2y agoSee whether “exclude-newer” uv option might help if you’ve inherited a script without a dependencies lock file https://docs.astral.sh/uv/guides/scripts/#improving-reproducibility https://docs.astral.sh/uv/guides/scripts/#improving-reproduc...
- oprypin 2y agouv pip compile --exclude-newer=2019-12-02 https://docs.astral.sh/uv/pip/compile/ https://docs.astral.sh/uv/pip/compile/ • https://docs.astral.sh/uv/reference/cli/#uv-pip-compile https://docs.astral.sh/uv/reference/cli/#uv-pip-compile
- remram 2y agoThis is great!