Skip to content

Commit

Permalink
deps: require Python >= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Nov 28, 2024
1 parent a2b9ea9 commit d55a77f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
test-id: [main]
include:
- julia-version: '1.10'
python-version: '3.8'
python-version: '3.9'
os: ubuntu-latest
test-id: include
- julia-version: '1'
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
matrix:
python-version:
- '3.12'
- '3.8'
- '3.9'
os: ['ubuntu-latest']

steps:
Expand All @@ -193,10 +193,10 @@ jobs:
pip install mypy
- name: "Install additional dependencies"
run: python -m pip install jax jaxlib torch
if: ${{ matrix.python-version != '3.8' }}
if: ${{ matrix.python-version != '3.9' }}
- name: "Run mypy"
run: python -m mypy --install-types --non-interactive pysr
if: ${{ matrix.python-version != '3.8' }}
if: ${{ matrix.python-version != '3.9' }}
- name: "Run compatible mypy"
run: python -m mypy --ignore-missing-imports pysr
if: ${{ matrix.python-version == '3.8' }}
if: ${{ matrix.python-version == '3.9' }}
2 changes: 1 addition & 1 deletion .github/workflows/CI_docker_large_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
julia-version: ['1.6', '1']
python-version: ['3.8', '3.12']
python-version: ['3.9', '3.12']
os: [ubuntu-latest]
arch: ['linux/amd64', 'linux/arm64']

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI_large_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
julia-version: ['1.6', '1.8', '1.10']
python-version: ['3.8', '3.10', '3.12']
python-version: ['3.9', '3.10', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
channels:
- conda-forge
dependencies:
- python>=3.8
- python>=3.9
- sympy>=1.0.0,<2.0.0
- pandas>=0.21.0,<3.0.0
- numpy>=1.13.0,<2.0.0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
description = "Simple and efficient symbolic regression"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand Down
7 changes: 6 additions & 1 deletion pysr/expression_specs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import copy
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, Dict, List, NewType, Optional, TypeAlias
from typing import TYPE_CHECKING, Any, Dict, List, NewType, Optional

try:
from typing import TypeAlias
except ImportError:
TypeAlias = Any

import numpy as np
import pandas as pd
Expand Down

0 comments on commit d55a77f

Please sign in to comment.