Skip to content

[staging] Revert "python39: 3.9.6 -> 3.9.7" - #141105

Merged
mweinelt merged 1 commit into
NixOS:stagingfrom
mweinelt:revert-python3.9.7
Oct 9, 2021
Merged

mweinelt merged 1 commit into
NixOS:stagingfrom
mweinelt:revert-python3.9.7

Conversation

@mweinelt

@mweinelt mweinelt commented Oct 9, 2021

Copy link
Copy Markdown
Member
Motivation for this change

This reverts commit d003f75.

Causes an unnecessary amount of breakages due to a DeprecationWarning
regarding the loop argument in asyncio, that is going to be deprecrated
in Python 3.10.

'The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.'

The ecosystem needs more time to catch up here. Broken packages are for
example aiohttp, argh and by extension alot of other packages.

aio-libs/aiohttp#6066
neithere/argh#148

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

This reverts commit d003f75.

Causes an unnecessary amount of breakages due to a DeprecationWarning
regarding the loop argument in asyncio, that is going to be deprecrated
in Python 3.10.

> 'The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.'

The ecosystem needs more time to catch up here. Broken packages are for
example aiohttp, argh and by extension alot of other packages.
@mweinelt
mweinelt requested a review from FRidh as a code owner October 9, 2021 13:30
@mweinelt mweinelt changed the title Revert "python39: 3.9.6 -> 3.9.7" [staging] Revert "python39: 3.9.6 -> 3.9.7" Oct 9, 2021
@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 9, 2021
@mweinelt
mweinelt requested a review from jonringer October 9, 2021 13:30
@ofborg ofborg Bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Oct 9, 2021
@mweinelt

mweinelt commented Oct 9, 2021

Copy link
Copy Markdown
Member Author

We might be able to apply python/cpython@c967bd5 instead of reverting.

@mweinelt

mweinelt commented Oct 9, 2021 •

Copy link
Copy Markdown
Member Author

Applied the patch. Results are as follows:

  • aiohttp down from 610 test failures
= 47 failed, 2464 passed, 29 skipped, 1 deselected, 3 xfailed in 240.14s (0:04:00) =

Still probably best to go with the revert.

@mweinelt

mweinelt commented Oct 9, 2021

Copy link
Copy Markdown
Member Author

Merging so I can continue with #141037.

@mweinelt
mweinelt merged commit 5383c19 into NixOS:staging Oct 9, 2021
@mweinelt
mweinelt deleted the revert-python3.9.7 branch October 9, 2021 21:49
@bergkvist

Copy link
Copy Markdown
Member

A downside of this revert is that this patch is not included (the first release containing it is Python 3.9.7). Which means pkgs.python39 can't really be used reliably on macOS Big Sur right now.

@mweinelt

Copy link
Copy Markdown
Member Author

@bergkvist PTAL #146477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants