Skip to content

Commit 29f9c53

Browse files
committed
Add Python 3.13 and fix issues with imports in __init__.py
1 parent 0ccb811 commit 29f9c53

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/github-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

mip/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
from mip.exceptions import *
77
from mip.ndarray import LinExprTensor
88
from mip.entities import Column, Constr, LinExpr, Var, ConflictGraph
9-
from mip.model import *
9+
from mip.model import (
10+
Model,
11+
maximize,
12+
minimize,
13+
xsum,
14+
save_mipstart,
15+
load_mipstart,
16+
)
1017

1118
try:
1219
from ._version import __version__

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]"},
@@ -38,7 +38,7 @@ numpy = [
3838
"numpy==1.21.*; python_version=='3.7'"
3939
]
4040
gurobi = ["gurobipy>=8"]
41-
highs = ["highspy>=1.5.3; python_version<='3.11'"]
41+
highs = ["highspy>=1.5.3; python_version<='3.13'"]
4242
test = [
4343
"pytest>=7.4",
4444
"networkx==2.8.8; python_version>='3.8'",

0 commit comments

Comments
 (0)