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 Python 3.12 support #1338

Merged
merged 7 commits into from
Feb 20, 2024
Merged

Add Python 3.12 support #1338

merged 7 commits into from
Feb 20, 2024

Conversation

woodsp-ibm
Copy link
Member

@woodsp-ibm woodsp-ibm commented Feb 19, 2024

Summary

See #1327 I will not mark this to close that since this still CI needs to use 3.12.0 specifically as the breaking change to testtools, referred there has not yet been addressed. So rather than have it close it and then open another specifically around juct using 3.12 when we are able, I just put a task list in there so this does one of the entries. The other will need a release of testtools first.

I marked this stable backport in order to facilitate a release that supports 3.12.

Details and comments

If/when merged will require branch rules updating.

@woodsp-ibm woodsp-ibm added type: ci Related to CI changes stable backport potential The bug might be minimal and/or import enough to be port to stable labels Feb 19, 2024
@woodsp-ibm woodsp-ibm mentioned this pull request Feb 19, 2024
2 tasks
@woodsp-ibm
Copy link
Member Author

woodsp-ibm commented Feb 19, 2024

The exact 3.12.0 version made things a little more complicated around the PSI4 install. The if ... =="3.11" I had initially changed to if ... >= "3.11" which I think will be ok when the version is reduced to 3.12 when we don't have to be so explicit.

@mrossinek I found out, after a few fails, that the reason was 3.12 was failing was due to scipy being pinned per #1214 though that gave me little context. I imagine CI was failing here too but it really just points to the Qiskit PR. Either way it needed altering to allow a newer version for 3.12, so the constraint looks like it now is in Qiskit, which still has it. Though I was wondering if it was really needed any more here - I did not try running things without it.

constraints.txt Outdated Show resolved Hide resolved
Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7974550245

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 86.758%

Files with Coverage Reduction New Missed Lines %
qiskit_nature/second_q/drivers/psi4d/psi4driver.py 1 85.12%
Totals Coverage Status
Change from base Build 7967252986: -0.01%
Covered Lines: 8786
Relevant Lines: 10127

💛 - Coveralls

Copy link
Member

@mrossinek mrossinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this!

@mrossinek mrossinek merged commit 9b9e866 into qiskit-community:main Feb 20, 2024
16 checks passed
mergify bot pushed a commit that referenced this pull request Feb 20, 2024
* Add Python 3.12 support

* Add env to pyproject

* Black does not have a 312 target version

* Alter PSI4 install for 3.12 as it was getting 3.12.0

* Alter PSI4 install for 3.12 as it was getting 3.12.0

* Update scipy contraint (matches qiskit again)

* Update constraints.txt

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>

---------

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
(cherry picked from commit 9b9e866)
mrossinek pushed a commit that referenced this pull request Feb 20, 2024
* Add Python 3.12 support

* Add env to pyproject

* Black does not have a 312 target version

* Alter PSI4 install for 3.12 as it was getting 3.12.0

* Alter PSI4 install for 3.12 as it was getting 3.12.0

* Update scipy contraint (matches qiskit again)

* Update constraints.txt

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>

---------

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
(cherry picked from commit 9b9e866)

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
@woodsp-ibm woodsp-ibm deleted the py_3.12 branch February 20, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable backport potential The bug might be minimal and/or import enough to be port to stable type: ci Related to CI changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants