Skip to content

Allow python 3.12 and add to workflow#83

Merged
BSnelling merged 4 commits into
mainfrom
bes/py_version
Jun 9, 2026
Merged

Allow python 3.12 and add to workflow#83
BSnelling merged 4 commits into
mainfrom
bes/py_version

Conversation

@BSnelling

Copy link
Copy Markdown
Collaborator

If there isn't a particular reason to specify >=3.13 I think >=3.11 is reasonable. This would bring petab_sciml into line with libpetab and amici, which both specify >=3.11.

@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.01%. Comparing base (c4d7e97) to head (93afb05).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   94.01%   94.01%           
=======================================
  Files           6        6           
  Lines         301      301           
=======================================
  Hits          283      283           
  Misses         18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sebapersson sebapersson requested a review from dilpath June 9, 2026 09:20
@sebapersson

Copy link
Copy Markdown
Collaborator

I actually discussed this with @dilpath very recently, and basically currently numpy requires 3.12 for this year and 3.13 for next year. So I would be happy to change to requiring at least 3.12

@dilpath dilpath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Agreed with @sebapersson. So the range can be 3.12 - 3.14, since 3.13 is no longer the newest Python.

Comment thread petab_sciml/standard/array_data.py Outdated
continue

array_file_relative = array_file.relative_to(yaml_dir, walk_up=True).as_posix()
array_file_relative = Path(os.path.relpath(array_file, yaml_dir)).as_posix()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Undo

Comment thread .github/workflows/ci.yml Outdated
files: ./coverage.xml
if: matrix.os == 'ubuntu-latest'

No newline at end of file
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The explicit 3.13 here is not so nice -- is there a way to make it dynamic somehow, e.g. to the latest python version?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated to 3.x which will pull the latest python (currently 3.14.5).

Comment thread petab_sciml/standard/array_data.py Outdated
@@ -1,5 +1,6 @@
from __future__ import annotations

import os

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Undo

@BSnelling BSnelling changed the title Allow python 3.11 and add to workflow Allow python 3.12 and add to workflow Jun 9, 2026
@BSnelling

Copy link
Copy Markdown
Collaborator Author

Thanks both! That's a good case for 3.12, I've updated to reflect that. And I reckon I can make the case for AMICI to reflect the same.

@sebapersson sebapersson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing this!

@BSnelling BSnelling merged commit 29d8737 into main Jun 9, 2026
7 checks passed
@BSnelling BSnelling deleted the bes/py_version branch June 9, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants