Skip to content

Commit

Permalink
Limit importlib_metadata in requirements (Qiskit#8828)
Browse files Browse the repository at this point in the history
`importlib_metadata` 5.0 broke `stevedore`.  Normally we would set this
pin in `constraints.txt`, but since this is critical functionality and
we may need to release before `stevedore` is fixed, we fix the problem
at the requirements level, temporarily making `importlib_metadata` a
direct requirement.
  • Loading branch information
jakelishman authored Oct 3, 2022
1 parent 2a8cf79 commit 53e215c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ tweedledum>=1.1,<2.0; platform_machine != 'arm64' or sys_platform != 'darwin'
# 1.1.1 has no wheel on M1 mac, which frequently causes problems for people.
# Better just to forbid that in those cases.
tweedledum>=1.1,<2.0,!=1.1.1; platform_machine == 'arm64' and sys_platform == 'darwin'

# Hack around stevedore being broken by importlib_metadata 5.0; we need to pin
# the requirements rather than the constraints if we need to cut a release
# before stevedore is fixed. `importlib_metadata` is not (currently) a direct
# requirement of Terra.
importlib_metadata<5.0; python_version<'3.8'

0 comments on commit 53e215c

Please sign in to comment.