Skip to content

Remove support for python 3.8#3961

Merged
kratman merged 13 commits into
pybamm-team:developfrom
kratman:feat/remove38
Apr 3, 2024
Merged

Remove support for python 3.8#3961
kratman merged 13 commits into
pybamm-team:developfrom
kratman:feat/remove38

Conversation

@kratman

@kratman kratman commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Description

Removes support for python 3.8

Fixes #3390

Type of change

This is a breaking change since it reduces support for a python version. On the plus side it reduces the number of CI jobs.

Key checklist:

  • No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: $ python run-tests.py --all (or $ nox -s tests)
  • The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@kratman kratman self-assigned this Apr 3, 2024
@kratman

kratman commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

I merged #3962 into this one to get the tests running faster

@agriyakhetarpal

Copy link
Copy Markdown
Member

Also, I remember that there were some notes that we had added about the JAX solver not being available for Python 3.8, we should be able to remove those too now (can't find where exactly they were in the installation docs)

@kratman

kratman commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

Also, I remember that there were some notes that we had added about the JAX solver not being available for Python 3.8, we should be able to remove those too now (can't find where exactly they were in the installation docs)

I think I removed them all. I can double check though

@agriyakhetarpal

Copy link
Copy Markdown
Member

Found them, they are in gnu-linux-mac.rst and windows.rst under the "Optional – JaxSolver" headings

@kratman kratman marked this pull request as ready for review April 3, 2024 20:09
Comment thread .github/workflows/benchmark_on_push.yml Outdated
Comment thread .github/workflows/benchmark_on_push.yml Outdated
Comment thread .github/workflows/periodic_benchmarks.yml Outdated
Comment thread .github/workflows/periodic_benchmarks.yml Outdated
Comment thread .github/workflows/periodic_benchmarks.yml Outdated
Comment thread .github/workflows/run_benchmarks_over_history.yml Outdated
Comment thread .github/workflows/run_benchmarks_over_history.yml Outdated
Comment thread .github/workflows/run_benchmarks_over_history.yml Outdated
Comment thread .github/workflows/run_periodic_tests.yml
Comment thread .github/workflows/update_version.yml Outdated
kratman and others added 2 commits April 3, 2024 16:56
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
@kratman kratman requested a review from agriyakhetarpal April 3, 2024 21:00

@agriyakhetarpal agriyakhetarpal 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! I'm not aware of the typing stuff but it looks okay to me since pre-commit is passing.

@kratman

kratman commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

Thanks! I'm not aware of the typing stuff but it looks okay to me since pre-commit is passing.

That was done by pre-commit. I guess it detected that I removed 3.8 support and switched a bunch of stuff

@codecov

codecov Bot commented Apr 3, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.58%. Comparing base (78b7d25) to head (ed88481).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3961   +/-   ##
========================================
  Coverage    99.58%   99.58%           
========================================
  Files          257      257           
  Lines        21196    21198    +2     
========================================
+ Hits         21108    21110    +2     
  Misses          88       88           

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

@kratman kratman merged commit 426e441 into pybamm-team:develop Apr 3, 2024
@agriyakhetarpal agriyakhetarpal deleted the feat/remove38 branch April 3, 2024 22:08
js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
* Remove python 3.8

* More nox fixes

* style: pre-commit fixes

* Pre-commit

* Pre-commit fixes

* Changing Jax version

* Temporary fix

* Remove notes

* Apply suggestions from code review

Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>

* Update .github/workflows/update_version.yml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
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.

Drop support for Python 3.8, support Python 3.12?

2 participants