Skip to content

Commit

Permalink
Add Python 3.13 and fix issues with imports in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliotoffolo committed Dec 5, 2024
1 parent 0ccb811 commit 29f9c53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9-v7.3.15"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9-v7.3.15"]
os: [macos-11, macos-12, ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022]
exclude:
# temporarily exclude pypy3 on mac-os as there failing tests caused by bug on cbc side
Expand Down
9 changes: 8 additions & 1 deletion mip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
from mip.exceptions import *
from mip.ndarray import LinExprTensor
from mip.entities import Column, Constr, LinExpr, Var, ConflictGraph
from mip.model import *
from mip.model import (
Model,
maximize,
minimize,
xsum,
save_mipstart,
load_mipstart,
)

try:
from ._version import __version__
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "mip"
description = "Python tools for Modeling and Solving Mixed-Integer Linear Programs (MIPs)"
readme = "README.md"
requires-python = ">=3.7,<3.13"
requires-python = ">=3.7,<3.14"
license = {file = "LICENSE"}
authors = [
{name="Tulio A.M. Toffolo", email="tulio@toffolo.com.br"},
Expand Down Expand Up @@ -38,7 +38,7 @@ numpy = [
"numpy==1.21.*; python_version=='3.7'"
]
gurobi = ["gurobipy>=8"]
highs = ["highspy>=1.5.3; python_version<='3.11'"]
highs = ["highspy>=1.5.3; python_version<='3.13'"]
test = [
"pytest>=7.4",
"networkx==2.8.8; python_version>='3.8'",
Expand Down

0 comments on commit 29f9c53

Please sign in to comment.