-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add support for Python 3.12 #11262
Merged
Merged
Add support for Python 3.12 #11262
Commits on Nov 16, 2023
-
Python 3.12.0 was released on 10-02-2023, this commit marks the start of support for Python 3.12 in Qiskit. It adds the supported Pythonv ersion in the package metadata and updates the CI configuration to run test jobs on Python 3.12 and build Python 3.12 wheels on release. Fixes: Qiskit#10887
Configuration menu - View commit details
-
Copy full SHA for 2b48374 - Browse repository at this point
Copy the full SHA 2b48374View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77efef8 - Browse repository at this point
Copy the full SHA 77efef8View commit details
Commits on Nov 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3765f3b - Browse repository at this point
Copy the full SHA 3765f3bView commit details -
Avoid deprecated
datetime.datetime.utcnow()
usageIn Python 3.12 `datetime.datetime.utcnow()` has been deprecated, being replaced by: `datetime.datetime.now(datetime.UTC)`. This commit updates the usage of `utcnow()` to follow the new convention.
Configuration menu - View commit details
-
Copy full SHA for ce76670 - Browse repository at this point
Copy the full SHA ce76670View commit details -
Adjust UTC usage to support Python 3.8
The recommended alternative for using utcnow() in the deprecation warnings emitted by Python 3.12 are not compatible with Python 3.8. The datetime.UTC alias was not added to Python until Python 3.11. To ensure that the code is compatible with Python < 3.11 this commit updates all the usage of datetime.UTC to use datetime.timezone.utc instead, which is what datetime.UTC aliases to in Python >=3.11.
Configuration menu - View commit details
-
Copy full SHA for 901a3d2 - Browse repository at this point
Copy the full SHA 901a3d2View commit details
Commits on Nov 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5428a67 - Browse repository at this point
Copy the full SHA 5428a67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92573e0 - Browse repository at this point
Copy the full SHA 92573e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2d2607 - Browse repository at this point
Copy the full SHA c2d2607View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.