Skip to content

Commit 3c28f0b

Browse files
committed
upgrade python for doing the math fork to python3.13
1 parent 099bb88 commit 3c28f0b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/github-ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.11
18+
python-version: 3.13
1919

2020
- name: Upgrade pip
2121
run: python -m pip install --upgrade pip
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9-v7.3.15"]
42+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9-v7.3.15"]
4343
os: [macos-11, macos-12, ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022]
4444
exclude:
4545
# temporarily exclude pypy3 on mac-os as there failing tests caused by bug on cbc side
@@ -57,7 +57,15 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959
architecture: x64
60-
cache: 'pip'
60+
61+
- name: Cache pip dependencies
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/.cache/pip
65+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
66+
restore-keys: |
67+
${{ runner.os }}-pip-${{ matrix.python-version }}-
68+
${{ runner.os }}-pip-
6169
6270
- name: Check python version
6371
run: python -c "import sys; import platform; print('Python %s implementation %s on %s' % (sys.version, platform.python_implementation(), sys.platform))"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "mip"
77
description = "Python tools for Modeling and Solving Mixed-Integer Linear Programs (MIPs)"
88
readme = "README.md"
9-
requires-python = ">=3.7,<3.13"
9+
requires-python = ">=3.7,<3.14"
1010
license = {file = "LICENSE"}
1111
authors = [
1212
{name="Tulio A.M. Toffolo", email="[email protected]"},
@@ -22,7 +22,7 @@ classifiers = [
2222
"Development Status :: 5 - Production/Stable",
2323
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
2424
"Operating System :: OS Independent",
25-
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.13",
2626
"Programming Language :: Python :: Implementation :: CPython",
2727
"Programming Language :: Python :: Implementation :: PyPy",
2828
"Topic :: Scientific/Engineering :: Mathematics"

0 commit comments

Comments
 (0)