Upgrading mailman 3 venv installation
Congratulations on the new release for Mailman 3 Core!
I'm not a daily pip/python user, so I'm probably behind on the safe and proper way to update my installation (which is working pretty well).
In my virtual environment, I ran pip list -o
and got a significant
list. I noticed that all of the mailman packages seemed to be "Type
sdist" and the framework packages "Type wheel". (Dunno what "Type" means
in this context.)
So I tried pip list -o | grep sdist
and got a smaller list:
(venv) mailman@mail:~$ pip list -o | grep sdist
atpublic 2.1.1 2.3 sdist
django-allauth 0.43.0 0.45.0 sdist
django-mailman3 1.3.4 1.3.7 sdist
flufl.i18n 3.1.3 3.2 sdist
flufl.lock 5.0.3 6.0 sdist
HyperKitty 1.3.3 1.3.4 sdist
lazr.config 2.2.2 2.2.3 sdist
mailman 3.3.2 3.3.5 sdist
mailmanclient 3.3.1 3.3.3 sdist
mysqlclient 2.0.1 2.0.3 sdist
postorius 1.3.3 1.3.6 sdist
Is this a reasonable list of the packages that I should update?
Are there framework updates I should be concerned with? I'm remembering that a specific non-current version of django was required for mailman. The one I have installed is 3.0.11, with 3.2.7 listed as Latest.
My plan is to archive the virtualenv directory, upgrade the packages listed above. If something breaks, I should be able to restore the archived virtualenv.
I'm running a single server, Ubuntu 18.04.6, with Zimbra running alongside.
Best regards, Mojo
Morris Jones, Monrovia, CA BridgeMojo <http://bridgemojo.com> Old Town Sidewalk Astronomers <http://otastro.org> Mojo's Blog <http://mojo.whiteoaks.com>
On 9/29/21 10:52 AM, Morris Jones wrote:
In my virtual environment, I ran
pip list -o
and got a significant list. I noticed that all of the mailman packages seemed to be "Type sdist" and the framework packages "Type wheel". (Dunno what "Type" means in this context.)
Type is the package type. sdist is a source distribution. wheel is a form of binary distribution. Older forms are egg and bdist.
So I tried
pip list -o | grep sdist
and got a smaller list:(venv) mailman@mail:~$ pip list -o | grep sdist atpublic 2.1.1 2.3 sdist django-allauth 0.43.0 0.45.0 sdist django-mailman3 1.3.4 1.3.7 sdist flufl.i18n 3.1.3 3.2 sdist flufl.lock 5.0.3 6.0 sdist HyperKitty 1.3.3 1.3.4 sdist lazr.config 2.2.2 2.2.3 sdist mailman 3.3.2 3.3.5 sdist mailmanclient 3.3.1 3.3.3 sdist mysqlclient 2.0.1 2.0.3 sdist postorius 1.3.3 1.3.6 sdist
Is this a reasonable list of the packages that I should update?
Several of those are dependencies. The packages you should upgrade are mailman, postorius, hyperkitty, django-mailman3 and mailmanclient. Dependencies will be upgraded as required. If a dependency is not upgraded, the older version should work.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 9/29/2021 11:16 AM, Mark Sapiro wrote:
Several of those are dependencies. The packages you should upgrade are mailman, postorius, hyperkitty, django-mailman3 and mailmanclient. Dependencies will be upgraded as required. If a dependency is not upgraded, the older version should work.
Thank you!
It appears that my installation predates the mailman-web package, as I don't have it installed.
But if I understand the docs correctly, it serves to take care of the django-admin commands for migration, static files, js/css compression, etc.
So I think I don't need to do anything special (like add mailman-web), except a database migration after the upgrades.
Cheers, Mojo
Morris Jones, Monrovia, CA BridgeMojo <http://bridgemojo.com> Old Town Sidewalk Astronomers <http://otastro.org> Mojo's Blog <http://mojo.whiteoaks.com>
On 9/29/21 12:32 PM, Morris Jones wrote:
It appears that my installation predates the mailman-web package, as I don't have it installed.
But if I understand the docs correctly, it serves to take care of the django-admin commands for migration, static files, js/css compression, etc.
So I think I don't need to do anything special (like add mailman-web), except a database migration after the upgrades.
That's correct.
I recommend running these Django commands after upgrading
collectstatic --clear compress compilemessages migrate
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Morris Jones