quantumlib / OpenFermion

The electronic structure package for quantum computers.
Apache License 2.0
1.51k stars 372 forks source link

Use docker to pin dependencies #829

Closed mpharrigan closed 11 months ago

fdmalone commented 1 year ago

But yeah, this is generally a much simpler way of managing environments.

mpharrigan commented 1 year ago

ok, for better or for worse I have changed my pip-compile driver script to be able to support multiple "platforms" where each platform is a collection of environment (pinned requirement) files. Within a platform they're all consistent.

So here: the default envs/ directory has all the normal stuff with the latest cirq whereas max_compat/ envs all have cirq constrained to be 1.0.0

furthermore: the python version of the docker image is now parameterized so we generate the envs/ default envs on python 3.10 and the max_compat/ envs on python 3.8

fdmalone commented 11 months ago

@mpharrigan is this good to go?

mpharrigan commented 11 months ago

Sorry, I'll have to revisit this and give it the once-over to make sure it's good to go

fdmalone commented 11 months ago

I need to regenerate as in #843 for black. I'll close #843 in favour of this.

fdmalone commented 11 months ago

Assuming the macos runners are down for the moment.