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

Upgraded python 3.9.5 to 3.12.3 #4850

Closed
wants to merge 2 commits into from
Closed

Upgraded python 3.9.5 to 3.12.3 #4850

wants to merge 2 commits into from

Conversation

gitofanindya
Copy link
Collaborator

Upgraded python 3.9.5 to 3.12.3

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @gitofanindya - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -37,8 +37,8 @@ def main() -> int:

try:
# XXX_PYTHON
if sys.version_info < (3, 9, 1):
raise RuntimeError(f"{APP_NAME} requires Python 3.9.1+")
if sys.version_info < (3, 12, 3):
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Check for potential breaking changes or deprecated features in Python 3.12.

Review the Python 3.12 release notes to ensure no deprecated features are being used that could affect the application's functionality.

Suggested change
if sys.version_info < (3, 12, 3):
import warnings
if sys.version_info < (3, 12, 3):
raise RuntimeError(f"{APP_NAME} requires Python 3.12.3+")
else:
# Check for deprecated Python features in 3.12 that may affect the application
if sys.version_info[:2] == (3, 12):
warnings.warn("Check Python 3.12 release notes for deprecated features.")

@@ -52,7 +52,7 @@ Executing the script without argument will setup.update the isolated environment

[//]: # (XXX_PYTHON, XXX_INNO_SETUP)

- [Python 3.9.5](https://www.python.org/ftp/python/3.9.5/python-3.9.5.exe).
- [Python 3.12.3](https://www.python.org/ftp/python/3.12.3/python-3.12.3.exe).
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_clarification): Update documentation to reflect new Python version requirements.

Ensure all references in the documentation consistently reflect the upgrade to Python 3.12.3 to avoid confusion.

Suggested change
- [Python 3.12.3](https://www.python.org/ftp/python/3.12.3/python-3.12.3.exe).
[Python 3.12.3](https://www.python.org/downloads/release/python-3123/)

@gitofanindya gitofanindya force-pushed the Upgrade-Python branch 3 times, most recently from ec3aba7 to c53a003 Compare May 7, 2024 11:34
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.62%. Comparing base (74fc14e) to head (7225e04).
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4850      +/-   ##
==========================================
- Coverage   49.24%   48.62%   -0.62%     
==========================================
  Files          94       95       +1     
  Lines       15699    16076     +377     
==========================================
+ Hits         7731     7817      +86     
- Misses       7968     8259     +291     
Flag Coverage Δ
functional 41.04% <ø> (+2.96%) ⬆️
integration ?
unit 37.16% <ø> (-0.41%) ⬇️

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

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

@poojadaine poojadaine closed this Aug 28, 2024
@poojadaine poojadaine deleted the Upgrade-Python branch August 28, 2024 10:05
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