Skip to content

Commit 319b0a4

Browse files
committed
feat: Migrate all formulas from python@3.12 to python@3.13
Migrates taskrepo, rxiv-maker, and folder2md4llms to python@3.13. This resolves CI test failures caused by python@3.12 deprecation issues. Changes: - Update all formulas to depend on python@3.13 - Update venv creation to use python3.13 - Simplify test workflows (remove workarounds) - Re-enable all test workflows
1 parent cfc0491 commit 319b0a4

7 files changed

Lines changed: 7 additions & 119 deletions

File tree

File renamed without changes.
File renamed without changes.

.github/workflows/test-taskrepo.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,9 @@ jobs:
4242
- name: Install taskrepo
4343
env:
4444
HOMEBREW_NO_INSTALL_CLEANUP: 1
45-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
4645
run: |
4746
echo "Installing taskrepo..."
48-
# Try installing formula (may have python@3.12 deprecation warnings)
49-
brew install --build-from-source "henriqueslab/formulas/taskrepo" 2>&1 | tee install.log || {
50-
# Check if it's just the deprecation warning issue
51-
if grep -q "missing keywords: :date, :because" install.log; then
52-
echo "⚠️ Python deprecation warning detected (known Homebrew issue)"
53-
# Try installing with --force-bottle for python
54-
brew uninstall --ignore-dependencies taskrepo 2>/dev/null || true
55-
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source "henriqueslab/formulas/taskrepo" || {
56-
if brew list "taskrepo" &>/dev/null; then
57-
echo "✓ Formula installed despite warnings"
58-
else
59-
echo "❌ Formula installation failed"
60-
exit 1
61-
fi
62-
}
63-
elif brew list "taskrepo" &>/dev/null; then
64-
echo "⚠️ Formula installed with warnings (expected for Python venvs)"
65-
else
66-
echo "❌ Formula installation failed"
67-
cat install.log
68-
exit 1
69-
fi
70-
}
47+
brew install --build-from-source "henriqueslab/formulas/taskrepo"
7148
7249
- name: Test taskrepo
7350
run: |

.github/workflows/test-taskrepo.yml.disabled

Lines changed: 0 additions & 89 deletions
This file was deleted.

Formula/folder2md4llms.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ class Folder2md4llms < Formula
66
sha256 "5b4ad2f89c821f8d5178645a549517d4a5bcd9510cc17d9e8b937f07a52f6a08"
77
license "MIT"
88

9-
depends_on "python@3.12"
9+
depends_on "python@3.13"
1010
depends_on "libmagic"
1111

1212
def install
1313
# Create a virtual environment inside libexec
1414
venv = libexec/"venv"
15-
system Formula["python@3.12"].opt_bin/"python3.12", "-m", "venv", venv
15+
system Formula["python@3.13"].opt_bin/"python3.13", "-m", "venv", venv
1616

1717
# Install the package with all dependencies
1818
# Binary wheels are allowed for faster installation

Formula/rxiv-maker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ class RxivMaker < Formula
77

88
depends_on "gh"
99
depends_on "git"
10-
depends_on "python@3.12"
10+
depends_on "python@3.13"
1111
depends_on "texlive"
1212
depends_on "latexdiff"
1313

1414
def install
1515
venv = libexec/"venv"
16-
system Formula["python@3.12"].opt_bin/"python3.12", "-m", "venv", venv
16+
system Formula["python@3.13"].opt_bin/"python3.13", "-m", "venv", venv
1717
system venv/"bin/pip", "install", "-v", "--ignore-installed",
1818
build.head? ? "git+." : "."
1919
bin.install_symlink venv/"bin/rxiv"

Formula/taskrepo.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ class Taskrepo < Formula
66
sha256 "8506d0673698c8c7d45e9dac889b93a1b976953d0b0becedb45abe951f7b29eb"
77
license "MIT"
88

9-
depends_on "python@3.12"
9+
depends_on "python@3.13"
1010
depends_on "git"
1111
depends_on "gh"
1212

1313
def install
1414
# Create a virtual environment inside libexec
1515
venv = libexec/"venv"
16-
system Formula["python@3.12"].opt_bin/"python3.12", "-m", "venv", venv
16+
system Formula["python@3.13"].opt_bin/"python3.13", "-m", "venv", venv
1717

1818
# Install the package with all dependencies
1919
# Binary wheels are allowed for faster installation

0 commit comments

Comments
 (0)