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

Update to support Django 4 #71

Merged
merged 27 commits into from
Jan 29, 2024
Merged

Update to support Django 4 #71

merged 27 commits into from
Jan 29, 2024

Conversation

markdboyd
Copy link
Contributor

@markdboyd markdboyd commented Jan 26, 2024

Closes #70

Changes proposed in this pull request:

  • Update django dependency to >=4.0,<5.0
  • Add tox testing environments for Python 11, 12. Drop tox testing environment for Python 3.6 and 3.7 which are end-of-life: https://devguide.python.org/versions/
  • Update code and tests for compatibility with Django 4
  • Bump version to 2.1.5
  • Update CHANGELOG
  • Remove circleCI config

security considerations

There is no sensitive material in these updates. Just updating the code to support Django 4

@markdboyd markdboyd requested a review from a team January 26, 2024 22:53
pyproject.toml Outdated
@@ -27,30 +27,16 @@ exclude = '''
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py35-django22,py3{6,7,8,9,10}-django{22,30,31,32}
envlist = py3{8,9,10,11,12}-django{40,41,42}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any customers running apps based on python 3.6 or 3.7 using the django pack that would run into issues deprecating this? We haven't communicated our deprecations well enough to just shut them down IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fair. We're just removing tests for Python 3.6/3.7 in this case, not actually deprecating support, but i can re-add.

Copy link
Contributor Author

@markdboyd markdboyd Jan 29, 2024

Choose a reason for hiding this comment

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

To be more clear: these changes don't actually deprecate support for Python 3.6/3.7, they just update our unit tests to drop testing for those environments. Someone could still install this package on Python 3.6/3.7, we just wouldn't have unit tests any more verifying that this package works on those versions.

Also, Python 3.6/3.7 are officially end-of-life and no longer supported or receiving security updates: https://devguide.python.org/versions/, so it seems safe to drop our testing for those versions?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, okay. If they are EOL'ed then that seems safe to drop them.

pyproject.toml Outdated
isolated_build=true

[testenv:py3{5,6,7}]
[testenv:py3{8,9,10,11,12}]
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment as above.

Framework :: Django :: 3.0
Framework :: Django :: 3.1
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Copy link
Contributor

Choose a reason for hiding this comment

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

There are others using Django pack on the platform that are likely on older versions. Do we need a comms and deprecation process to get folks to move to newer versions?

I'm mostly concerned that we're deprecating apps using older versions without alerting folks to move forward so if folks try to stage anything they won't successfully deploy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this package has different released versions, if someone still needs to keep using an older version of Django, they can pin their dependency to an older release of this package

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 Just wanted to make sure we're not cutting folks off from using this without comms to the customers about what dependencies are going away and some lead time to make changes.

Copy link
Contributor

@kfoley-18F kfoley-18F left a comment

Choose a reason for hiding this comment

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

👍

@kfoley-18F kfoley-18F merged commit 5cca5e1 into main Jan 29, 2024
1 check passed
@kfoley-18F kfoley-18F deleted the update-django-4 branch January 29, 2024 18:20
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.

Support for Django 4
2 participants