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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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
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.

None yet

1 participant