Skip to content

Commit 0cec581

Browse files
committed
support for python3.13
1 parent fcb37be commit 0cec581

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/github-ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010

1111
steps:
1212

13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v4
16+
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
@@ -50,14 +50,22 @@ jobs:
5050

5151
steps:
5252

53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454

5555
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v4
56+
uses: actions/setup-python@v5
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: 3 additions & 3 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]"},
@@ -25,7 +25,7 @@ classifiers = [
2525
"Development Status :: 5 - Production/Stable",
2626
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
2727
"Operating System :: OS Independent",
28-
"Programming Language :: Python :: 3",
28+
"Programming Language :: Python :: 3.13",
2929
"Programming Language :: Python :: Implementation :: CPython",
3030
"Programming Language :: Python :: Implementation :: PyPy",
3131
"Topic :: Scientific/Engineering :: Mathematics"
@@ -41,7 +41,7 @@ numpy = [
4141
"numpy==1.21.*; python_version=='3.7'"
4242
]
4343
gurobi = ["gurobipy>=8"]
44-
highs = ["highspy>=1.5.3; python_version<='3.11'"]
44+
highs = ["highspy>=1.6.0"]
4545
test = [
4646
"pytest>=7.4",
4747
"networkx==2.8.8; python_version>='3.8'",

0 commit comments

Comments
 (0)