Skip to content

Fix/python312 compat#1518

Open
26pawarp wants to merge 2 commits intoCiviWiki:developfrom
26pawarp:fix/python312-compat
Open

Fix/python312 compat#1518
26pawarp wants to merge 2 commits intoCiviWiki:developfrom
26pawarp:fix/python312-compat

Conversation

@26pawarp
Copy link
Copy Markdown

Closes #1455

Description

Updates dependency versions in pyproject.toml to support Python 3.12:

  • django-notifications-hq from ^1.7.0 to ^1.8.3 (fixes distutils removal)
  • psycopg2-binary from ^2.9.3 to ^2.9.9 (fixes PEP 517 build failure)

Also updates CONTRIBUTING.md to include the collectstatic step needed
before running tests (related to #1372).

Tested on both Python 3.11 and 3.12. Test results: 35/36 pass
(1 pre-existing failure unrelated to these changes).

Updated django-notifications-hq from ^1.7.0 to ^1.8.3 and
psycopg2-binary from ^2.9.3 to ^2.9.9 to resolve build failures
on Python 3.12 where distutils was removed and older package
versions fail PEP 517 builds.

Verified: migrate, loaddata, and runserver all work on Python 3.12.
Test results (36 tests, 18 errors) are identical to Python 3.11,
confirming the errors are pre-existing static file issues.
Added sample_users.json to fixture loading order to prevent
IntegrityError. Added collectstatic step needed before running
tests successfully.
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.

Following contributing guide, migration step failing

1 participant