Discussion:
Proposed Mass Bug: removal of Python standard libraries in Python 3.13
(too old to reply)
Louis-Philippe Véronneau
2024-10-06 16:00:01 UTC
Permalink
Hello,

The `uses-deprecated-python-stdlib` lintian tag finally seems to be
ready. \0/

I'm hereby proposing to do a mass bug filing for all the packages that
are currently using libraries that will be deprecated in Python 3.13. As
of now, 208 packages are affected.

Attached is a dd-list.txt file and a sample email, based on the
qtwebengine-opensource-src source package (the first in my list).

Happy to make changes to the email template if needed. I'm planning on
opening the bugs on Monday.

Cheers,

--
⢀⣎⠟⠻⢶⣊⠀
⣟⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ ***@debian.org / veronneau.org
⠈⠳⣄
Stefano Rivera
2024-10-06 16:10:02 UTC
Permalink
Hi Louis-Philippe (2024.10.06_15:51:39_+0000)
pypy3
python3.12 (U)
Those are both false positives as they are python implementations.

Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Scott Kitterman
2024-10-06 17:20:01 UTC
Permalink
Are these deprecated in 3.13 or removed?

If they are deprecated, then I would expect them to still work, but with a warning. If they no longer are present, then I think deprecated is the wrong word in the bug template.

Scott K
Post by Louis-Philippe Véronneau
Hello,
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
I'm hereby proposing to do a mass bug filing for all the packages that are currently using libraries that will be deprecated in Python 3.13. As of now, 208 packages are affected.
Attached is a dd-list.txt file and a sample email, based on the qtwebengine-opensource-src source package (the first in my list).
Happy to make changes to the email template if needed. I'm planning on opening the bugs on Monday.
Cheers,
weepingclown
2024-10-06 17:50:01 UTC
Permalink
Hi,

They were deprecated in 3.11 and will be removed in 3.13.

Best,
Ananthu
Post by Scott Kitterman
Are these deprecated in 3.13 or removed?
Scott Kitterman
2024-10-06 18:10:01 UTC
Permalink
Then the proposed bug text needs to be updated to reflect that.

Scott K
Post by weepingclown
Hi,
They were deprecated in 3.11 and will be removed in 3.13.
Best,
Ananthu
Post by Scott Kitterman
Are these deprecated in 3.13 or removed?
Louis-Philippe Véronneau
2024-10-06 20:20:02 UTC
Permalink
Post by Scott Kitterman
Then the proposed bug text needs to be updated to reflect that.
Scott K
Post by weepingclown
Hi,
They were deprecated in 3.11 and will be removed in 3.13.
Best,
Ananthu
Post by Scott Kitterman
Are these deprecated in 3.13 or removed?
Fixed, thanks.
--
⢀⣎⠟⠻⢶⣊⠀
⣟⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ ***@debian.org / veronneau.org
⠈⠳⣄
Karsten Hilbert
2024-10-06 18:30:01 UTC
Permalink
Post by Louis-Philippe Véronneau
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
I'm hereby proposing to do a mass bug filing for all the packages that are currently
using libraries that will be deprecated in Python 3.13.
...
Post by Louis-Philippe Véronneau
I'm planning on opening the bugs on Monday.
...
Post by Louis-Philippe Véronneau
gnumed-client (U)
gnumed-server (U)
That's a false positive. It uses mailcap, which is removed
in 3.13, but when it fails to import mailcap from stdlib it
uses its own copy.

Best,
Karsten
(upstream)
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
Karsten Hilbert
2024-10-06 18:30:01 UTC
Permalink
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
...
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
gnumed-client (U)
gnumed-server (U)
That's a false positive. It uses mailcap, which is removed
in 3.13, but when it fails to import mailcap from stdlib it
uses its own copy.
I would, however, still be interested in what lintian says.

I may have missed a dependency ;-)

Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
Louis-Philippe Véronneau
2024-10-06 20:20:02 UTC
Permalink
Post by Karsten Hilbert
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
...
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
gnumed-client (U)
gnumed-server (U)
That's a false positive. It uses mailcap, which is removed
in 3.13, but when it fails to import mailcap from stdlib it
uses its own copy.
I would, however, still be interested in what lintian says.
I may have missed a dependency ;-)
There's bound to be _some_ false positives... Considering that Lintian
doesn't actually run any Python code and only statically analyses source
code, weeding out packages that try to import removed libraries and do
something else when that fails would be pretty hard to do.

In those cases, I'm sure maintainers will know better and just close the
bugs.

--
⢀⣎⠟⠻⢶⣊⠀
⣟⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ ***@debian.org / veronneau.org
⠈⠳⣄
Étienne Mollier
2024-10-09 14:00:01 UTC
Permalink
Hi Karsten,
Post by Karsten Hilbert
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
...
Post by Karsten Hilbert
Post by Louis-Philippe Véronneau
gnumed-client (U)
gnumed-server (U)
That's a false positive. It uses mailcap, which is removed
in 3.13, but when it fails to import mailcap from stdlib it
uses its own copy.
I would, however, still be interested in what lintian says.
I may have missed a dependency ;-)
You can lookup lintian flags affecting your software on UDD's
lintian form[1]. Regarding the use of deprecated Python
standard libraries, I see gnumed-client[2] and gnumed-server[3]
are only flagged with mailcap, so things ought to be alright.

[1]: https://udd.debian.org/lintian/
[2]: https://udd.debian.org/lintian/?email1=&email2=&email3=&packages=gnumed-client&ignpackages=&format=html&lt_information=on&lintian_tag=uses-deprecated-python-stdlib#all
[3]: https://udd.debian.org/lintian/?email1=&email2=&email3=&packages=gnumed-server&ignpackages=&format=html&lt_information=on&lintian_tag=uses-deprecated-python-stdlib#all

Have a nice day, :)
--
.''`. Étienne Mollier <***@debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/1, please excuse my verbosity
`-
Karsten Hilbert
2024-10-09 18:10:02 UTC
Permalink
Post by Étienne Mollier
Post by Karsten Hilbert
I would, however, still be interested in what lintian says.
I may have missed a dependency ;-)
You can lookup lintian flags affecting your software on UDD's
lintian form[1]. Regarding the use of deprecated Python
standard libraries, I see gnumed-client[2] and gnumed-server[3]
are only flagged with mailcap, so things ought to be alright.
[1]: https://udd.debian.org/lintian/
[2]: https://udd.debian.org/lintian/?email1=&email2=&email3=&packages=gnumed-client&ignpackages=&format=html&lt_information=on&lintian_tag=uses-deprecated-python-stdlib#all
[3]: https://udd.debian.org/lintian/?email1=&email2=&email3=&packages=gnumed-server&ignpackages=&format=html&lt_information=on&lintian_tag=uses-deprecated-python-stdlib#all
Ha ! Didn't know about those, thanks Étienne.

Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B

Carsten Schoenert
2024-10-06 19:10:01 UTC
Permalink
Hi,
Post by Louis-Philippe Véronneau
Hello,
The `uses-deprecated-python-stdlib` lintian tag finally seems to be
ready. \0/
is there a repo existing where a current WIP of the Python 3.13 is built
as .deb packages?
Or could this be prepared?

Would be helpful for looking at some packages I think.
--
Regards
Carsten
Stefano Rivera
2024-10-06 19:20:01 UTC
Permalink
Hi Carsten (2024.10.06_19:09:26_+0000)
is there a repo existing where a current WIP of the Python 3.13 is built as
.deb packages?
Or could this be prepared?
Debian unstable.

