-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Deprecate XmonDevice, Foxtail and Bristlecone. #4864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ | |
|
||
"""Classes for working with Google's Quantum Engine API.""" | ||
|
||
import sys | ||
from cirq import _compat | ||
from cirq_google import api | ||
|
||
from cirq_google._version import ( | ||
|
@@ -150,3 +152,13 @@ | |
from cirq_google.json_resolver_cache import _class_resolver_dictionary | ||
|
||
_register_resolver(_class_resolver_dictionary) | ||
|
||
__spec_copy__ = sys.modules[__name__].__spec__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to explicitly copy the spec and then pass it to sys.modules[__name__] = _compat.deprecate_attributes(
sys.modules[__name__],
{
'Bristlecone': ('v0.15', 'Bristlecone will no longer be supported.'),
'Foxtail': ('v0.15', 'Foxtail will no longer be supported.'),
},
) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for some reason this update clobbers the spec entry in |
||
sys.modules[__name__] = _compat.deprecate_attributes( | ||
sys.modules[__name__], | ||
{ | ||
'Bristlecone': ('v0.15', 'Bristlecone will no longer be supported.'), | ||
'Foxtail': ('v0.15', 'Foxtail will no longer be supported.'), | ||
}, | ||
) | ||
sys.modules[__name__].__spec__ = __spec_copy__ |
Uh oh!
There was an error while loading. Please reload this page.