Skip to content

Migrate from Python 2 to Python 3 and modernize packaging#10

Open
ronreiter wants to merge 1 commit intoEverythingMe:masterfrom
ronreiter:python3-migration
Open

Migrate from Python 2 to Python 3 and modernize packaging#10
ronreiter wants to merge 1 commit intoEverythingMe:masterfrom
ronreiter:python3-migration

Conversation

@ronreiter
Copy link
Copy Markdown

Summary

  • Migrate codebase from Python 2 to Python 3 compatibility
  • Replace setup.py with modern pyproject.toml using hatchling build system
  • Update .gitignore for uv package manager

Changes

  • Remove from __future__ import absolute_import statements
  • Update class syntax from class Foo(object): to class Foo:
  • Replace itertools.izip_longest with itertools.zip_longest
  • Update exception syntax to except SyntaxError as e:
  • Replace xrange with range
  • Update urlparse import for Python 3 (from urllib.parse import urlparse)

Test plan

  • Verify installation with pip install .
  • Test against an S3 bucket to ensure functionality is preserved

🤖 Generated with Claude Code

- Remove `from __future__ import absolute_import` statements
- Update class syntax from `class Foo(object):` to `class Foo:`
- Replace `itertools.izip_longest` with `itertools.zip_longest`
- Update exception syntax to `except SyntaxError as e:`
- Replace `xrange` with `range`
- Update `urlparse` import for Python 3
- Migrate from setup.py to pyproject.toml with hatchling build system
- Update .gitignore for uv package manager

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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