firedrakeproject / firedrake

Firedrake is an automated system for the portable solution of partial differential equations using the finite element method (FEM)
https://firedrakeproject.org
Other
496 stars 157 forks source link

firedrake-install --doi enhancement #2563

Open wence- opened 1 year ago

wence- commented 1 year ago

One problem with firedrake-install --doi is that while it captures versions of the core firedrake dependencies, it just relies on pip version resolution for everything else. One way to solve this is to diligently apply version constraints in all the requirements files. This is, however, a significant ongoing maintenance burden.

Here's some code that pokes the pypi API to allow one to say pip-from --date xxxx package to install a package from a given date. This would probably be sufficient to get working installs for older dois.

ScottMacLachlan commented 1 year ago

@wence- : the link above is dead, and my googling skills haven't been able to turn up the code that you were pointing to. Any chance you have some recollection of how you found that in the first place?

wence- commented 1 year ago

@wence- : the link above is dead, and my googling skills haven't been able to turn up the code that you were pointing to. Any chance you have some recollection of how you found that in the first place?

Twitter; via a reply to something from Brendan Dolan-Gavitt. But not detail than that. In any case, I think the idea is just to query the pypi api for packages current on a given date which you can scrape from the zenodo doi record