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

Remove support for python 3.8 #3961

Merged
merged 13 commits into from
Apr 3, 2024
Merged

Conversation

kratman
Copy link
Contributor

@kratman kratman commented Apr 3, 2024

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
Copy link
Contributor Author

kratman commented Apr 3, 2024

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

@agriyakhetarpal
Copy link
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
Copy link
Contributor Author

kratman commented Apr 3, 2024

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
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
.github/workflows/benchmark_on_push.yml Outdated Show resolved Hide resolved
.github/workflows/benchmark_on_push.yml Outdated Show resolved Hide resolved
.github/workflows/periodic_benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/periodic_benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/periodic_benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/run_benchmarks_over_history.yml Outdated Show resolved Hide resolved
.github/workflows/run_benchmarks_over_history.yml Outdated Show resolved Hide resolved
.github/workflows/run_benchmarks_over_history.yml Outdated Show resolved Hide resolved
.github/workflows/run_periodic_tests.yml Show resolved Hide resolved
.github/workflows/update_version.yml Outdated Show resolved Hide resolved
kratman and others added 2 commits April 3, 2024 16:56
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

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
Copy link
Contributor Author

kratman commented Apr 3, 2024

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

Copy link

codecov bot commented Apr 3, 2024

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
40 checks passed
@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