Skip to content

[191] Support: to Python 3.12 #226

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

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

Conversation

abdullahQureshee
Copy link

@abdullahQureshee abdullahQureshee commented Feb 6, 2025

Resolves #191

@abdullahQureshee abdullahQureshee marked this pull request as draft February 6, 2025 09:27
@abdullahQureshee abdullahQureshee force-pushed the maq/191 branch 2 times, most recently from 7ec1299 to 0a51874 Compare February 6, 2025 09:34
@abdullahQureshee
Copy link
Author

@irtazaakram I can't find a lot to change in this repo, for example, the changes here. Please guide me if I've missed any change in this PR.

Copy link
Member

@irtazaakram irtazaakram left a comment

Choose a reason for hiding this comment

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

This should be a support PR rather than an upgrade PR.

Comment on lines 16 to 20
- python_version: '3.12'
ubuntu_version: '20.04'
os: "ubuntu-20.04"
- python_version: '3.11'
- python_version: '3.12'
ubuntu_version: '22.04'
os: "ubuntu-22.04"
- python_version: '3.11'
- python_version: '3.12'
ubuntu_version: '24.04'
Copy link
Member

Choose a reason for hiding this comment

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

We need to support both python 3.11 & 3.12 here

setup.py Outdated
@@ -53,5 +53,6 @@ def get_version(*file_paths):
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
Copy link
Member

Choose a reason for hiding this comment

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

let's drop all references/usage of python 3.8 here

@abdullahQureshee abdullahQureshee marked this pull request as ready for review March 6, 2025 07:48
@abdullahQureshee abdullahQureshee changed the title [191]: Upgrade to Python 3.12 [191] Support: to Python 3.12 Mar 6, 2025
@abdullahQureshee
Copy link
Author

@irtazaakram Can you please guide me on what is causing the pipelines to fail? This is the error:

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 9181757f-3d02-4c33-9764-37edb9e29da6::whflw3v4lwam9dzqqnfvci2lo: "/sudoers-file/01-sandbox-python-3.12": not found

Can it be resolved from development side?

@irtazaakram
Copy link
Member

The pipeline is failing due to a missing file: 01-sandbox-python-3.12. You will need to create this file, similar to the one used for Python 3.11: 01-sandbox-python-3.11.

@abdullahQureshee abdullahQureshee force-pushed the maq/191 branch 2 times, most recently from aab072e to 9fbeeaa Compare March 10, 2025 09:16
Copy link
Contributor

@MoisesGSalas MoisesGSalas left a comment

Choose a reason for hiding this comment

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

hi @abdullahQureshee, I recently merged a change that modifies a bit the CI workflow so please rebase when you have a chance, I left a few comments. Thanks.

@@ -1,3 +1,3 @@
"""init"""

__version__ = '3.5.2'
__version__ = '4.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

We dropped support to Python 3.8 back in 06b8cd4 for version 3.5.0, so this isn't really a breaking change so simply increasing the major should be enough.

tox.ini Outdated
@@ -1,5 +1,5 @@
[tox]
envlist = py38
Copy link
Contributor

Choose a reason for hiding this comment

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

I've changed this in the master branch to only define environments for the django versions and use the python_version matrix in the CI job to test for each Python version. After rebasing use the one in master.

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.

Drop Python 3.8 & Add Support for Python 3.12
3 participants