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

Drop support of Python 3.7 and install latest developments of optax to avoid failing tests #519

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

albcab
Copy link
Member

@albcab albcab commented Apr 13, 2023

The latest release of JAX raises an error for the use of any deprecated version of jax.Array. This creates errors in tests when importing optax (the latest release is from Nov 2022). In the latests developments of the library this is fixed, so we now install these latests developments instead of the latests release.

We could install an earlier version of JAX, instead of the latest developments of optax.

@albcab albcab force-pushed the optax-nightly branch 3 times, most recently from 5fa95c3 to fff5a50 Compare April 13, 2023 11:27
@albcab
Copy link
Member Author

albcab commented Apr 13, 2023

Additionally, JAX has dropped support of Python 3.7 from v0.4.1, optax has done the same in the latest developments. So, for the tests to pass in Python 3.7, I'd have to set an upper bound for the version of JAX (and optax) to install or not run tests in 3.7. I've chosen the latter because I imagine we want the latests features published on JAX.

* drop support for Python 3.7
* tests and install test not only run in Python>=3.8
@albcab albcab changed the title Install latest developments of optax to avoid failing tests Drop support of Python 3.7 and install latest developments of optax to avoid failing tests Apr 13, 2023
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #519 (0edc3ac) into main (7100bca) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #519   +/-   ##
=======================================
  Coverage   99.28%   99.28%           
=======================================
  Files          47       47           
  Lines        1947     1947           
=======================================
  Hits         1933     1933           
  Misses         14       14           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@albcab albcab requested review from rlouf and junpenglao April 13, 2023 11:36
@albcab albcab merged commit fb14353 into blackjax-devs:main Apr 13, 2023
@albcab albcab deleted the optax-nightly branch April 13, 2023 14:13
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.

2 participants