Skip to content

Port to Python 3#8

Open
cclauss wants to merge 3 commits intowheelerda:masterfrom
cclauss:port-to-python3
Open

Port to Python 3#8
cclauss wants to merge 3 commits intowheelerda:masterfrom
cclauss:port-to-python3

Conversation

@cclauss
Copy link

@cclauss cclauss commented Apr 17, 2025

To enable side-by-side comparisons:

  • extract-mbz.py is Python 2 code. -- Hyphen
  • extract_mbz.py is Python 3 code. -- Underscore

  • Copy and rename to use underscore instead of hyphen
  • uv tool run --from=future --python=3.9 futurize --stage1 -w extract_mbz.py
  • uv tool run ruff check --exclude=extract-mbz.py
  • uv tool run ruff format --exclude=extract-mbz.py
  • uv shebang line + chmod +x extract_mbz.py
  • Add PEP723 header to install python-magic and slugify

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.

1 participant