Bug 262226

Summary: www/py-django-happenings-update: Deprecate and set to expire
Product: Ports & Packages Reporter: Kai Knoblich <kai>
Component: Individual Port(s)Assignee: Kai Knoblich <kai>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports
Priority: --- Flags: ports: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/imposeren/django-happenings
Bug Depends on:    
Bug Blocks: 261313    
Attachments:
Description Flags
deprecate-py-django-happenings-update.patch ports: maintainer-approval+

Description Kai Knoblich freebsd_committer freebsd_triage 2022-02-27 11:42:55 UTC
Created attachment 232136 [details]
deprecate-py-django-happenings-update.patch

Hi,

attached is the patch that deprecates www/py-django-happenings-update and set an expiration date for it.

Django 2.2 will become EoL in April 2022 and the port isn't compatible with newer versions of Django.  If one tries to load the package with Django 3.2 the following error is emitted:

>  File "/usr/local/lib/python3.8/site-packages/happenings/models.py", line 15, in <module>
>    from django.utils.encoding import python_2_unicode_compatible
> ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/usr/local> /lib/python3.8/site-packages/django/utils/encoding.py)

The upstream repository also seems to be abandoned as there has been no update since 2018.
Comment 1 Kevin Golding 2022-02-28 08:10:24 UTC
Comment on attachment 232136 [details]
deprecate-py-django-happenings-update.patch

Makes sense - thanks
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-03-05 08:36:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b6724a9de622ca4e67273a88ac022636c1e5ac9

commit 8b6724a9de622ca4e67273a88ac022636c1e5ac9
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-03-05 08:33:36 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-03-05 08:33:36 +0000

    www/py-django-happenings-update: Deprecate and set to expire

    * Django 2.2 will become EoL in April 2022 and the port isn't compatible
      with newer versions of Django.

    * The upstream repository also seems to be abandoned as there has been
      no update since 2018.

    PR:             262226
    Approved by:    Kevin Golding (maintainer)

 www/py-django-happenings-update/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 3 Kai Knoblich freebsd_committer freebsd_triage 2022-03-05 08:41:04 UTC
(In reply to Kevin Golding from comment #1)

Committed, thank you for your quick review and approval!