ref(django-3.2): Vendor django picklefield#35727
Conversation
Django-picklefield hasn't been updated in 2 years, but we need it. We also need to upgrade to django 3.2 which means we need to update picklefield.
|
Where are we using this? How feasible would it be to kill off usage of pickle in favor of JSON? |
We use it in authentication and all option models. I think we should remove this, but it's outside the scope of django 3.2 upgrade. |
| @@ -0,0 +1 @@ | |||
| DEFAULT_PROTOCOL = 2 | |||
There was a problem hiding this comment.
the package name needs to be an underscore -- that's why the testsuite is failing
|
Can we fork and maintain? |
Long term, this is the right approach (or removing it entirely). However, for django 3.2 upgrade, we only need to update a couple of lines to make it compatible. So this is a quick fix, until we get some time to set up our own fork. FWIW, I did fork it already, but there's no CI. https://github.com/getsentry/django-picklefield |
Can we make the changes in the fork and reference it via a git URL in requirements.txt? Avoids the overhead of releasing but keeps us on the right path w/ the fork. |
|
Also not that hard to set up releases via the |
at the moment our requirements require we could publish a |
|
I still think vendoring is the easiest and best option here, given that:
Granted, we should try to also upstream any improvements and compat changes we make. |
src/django_picklefield/__init__.py
Outdated
| @@ -0,0 +1,10 @@ | |||
| import django.utils.version | |||
There was a problem hiding this comment.
You can remove the version related contents of this file, it's not needed anymore.
This reverts commit 0ad4aa9.

Django-picklefield hasn't been updated in 2 years, but we need it. We also need to upgrade to django 3.2 which means we need to update picklefield.
Could use some direction on the direction struture changes