Skip to content
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 (backport #11262) #11311

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 23, 2023

This is an automatic backport of pull request #11262 done by Mergify.
Cherry-pick of 5a5c9e3 has failed:

On branch mergify/bp/stable/0.45/pr-11262
Your branch is up to date with 'origin/stable/0.45'.

You are currently cherry-picking commit 5a5c9e33f.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   .github/workflows/wheels.yml
	modified:   azure-pipelines.yml
	modified:   constraints.txt
	modified:   qiskit/providers/fake_provider/fake_backend_v2.py
	modified:   qiskit/providers/fake_provider/fake_mumbai_v2.py
	modified:   qiskit/transpiler/target.py
	modified:   qiskit_pkg/setup.py
	new file:   releasenotes/notes/add-py312-support-7077426af34ac5da.yaml
	modified:   setup.py
	modified:   test/python/providers/test_fake_backends.py
	modified:   tox.ini

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   requirements.txt

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

@mergify mergify bot requested review from jyu00 and a team as code owners November 23, 2023 19:30
@mergify mergify bot added the conflicts used by mergify when there are conflicts in a port label Nov 23, 2023
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@github-actions github-actions bot added the Changelog: New Feature Include in the "Added" section of the changelog label Nov 23, 2023
@github-actions github-actions bot added this to the 0.45.1 milestone Nov 23, 2023
* Add support for Python 3.12

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: #10887

* Add release note

* Avoid deprecated `datetime.datetime.utcnow()` usage

In 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.

* 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.

(cherry picked from commit 5a5c9e3)
@jakelishman jakelishman force-pushed the mergify/bp/stable/0.45/pr-11262 branch from 3960c34 to a0b3f2c Compare November 23, 2023 19:46
@jakelishman jakelishman removed the conflicts used by mergify when there are conflicts in a port label Nov 23, 2023
@jakelishman jakelishman added this pull request to the merge queue Nov 23, 2023
Merged via the queue into stable/0.45 with commit 4a5982a Nov 23, 2023
15 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.45/pr-11262 branch November 23, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the "Added" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants