Discussion:
Bug#931659: transition: rm python2
(too old to reply)
Scott Kitterman
2019-07-08 22:40:01 UTC
Permalink
Package: release.debian.org
Severity: normal
User: ***@packages.debian.org
Usertags: transition

The Debian Python teams are working to push early for reduction/removal
of our python(2) packages with the goal of releasing bullseye with
python3 only. is_bad includes all the binaries in python-defaults and
python2.7 source packages.

A transition tracker would help us track the work.

Scott K

Ben file:

title = "python-defaults";
is_affected = .depends ~ /python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/ | .depends ~ "''";
is_good = .depends ~ "''";
is_bad = .depends ~ /python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/;
Jonathan Wiltshire
2019-07-09 08:30:02 UTC
Permalink
Control: tag -1 moreinfo

Hi,
Post by Scott Kitterman
title = "python-defaults";
is_affected = .depends ~ /python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/ | .depends ~ "''";
I don't quite understand the alternative .depends, "''". Can you clarify
please?

Thanks,
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
Scott Kitterman
2019-07-09 11:30:01 UTC
Permalink
Post by Jonathan Wiltshire
Control: tag -1 moreinfo
Hi,
Post by Scott Kitterman
title = "python-defaults";
is_affected = .depends ~
/python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/
| .depends ~ "''";
I don't quite understand the alternative .depends, "''". Can you clarify
please?
Thanks,
That's the binaries produced by python-defaults and python2.7 as affected/bad. Good is empty since it about removal.

As doko says, it's not clear that we'll be able to remove the entire stack for bullseye. The tracker will help see where we are.

Scott K
Jonathan Wiltshire
2019-07-21 20:00:03 UTC
Permalink
Control: forwarded -1 https://release.debian.org/transitions/html/python2-rm.html
Post by Scott Kitterman
Post by Jonathan Wiltshire
Control: tag -1 moreinfo
Hi,
Post by Scott Kitterman
title = "python-defaults";
is_affected = .depends ~
/python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/
| .depends ~ "''";
I don't quite understand the alternative .depends, "''". Can you clarify
please?
Thanks,
That's the binaries produced by python-defaults and python2.7 as affected/bad. Good is empty since it about removal.
That wasn't quite what I meant - it was the alternative .depends for
affected which puzzled me. But this seems to be an artefact of reportbug.

I *think* I have the tracker right now, please see
https://release.debian.org/transitions/html/python2-rm.html
It's certainly long, does it look plausible?
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
Scott Kitterman
2019-07-21 20:10:01 UTC
Permalink
Thanks. It looks plausible. As doko mentioned, it'll need the same for build depends.

Scott K
Jonathan Wiltshire
2019-07-21 20:20:01 UTC
Permalink
Post by Scott Kitterman
Thanks. It looks plausible. As doko mentioned, it'll need the same for build depends.
It already has the .build-depends, the answer to that is what I was waiting
for.
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
Scott Kitterman
2019-07-21 20:30:02 UTC
Permalink
Post by Jonathan Wiltshire
Post by Scott Kitterman
Thanks. It looks plausible. As doko mentioned, it'll need the same for build depends.
It already has the .build-depends, the answer to that is what I was waiting
for.
Thanks. I see that now. I guess that's what I get for trying to read it on
my phone.

Scott K
Stefano Rivera
2019-07-23 15:20:01 UTC
Permalink
The current regex is using \bpython, which matches dh-python.

I suggest this patch, using \s instead.

Gets us down to 3455/4057.

SR
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Jonathan Wiltshire
2019-07-26 22:20:01 UTC
Permalink
Post by Stefano Rivera
The current regex is using \bpython, which matches dh-python.
I suggest this patch, using \s instead.
Gets us down to 3455/4057.
Thanks; applied. Will take effect at the next run, I'm not inclined to make
respighi crunch that many packages right now.
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
Matthias Klose
2019-07-09 09:40:02 UTC
Permalink
Post by Scott Kitterman
Package: release.debian.org
Severity: normal
Usertags: transition
The Debian Python teams are working to push early for reduction/removal
of our python(2) packages with the goal of releasing bullseye with
python3 only.
To clarify, python2 removal is much appreciated, however if we need to ship it
for some applications, we will do that. There is no such goal yet for bullseye.
Matthias Klose
2019-07-09 16:00:01 UTC
Permalink
Post by Scott Kitterman
title = "python-defaults";
is_affected = .depends ~ /python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/ | .depends ~ "''";
is_good = .depends ~ "''";
is_bad = .depends ~ /python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-doc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpython-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpython2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|python2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|idle-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/;
this is missing all cases where python2 is only used for the build, and doesn't
end up in any python/python2 dependency. So realistically, check for python and
python2 in B-D's as well.
Scott Kitterman
2019-07-20 04:00:01 UTC
Permalink
Post by Matthias Klose
Post by Scott Kitterman
title = "python-defaults";
is_affected = .depends ~
/python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-d
oc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpy
thon-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpyth
on2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7
|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|p
ython2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|id
le-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/ | .depends ~
"''"; is_good = .depends ~ "''";
is_bad = .depends ~
/python|python-minimal|python-dev|libpython-dev|libpython-stdlib|python-d
oc|python-dbg|libpython-dbg|python-all|python-all-dev|python-all-dbg|libpy
thon-all-dev|libpython-all-dbg|python2|python2-minimal|python2-dev|libpyth
on2-dev|libpython2-stdlib|python2-doc|python2-dbg|libpython2-dbg|python2.7
|libpython2.7-stdlib|python2.7-minimal|libpython2.7-minimal|libpython2.7|p
ython2.7-examples|python2.7-dev|libpython2.7-dev|libpython2.7-testsuite|id
le-python2.7|python2.7-doc|python2.7-dbg|libpython2.7-dbg/;
this is missing all cases where python2 is only used for the build, and
doesn't end up in any python/python2 dependency. So realistically, check
for python and python2 in B-D's as well.
Agreed. It should have the same in .build-depends.

Scott K
Matthias Klose
2019-08-21 19:50:02 UTC
Permalink
could somebody fix the py2-removal tracker again? replacing the terminating \b
chars with \s (4 times)? currently it matches all python-* (python-gi-dev,
python-*-doc, ...) I think we are better with a smaller set

this removes around 2000 matches, and obviously is missing some dependencies,
but the current tracker has too many false positives. Or we create another
tracker with this change.

Interesting thing found: python-gi-dev depends on both python2 and 3 packages ...
Bastian Germann
2023-01-10 21:40:01 UTC
Permalink
Control: notforwarded -1

Can this be closed?

Loading...