-
Notifications
You must be signed in to change notification settings - Fork 0
Add python2 to CI #2
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
Open
nathom
wants to merge
13
commits into
main
Choose a base branch
from
python2-tes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The python:2.7-slim image is based on Debian Buster which has been archived. This Dockerfile configures apt to use archive.debian.org. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- macOS: Use pyenv on macos-13 runner to install Python 2.7.18 - Windows: Download and install Python 2.7.18 MSI from python.org Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix shutil.which import error on Python 2.7 (which was added in Python 3.3) - Try macos-12 runner for Python 2.7 testing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Windows: Use PowerShell irm/iex to download and run installer directly, avoiding Python 2.7 SSL/TLS issues - macOS: Use official python.org .pkg installer instead of building from source with pyenv (much faster) - Add more Windows paths for finding uv binary Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add debug step to find where uv.exe is installed on Windows - Use macos-15-large runner for macOS Python 2.7 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Don't suppress uv installer output so we can see errors - Use macos-latest with Rosetta for Python 2.7 (free runner) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use two-step PowerShell approach: download script first, then run it. This avoids module loading issues when subprocess invokes PowerShell from Python 2.7. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use cmd.exe to launch PowerShell to work around module loading restrictions when subprocess directly invokes PowerShell. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The uv install.ps1 script uses Get-ExecutionPolicy which fails when the PowerShell Security module can't be loaded. Work around by downloading the uv binary directly from GitHub releases. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add SSL context with disabled verification for Python 2.7 cert issues - Windows: download uv binary directly via urllib (avoids PowerShell bug) - Uses only Python standard library (urllib, ssl, zipfile) 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.