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

Use Python 3.12 for core test #5909

Merged
merged 20 commits into from
Oct 11, 2023
Merged

Use Python 3.12 for core test #5909

merged 20 commits into from
Oct 11, 2023

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Sep 27, 2023

Test to see if everything runs on the latest version of Python 3.12

@@ -38,7 +38,6 @@
'bokeh',
'pillow',
'plotly >=4.0',
'dash >=1.16',
Copy link
Member Author

@hoxbro hoxbro Sep 27, 2023

Choose a reason for hiding this comment

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

Not a core-test package. Moved it down to tests.

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

Merging #5909 (db5e6cd) into main (8c9ce6d) will decrease coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5909      +/-   ##
==========================================
- Coverage   88.55%   88.55%   -0.01%     
==========================================
  Files         313      313              
  Lines       65069    65077       +8     
==========================================
+ Hits        57624    57629       +5     
- Misses       7445     7448       +3     
Flag Coverage Δ
ui-tests 23.29% <62.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
holoviews/core/util.py 85.55% <100.00%> (ø)
holoviews/tests/conftest.py 93.75% <100.00%> (+7.08%) ⬆️
...loviews/tests/plotting/matplotlib/test_renderer.py 98.69% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hoxbro
Copy link
Member Author

hoxbro commented Sep 27, 2023

Need the libmamba solver to work on Python 3.12.

@hoxbro hoxbro marked this pull request as draft September 27, 2023 12:37
@hoxbro hoxbro changed the title Try 3.12 for core test Use Python 3.12 for core test Oct 10, 2023
@@ -929,7 +929,7 @@ def isfinite(val):
if pandas_version >= Version('1.0.0'):
if finite is pd.NA:
return False
return finite & (~pd.isna(val))
return finite & ~pd.isna(np.asarray(val))
Copy link
Member Author

@hoxbro hoxbro Oct 10, 2023

Choose a reason for hiding this comment

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

From this Python 3.12 warning: Bitwise inversion '~' on bool is deprecated. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.

And val sometimes could be None or a tuple of None.
image

@hoxbro hoxbro added this to the 1.18.0 milestone Oct 10, 2023
@hoxbro hoxbro marked this pull request as ready for review October 10, 2023 18:43
@hoxbro hoxbro enabled auto-merge (squash) October 11, 2023 12:47
@hoxbro hoxbro merged commit 52edaf9 into main Oct 11, 2023
11 checks passed
@hoxbro hoxbro deleted the try_312 branch October 11, 2023 14:19
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants