https://salsa.debian.org/cpython-team/python3-defaults/-/merge_requests/13
Please review it and give me feedback.
Matthias: I'm CCing you, because you had concerns when I mentioned this
on IRC. But I hadn't provided a clear description of what I was
proposing. Does this sound like something that works?
Take the example in #1027947. If this proposal had been in place
already, what would he have been the generated dependency and how
would it have worked?
dh_python3 would have been able to generate
python3-tomli | python3-min-version (>= 3.11)
instead of
python3-tomli | python3 (>> 3.11)
Then, once python3.10 was dropped from supported, python3 would
Provides: python3-min-version (= 3.11), python3-max-version (= 3.11)
The >= vs >> isn't particularly relevant here. At the moment python3 (>> 3.11) >effectively means >= 3.11, because it's always 3.11.something-something.
Take the example in #1027947. If this proposal had been in place
already, what would he have been the generated dependency and how
would it have worked?
dh_python3 would have been able to generate
python3-tomli | python3-min-version (>= 3.11)
instead of
python3-tomli | python3 (>> 3.11)
Then, once python3.10 was dropped from supported, python3 would
Provides: python3-min-version (= 3.11), python3-max-version (= 3.11)
And python3-min-version is a virtual package, so dpgk doesn't need any special knowledge to do the right thing, right? I think that's reasonable.
Yeah.
Typically though doesn't the python interpreter package provide modules that are now incorporated? If python3.11 provides python3-tomli, won't that mess this up?
I can't recall how this was done historically, but the git history of
python3 and python3-defaults doesn't show any provides like that. The
only one I can see is python3-profiler, which is provided by python3,
not python3.X.
dh_python3 would have been able to generate
python3-tomli | python3-min-version (>= 3.11)
instead of
python3-tomli | python3 (>> 3.11)
Then, once python3.10 was dropped from supported, python3 would
Provides: python3-min-version (= 3.11), python3-max-version (= 3.11)
And python3-min-version is a virtual package, so dpgk doesn't need any special knowledge to do the right thing, right? I think that's reasonable.
Typically though doesn't the python interpreter package provide modules that are now incorporated? If python3.11 provides python3-tomli, won't that mess this up?
Typically though doesn't the python interpreter package provide modules that are now incorporated? If python3.11 provides python3-tomli, won't that mess this up?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 71:08:46 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,069 |
Messages: | 5,849,950 |