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

Python312 upgrade #357

Merged
merged 7 commits into from
Apr 18, 2024
Merged

Python312 upgrade #357

merged 7 commits into from
Apr 18, 2024

Conversation

Anas12091101
Copy link

@Anas12091101 Anas12091101 commented Mar 8, 2024

What are the relevant tickets?

#356

What's this PR do?

Upgrade Python to version 3.12 and remove all depreciation warnings

How should this be manually tested?

  • Check the CI run logs
  • For local testing
    • Make sure you have python 3.12 installed on your system.
    • Run the tests using tox which has been configured to run them with python version 3.12

Note

The xblock-sdk workbench currently doesn't work with XBlock==2.0.0. Hopefully the issue shall be solved in the new release of xblock-sdk. Therefore, the version of xblock has been temporarily set to 1.10.0 in the test_requirements.txt Fixed

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 52.94%. Comparing base (c9ba9c1) to head (e325ae2).
Report is 5 commits behind head on master.

❗ Current head e325ae2 differs from pull request most recent head 2fc0d20. Consider uploading reports for the commit 2fc0d20 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #357      +/-   ##
==========================================
- Coverage   61.40%   52.94%   -8.46%     
==========================================
  Files          16       16              
  Lines        1705     1713       +8     
  Branches      115      307     +192     
==========================================
- Hits         1047      907     -140     
- Misses        642      793     +151     
+ Partials       16       13       -3     
Files Coverage Δ
edx_sga/sga.py 64.62% <100.00%> (-18.15%) ⬇️
setup.py 0.00% <ø> (ø)
edx_sga/tests/test_sga.py 98.88% <55.55%> (+98.88%) ⬆️

... and 8 files with indirect coverage changes

@Anas12091101 Anas12091101 force-pushed the python312-upgrade branch 2 times, most recently from becc0fc to fd8c571 Compare March 8, 2024 09:54
@Anas12091101 Anas12091101 force-pushed the python312-upgrade branch 2 times, most recently from 673b028 to 435fe3b Compare March 27, 2024 08:11
@arslanashraf7 arslanashraf7 self-assigned this Apr 2, 2024
Copy link

@arslanashraf7 arslanashraf7 left a comment

Choose a reason for hiding this comment

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

The code itself looks good & the functionality is also intact. I think we can now also remove the deprecation warning like below. I was able to import the correct files in LMS & CMS shells.

edx.devstack.lms  | 2024-03-22 10:28:53,486 WARNING 1219 [py.warnings] [user 3] [ip 192.168.65.1] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/edx_sga/sga.py:37: DeprecatedPackageWarning: Please use import xblock.utils.studio_editable instead of xblockutils.studio_editable because the 'xblock-utils' package has been deprecated and migrated to within 'xblock' package. 
edx.devstack.lms  |   from xblockutils.studio_editable import StudioEditableXBlockMixin

@Anas12091101
Copy link
Author

Tests will continue to fail until the merge of openedx/edx-platform#34398.

Copy link

@arslanashraf7 arslanashraf7 left a comment

Choose a reason for hiding this comment

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

👍

@Anas12091101 Anas12091101 merged commit 7d522fe into master Apr 18, 2024
5 checks passed
@odlbot odlbot mentioned this pull request Apr 29, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants