django-newsletter icon indicating copy to clipboard operation
django-newsletter copied to clipboard

Adding tests and support for Django 4.2 - 5x and removing EOL versions of python and django

Open sebastian-muthwill opened this issue 11 months ago • 6 comments
trafficstars

Update python and django versions

  • dropped tests for Python <3.7
  • dropped tests for Django <4.2
  • added tests for Python 3.11, 3.12, 3.13
  • added tests for Django >=4.2

This PR addresses the following issues:

  • fixes #383
  • fixes #390

sebastian-muthwill avatar Dec 10 '24 16:12 sebastian-muthwill

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.51%. Comparing base (c9d7bf2) to head (9409845).

Files with missing lines Patch % Lines
newsletter/__init__.py 66.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #394      +/-   ##
==========================================
+ Coverage   86.02%   86.51%   +0.49%     
==========================================
  Files          16       16              
  Lines        1302     1313      +11     
  Branches      138      136       -2     
==========================================
+ Hits         1120     1136      +16     
+ Misses        135      131       -4     
+ Partials       47       46       -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 10 '24 16:12 codecov[bot]

Created an issue to get the changes released: https://github.com/jazzband/help/issues/383

sebastian-muthwill avatar Dec 11 '24 13:12 sebastian-muthwill

I just saw that @dokterbob already released v1.0 to PyPi 🥳 May we have your opinion here as well. I think we should at least merge this PR to master as well to keep master and PyPi version in sync. After that we can discuss if older versions should be supported or not.

sebastian-muthwill avatar Dec 12 '24 08:12 sebastian-muthwill

Before merging please address the code quality comments I made. Don't leave commented lines and remove the patches for older Django versions.

newearthmartin avatar Dec 13 '24 20:12 newearthmartin

I don't know if I have a strict positioning on the matter, but I'd like to say that a new version of this package that drops support for, say, Django 1.9 is not necessarily wrong. Anyone running Django 1.9 could still use the old django-newsletter version that supports that. This is perfectly normal, expected, and I'd argue even desired (if it makes it easier on manteinance and new developments.)

adRn-s avatar Jan 29 '25 09:01 adRn-s

if it makes it easier on manteinance and new developments.

My suggestion is to drop old versions when they conflict with development. Not before just because. When a new feature requires a higher version of Django, then support can be dropped.

newearthmartin avatar Jan 30 '25 01:01 newearthmartin

Hi @sebastian-muthwill it seems I forgot about this PR and went and duplicated your efforts on another PR to fix the automated build and tests https://github.com/jazzband/django-newsletter/pull/399

I now get the need to drop the older versions, but it's not just because they are old but because dependencies don't work, for example sorl-thumbanail needs django >= 4.

I did this because I made another PR https://github.com/jazzband/django-newsletter/pull/397 and tests were broken.

Apparently no one cares about this anymore? Nobody is reviewing PRs, so what do you think we should do? Has anyone managed to contact @dokterbob ? Does anyone have rights to approve PRs?

newearthmartin avatar Aug 14 '25 16:08 newearthmartin

I just joined jazzband and merged this PR

newearthmartin avatar Aug 14 '25 16:08 newearthmartin

Builds are still broken but I fixed them with https://github.com/jazzband/django-newsletter/pull/399 I'll be merging it later today, I'll wait a little bit in case someone wants to review it before I merge it

newearthmartin avatar Aug 14 '25 17:08 newearthmartin