Skip to content

Commit

Permalink
make max versions more lax
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoGrin committed Jan 21, 2025
1 parent f269f73 commit 5a7271c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
python-version: "3.9"
dependency-set: minimum
- os: macos-13 # macos-latest doesn't work with python 3.10
# https://github.com/actions/setup-python/issues/855
python-version: "3.9"
dependency-set: minimum
- os: ubuntu-latest
Expand Down Expand Up @@ -94,15 +93,14 @@ jobs:
deps = [d.strip(' "\'') for d in deps_match.group(1).strip().split('\n') if d.strip()]
max_reqs = []
for dep in deps:
# Extract the upper bound version if it exists
match = re.search(r'([^>=<\s]+)\s*.*<=\s*([^,\s]+)', dep)
if match:
package, max_ver = match.groups()
# Remove any remaining quotes from the version
max_ver = max_ver.strip('"\'')
max_reqs.append(f"{package}=={max_ver}")
# Check for maximum version constraint
max_version_match = re.search(r'([^>=<\s]+).*?<\s*([^,\s]+)', dep)
if max_version_match:
# If there's a max version, use the version just below it
package, max_ver = max_version_match.groups()
max_reqs.append(f"{package}<{max_ver}")
else:
# If no upper bound, just use the package name
# If no max version, just use the package name
package = re.match(r'([^>=<\s]+)', dep).group(1)
max_reqs.append(package)
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ build-backend = "setuptools.build_meta"
name = "tabpfn"
version = "2.0.3"
dependencies = [
"torch>=2.1,<=2.5.1",
"scikit-learn>=1.2.0,<=1.6.1",
"typing_extensions>=4.4.0,<=4.12.2",
"scipy>=1.7.3,<=1.15.1",
"pandas>=1.4.0,<=2.2.3",
"einops>=0.2.0,<=0.8.0",
"huggingface-hub>=0.0.1,<=0.27.1",
"torch>=2.1,<3",
"scikit-learn>=1.2.0,<1.7",
"typing_extensions>=4.4.0",
"scipy>=1.7.3,<2",
"pandas>=1.4.0,<3",
"einops>=0.2.0,<0.9",
"huggingface-hub>=0.0.1,<1",
]
requires-python = ">=3.9,<3.13"
authors = [
Expand Down

0 comments on commit 5a7271c

Please sign in to comment.