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

Unset metadata_from + rollback to Python 3.10 #185

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Conversation

benoit74
Copy link
Collaborator

@benoit74 benoit74 commented Nov 16, 2023

Rationale

  • we should release a 2.2.0 asap with current main status since this would solve urllib3 versions are conflicting #184 (which is blocking all scrapers) but:
    • there is a strange error about metadata_from when running the scraper with youtube2zim-playlists ; it is obviously harmless to simply disable this code since it is not possible to setup the metadata_from which current code anyway
    • main is in fact not correct, it is using Python 3.11 while we are still at zimscraperlib 2.0 which supports only Python 3.10 (don't know why this is not causing a problem in Docker build + why it does not raised a red flag before)

Changes

  • set metadata_from to always be None for now
  • rollback to Python 3.10
  • align zimscraperlib version constraints in hatch dependencies with project version (just in case)

@benoit74 benoit74 self-assigned this Nov 16, 2023
@benoit74 benoit74 changed the title Remove unused metadata + unused noqa Unset metadata_from + remove unused noqa Nov 16, 2023
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a0e0300) 1.83% compared to head (bd67bbb) 1.83%.

Files Patch % Lines
src/youtube2zim/playlists/scraper.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #185   +/-   ##
=====================================
  Coverage   1.83%   1.83%           
=====================================
  Files         10      10           
  Lines        928     928           
  Branches     164     147   -17     
=====================================
  Hits          17      17           
  Misses       911     911           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benoit74
Copy link
Collaborator Author

I propose to ignore codecov warning, since the file is not covered at all anyway.

@benoit74 benoit74 changed the title Unset metadata_from + remove unused noqa Unset metadata_from + rollback to Python 3.10 Nov 16, 2023
@benoit74
Copy link
Collaborator Author

I just fixed the PR title which was wrong indeed.

Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@benoit74 benoit74 merged commit d9146ee into main Nov 16, 2023
6 of 7 checks passed
@benoit74 benoit74 deleted the remove_unused_metadata branch November 16, 2023 16:20
@benoit74 benoit74 added this to the 2.2.0 milestone Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants