Skip to content

Add Python 3.12 support and modern package management#156

Open
csajedi wants to merge 7 commits intobytedance:masterfrom
starling-foundries:master
Open

Add Python 3.12 support and modern package management#156
csajedi wants to merge 7 commits intobytedance:masterfrom
starling-foundries:master

Conversation

@csajedi
Copy link
Copy Markdown

@csajedi csajedi commented Oct 31, 2025

This commit adds support for Python 3.12 and provides an alternative installation method using UV, while maintaining full backward compatibility with existing pip-based workflows.

Changes:

  • Add pyproject.toml with PEP 621 compliant project metadata
  • Fix numpy compatibility: constrain to <2.0 for Python 3.12 support
  • Relax torch/torchvision constraints to allow Python 3.12 compatible versions
  • Fix OpenCV version constraints to avoid known compatibility issues
  • Add UV as an optional, faster installation method in README
  • Update .gitignore for modern Python tooling

All changes maintain backward compatibility with pip and requirements.txt. Tested with Python 3.12.9 on macOS with the Dolphin-1.5 model.

This commit adds support for Python 3.12 and provides an alternative
installation method using UV, while maintaining full backward
compatibility with existing pip-based workflows.

Changes:
- Add pyproject.toml with PEP 621 compliant project metadata
- Fix numpy compatibility: constrain to <2.0 for Python 3.12 support
- Relax torch/torchvision constraints to allow Python 3.12 compatible versions
- Fix OpenCV version constraints to avoid known compatibility issues
- Add UV as an optional, faster installation method in README
- Update .gitignore for modern Python tooling

All changes maintain backward compatibility with pip and requirements.txt.
Tested with Python 3.12.9 on macOS with the Dolphin-1.5 model.
csajedi and others added 6 commits February 26, 2026 17:07
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes dependency confusion where ROCm index had stale versions
of common packages like requests, blocking resolution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The ROCm index has pytorch-triton-rocm but UV can't find it via
explicit+sources for transitive deps. Non-explicit index with
unsafe-best-match lets UV find ROCm packages while preferring
PyPI for everything else.

Co-Authored-By: Claude Opus 4.6 <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