dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

`dwave install` broken on py39 after utils refactor #631

Closed randomir closed 5 months ago

randomir commented 5 months ago

Due to a change in entry_points() behavior across a few versions of python (see compatibility note in docs), we use entry_points() from importlib_metadata backport, instead of importlib.metadata.

However, during utils refactor in #628, we switched to importlib.metadata. This causes failure of get_contrib_config (used from dwave install and dwave setup CLI commands) on Python 3.9 (only!).

https://github.com/dwavesystems/dwave-cloud-client/blob/30d69493a5f3b3fdaeeda872d253d5b735ad8fa0/dwave/cloud/utils/dist.py#L36