Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.scrapy: fix test failure on Python 3.12 #308844

Closed
wants to merge 2 commits into from

Conversation

vinnymeller
Copy link
Contributor

@vinnymeller vinnymeller commented May 3, 2024

Description of changes

Closes #308235

The current Scrapy release has 1 broken test on Python 3.12. This applies the commit from upstream that fixes the broken test as a patch.

Alternatively we could just ignore the test since the patch is changing the test's expectations - i.e. the behavior is correct, the test is wrong. If that's fine this can be closed in favor of #308157

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 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.

Add a 👍 reaction to pull requests you find important.

@vinnymeller
Copy link
Contributor Author

scrapy-deltafetch is broken on py3.12 due to dependency on now-deprecated distutils, unrelated to this change

Result of nixpkgs-review pr 308844 run on x86_64-linux 1

2 packages failed to build:
  • python312Packages.scrapy-deltafetch
  • python312Packages.scrapy-deltafetch.dist
14 packages built:
  • python311Packages.scrapy
  • python311Packages.scrapy-deltafetch
  • python311Packages.scrapy-deltafetch.dist
  • python311Packages.scrapy-fake-useragent
  • python311Packages.scrapy-fake-useragent.dist
  • python311Packages.scrapy-splash
  • python311Packages.scrapy-splash.dist
  • python311Packages.scrapy.dist
  • python312Packages.scrapy
  • python312Packages.scrapy-fake-useragent
  • python312Packages.scrapy-fake-useragent.dist
  • python312Packages.scrapy-splash
  • python312Packages.scrapy-splash.dist
  • python312Packages.scrapy.dist

@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels May 3, 2024
@vinnymeller
Copy link
Contributor Author

With scrapy-deltafetch disabled on 3.12:

Result of nixpkgs-review pr 308844 run on x86_64-linux 1

14 packages built:
  • python311Packages.scrapy
  • python311Packages.scrapy-deltafetch
  • python311Packages.scrapy-deltafetch.dist
  • python311Packages.scrapy-fake-useragent
  • python311Packages.scrapy-fake-useragent.dist
  • python311Packages.scrapy-splash
  • python311Packages.scrapy-splash.dist
  • python311Packages.scrapy.dist
  • python312Packages.scrapy
  • python312Packages.scrapy-fake-useragent
  • python312Packages.scrapy-fake-useragent.dist
  • python312Packages.scrapy-splash
  • python312Packages.scrapy-splash.dist
  • python312Packages.scrapy.dist

@ofborg ofborg bot requested a review from evanjs May 3, 2024 18:47
@vinnymeller
Copy link
Contributor Author

#309729

@vinnymeller vinnymeller closed this May 7, 2024
@vinnymeller vinnymeller deleted the update-scrapy branch May 7, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build failure: python312Packages.scrapy
1 participant