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

Migrate to python 3.12 #958

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Migrate to python 3.12 #958

merged 1 commit into from
Feb 5, 2024

Conversation

matti-lamppu
Copy link
Collaborator

@matti-lamppu matti-lamppu commented Nov 3, 2023

🛠️ Changelog

  • Migrates the project to Python 3.12

🧪 Test plan

  • Create a new virtual environment locally for python 3.12:
    • poetry env use "<path to python 3.12 executable" -> poetry install
  • Run tests with new environment
  • Run Django admin and graphQL with new environment

CI already runs tests and builds image, so those should be tested with that

@matti-lamppu
Copy link
Collaborator Author

@ranta If we want to migrate to 3.12, we need to remove all snapshot tests, since the library requires the imp-module, which was removed in 3.12.

There is an open issue about this, but little activity.

@ranta
Copy link
Collaborator

ranta commented Nov 3, 2023

I don't think we are in any hurry to upgrade to 3.12. We can start slowly refactoring away the snapshot tests along with all of the other refactoring stuffs and upgrade python at some later point :)

@matti-lamppu matti-lamppu removed the request for review from ranta November 6, 2023 13:50
@matti-lamppu matti-lamppu force-pushed the python-312-update branch 4 times, most recently from 49c6a63 to e0315a6 Compare November 13, 2023 07:54
@matti-lamppu matti-lamppu force-pushed the python-312-update branch 2 times, most recently from ee29c0e to bdd1147 Compare January 11, 2024 09:23
@matti-lamppu matti-lamppu force-pushed the python-312-update branch 2 times, most recently from 0c55b52 to 554bae2 Compare January 22, 2024 12:52
@matti-lamppu matti-lamppu force-pushed the python-312-update branch 2 times, most recently from 092f096 to c138bac Compare February 5, 2024 11:39
@matti-lamppu matti-lamppu self-assigned this Feb 5, 2024
@matti-lamppu matti-lamppu marked this pull request as ready for review February 5, 2024 11:54
Copy link

sonarcloud bot commented Feb 5, 2024

@matti-lamppu matti-lamppu enabled auto-merge (rebase) February 5, 2024 13:42
@matti-lamppu matti-lamppu merged commit 6411362 into main Feb 5, 2024
5 checks passed
@matti-lamppu matti-lamppu deleted the python-312-update branch February 5, 2024 13:50
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