Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16854

Re: Matplotlib 3.10.0 for trixie?

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Nilesh Patra <nilesh@riseup.net>
Newsgroups linux.debian.maint.python
Subject Re: Matplotlib 3.10.0 for trixie?
Date Sun, 13 Apr 2025 00:40:01 +0200
Message-ID <KARG1-d5nC-1@gated-at.bofh.it> (permalink)
References <KgGNb-haJT-5@gated-at.bofh.it> <Kj7pT-1fd6-5@gated-at.bofh.it> <KjjKp-1n2p-5@gated-at.bofh.it> <KnmJH-45f5-5@gated-at.bofh.it> <Kp7ZT-5gEo-7@gated-at.bofh.it> <KpDdn-5E29-1@gated-at.bofh.it> <KpDwJ-5Esq-3@gated-at.bofh.it> <KqXMJ-6vHc-5@gated-at.bofh.it> <Kr3S9-6zp4-3@gated-at.bofh.it> <Kr9bb-6Ddb-5@gated-at.bofh.it> <KrsQx-6QxA-1@gated-at.bofh.it> <KrMcy-72We-11@gated-at.bofh.it> <KADWp-cVY3-5@gated-at.bofh.it> <KAIMp-cZyW-5@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Apr 12 22:30:10 2025
Old-Return-Path <nilesh@riseup.net>
X-Amavis-Spam-Status No, score=-2.798 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Riseup-User-ID 6F388941E48E9195388E772FE42E023E183DEAC95B086EA7359DD427028133DD
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22975
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/32554F5E-AADB-434F-BB3C-8336FB2B9056@riseup.net
Approved robomod@news.nic.it
Lines 75
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Alexandre Detiste <alexandre.detiste@gmail.com>, debian-python@lists.debian.org
X-Original-Date Sun, 13 Apr 2025 03:41:23 +0530
X-Original-Message-ID <32554F5E-AADB-434F-BB3C-8336FB2B9056@riseup.net>
X-Original-References <29b74bd1-2181-4bf3-81a6-003cab5df87f@debian.org> <CADsTwjKXAR1ps_SiEwEABYoejwJQkx_tngK9QszQqfzUPdR+JA@mail.gmail.com> <84b7b620-6f18-4f54-a13d-bb38ae0ee839@fsfe.org> <c4c47c60-39ef-4298-b514-3d538f685441@debian.org> <cbae4637-1819-4fb9-873c-8cc21ebb408e@debian.org> <CALDQ5NxbCKEt5HYEviDSrTPkgUsoiEJRwerLrYZuLnBTbJsq7Q@mail.gmail.com> <73CF4D23-2E84-40DB-9EBE-D74E9585ED00@riseup.net> <6d4e26d0-5fbd-4893-9264-1fb255111404@riseup.net> <CADsTwj+8KtpL7mPX_+PynCKG+mCbssNQLygnzQSgUWuc_Epnsg@mail.gmail.com> <418B4F61-1ADC-49EE-9946-9D31623456CD@riseup.net> <CADsTwjKkPoE5bS42_e93RG629B8xW3xiguwE5hY7sU+-5OLNEg@mail.gmail.com> <332450BD-FF2D-4BCC-A313-90809A0DB09D@riseup.net> <ae3dd419-4b01-4801-9a74-7f87179f943d@debian.org> <CALDQ5Ny_oBD+ePM=XEW7qJC4u6moQvtBHjPfo9ZU9ntbrRE89w@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:16854

Show key headers only | View raw


On 12 April 2025 6:18:20 pm IST, James Addison <jay@jp-hosting.net> wrote:
>Hi Nilesh, Alex,
>
>Responding to the first point only, at the moment:
>
>On Sat, 12 Apr 2025 at 07:39, Nilesh Patra <nilesh@debian.org> wrote:
>> [ ... snip ... ]
>> 1. matplotlib has historically shipped /etc/matploblibrc to force tkagg and patched the code
>> to use this if there are no user defined rc files see [1]. However, this was not
>> handled properly via maintscripts so that'd mean over-writing user-modified /etc/matplotlibrc.
>
>Ah; what is the problem related to the maintscripts?
>
>The /etc/matplotlibrc file is considered a config file by apt/dpkg (it
>is not removed unless a purge is requested), so I was hoping that
>shipping a default/unmodified matplotlibrc in an updated 3.10 upload
>(as Alex suggests in his thread) would provide a useful additional
>conflict-resolution step for anyone who has modified theirs.

I usually had to mention such files it in d/conffiles.

I now tried to unpack control.tar.xz of python3-matplotlib-data and saw it there regardless.
Seems dh is doing its magic so I suppose my concern quoted above is invalid.

Regardless, it makes sense to still do a -3 upload.

>> The backend detection logic is now better and I feel we should get rid of the "yield '/etc/matplotlibrc'" in
>> [1] and also stop shipping the conffile both and add in a rm_conffile to remove previously
>> installed /etc/matplotlibrc.
>
>I don't have a strong opinion about this part, although when in
>sysadmin mode, I do tend to go looking in /etc first to find config
>files.
>
>On the other hand, we wouldn't be the first package to read config
>files from elsewhere on the filesystem - pipewire springs to mind as
>another case where default config files are located under /usr/share,
>for example.

Right. But, pipewire is much more than a python library that is intended to be consumed by other python applications and/or end user as a part of their code.

It makes sense to have binaries, command line utilities even gui apps to have a conffile in /etc. But it looks weird for a python library to have one especially when the practical benefits are not great.

I really doubt if any sysadmin takes the time to edit /etc/matplotlibrc. But yes this should be targeting forky release instead.

>> Probably also a d/NEWS to inform the sysadmin that this no longer works. It does not make
>> sense to me for a python lib to have a conffile.
>
>+1 to a NEWS entry.  I'm not so sure about removing the conffile
>entirely yet, though.  I think it may be safer to treat it as a
>feature deprecation, allowing time for feedback about any use cases
>that seem to require it and/or for users to migrate to alternatives.

ACK.

>Regards,
>James


Best,
Nilesh

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-02-16 08:00 +0100
  Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-02-23 00:50 +0100
    Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@fsfe.org> - 2025-02-23 14:00 +0100
      Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-03-06 18:00 +0100
        Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-03-11 14:40 +0100
          Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-03-13 00:00 +0100
            Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-13 00:20 +0100
              Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-16 16:10 +0100
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-03-16 22:40 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-17 04:20 +0100
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-03-18 01:20 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-18 08:00 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-18 10:10 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-18 12:10 +0100
                Re: Matplotlib 3.10.0 for trixie? Lucas Nussbaum <lucas@debian.org> - 2025-03-30 10:30 +0200
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-03-30 13:50 +0200
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-03-30 14:00 +0200
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-03-18 22:00 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-03-22 20:30 +0100
                Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-03-23 13:30 +0100
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2025-04-12 10:00 +0200
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-04-12 12:20 +0200
                Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-04-12 15:10 +0200
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-04-12 20:20 +0200
                Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-04-12 23:00 +0200
                Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-04-12 23:40 +0200
                Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@riseup.net> - 2025-04-13 00:40 +0200
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-04-19 17:40 +0200
                Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-10-23 17:50 +0200
                Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-10-31 17:50 +0100
    Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-02-23 19:50 +0100
      Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-02-23 20:50 +0100

csiph-web