But nothing is built against it, yet. That will happen when the release
team is ready to start the python3.13-add transition.

Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Matthias Klose
2024-10-06 23:40:01 UTC
Permalink
Post by Stefano Rivera
Hi Carsten (2024.10.06_19:09:26_+0000)
is there a repo existing where a current WIP of the Python 3.13 is built as
.deb packages?
Or could this be prepared?
Debian unstable.
But nothing is built against it, yet. That will happen when the release
team is ready to start the python3.13-add transition.
plus we should not do that before the 3.13 upstream release. I'm
targeting 1-2 weeks after the 3.13 release for the addition of 3.13 as a
supported Python version.

Matthias
Matthias Klose
2024-10-06 23:30:01 UTC
Permalink
Post by Louis-Philippe Véronneau
Hello,
The `uses-deprecated-python-stdlib` lintian tag finally seems to be
ready. \0/
I'm hereby proposing to do a mass bug filing for all the packages that
are currently using libraries that will be deprecated in Python 3.13. As
of now, 208 packages are affected.
Attached is a dd-list.txt file and a sample email, based on the
qtwebengine-opensource-src source package (the first in my list).
Happy to make changes to the email template if needed. I'm planning on
opening the bugs on Monday.
that looks good to me. You might want to check with the 3.13 bugs
already filed by Stefano for overlaps, but that should not be a
showstopper. It's important that maintainers are aware of these reports,
and that we can raise severities when we are progressing with the 3.13
transitions.

Matthias
Scott Kitterman
2024-10-07 05:00:02 UTC
Permalink
Additional thought on this: should arch: all packages with this issue have Depends python3 (=< 3.13) added in stable so they get upgraded in the correct order?

Scott K
Post by Louis-Philippe Véronneau
Hello,
The `uses-deprecated-python-stdlib` lintian tag finally seems to be ready. \0/
I'm hereby proposing to do a mass bug filing for all the packages that are currently using libraries that will be deprecated in Python 3.13. As of now, 208 packages are affected.
Attached is a dd-list.txt file and a sample email, based on the qtwebengine-opensource-src source package (the first in my list).
Happy to make changes to the email template if needed. I'm planning on opening the bugs on Monday.
Cheers,
Stefano Rivera
2024-10-07 14:50:01 UTC
Permalink
Hi Scott (2024.10.07_04:56:04_+0000)
Post by Scott Kitterman
Additional thought on this: should arch: all packages with this issue
have Depends python3 (=< 3.13) added in stable so they get upgraded in
the correct order?
FWIW, we now have python3-supported-min, so that should be
Depends: python3-supported-min (<< 3.13)

Or:
Breaks: python3-supported-min (>= 3.13)

Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Scott Kitterman
2024-10-07 15:20:01 UTC
Permalink
Post by Stefano Rivera
Hi Scott (2024.10.07_04:56:04_+0000)
Post by Scott Kitterman
Additional thought on this: should arch: all packages with this issue
have Depends python3 (=< 3.13) added in stable so they get upgraded in
the correct order?
FWIW, we now have python3-supported-min, so that should be
Depends: python3-supported-min (<< 3.13)
Breaks: python3-supported-min (>= 3.13)
If we were to end up with 3.12 and 3.13 supported for the next release, but 3.13 as default, that constraint would be satisfied. I suppose that's okay. I think Depends is better than Breaks in this case since the python interpreter isn't affected at all.

Scott K
Louis-Philippe Véronneau
2024-10-07 17:10:01 UTC
Permalink
Post by Louis-Philippe Véronneau
Hello,
The `uses-deprecated-python-stdlib` lintian tag finally seems to be
ready. \0/
I'm hereby proposing to do a mass bug filing for all the packages that
are currently using libraries that will be deprecated in Python 3.13. As
of now, 208 packages are affected.
Attached is a dd-list.txt file and a sample email, based on the
qtwebengine-opensource-src source package (the first in my list).
Happy to make changes to the email template if needed. I'm planning on
opening the bugs on Monday.
Cheers,
Done!

Here's the list:

https://udd.debian.org/cgi-bin/bts-usertags.cgi?user=debian-python%40lists.debian.org&tag=pep-594-deprecation-313
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ ***@debian.org / veronneau.org
⠈⠳⣄
Loading...