From 3c28f0b3d9be190c9105401096642383f999e2c2 Mon Sep 17 00:00:00 2001 From: Miguel Hisojo Date: Fri, 15 Aug 2025 10:38:53 +0200 Subject: [PATCH] upgrade python for doing the math fork to python3.13 --- .github/workflows/github-ci.yml | 14 +++++++++++--- pyproject.toml | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 882cdccc..62146ec1 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.13 - name: Upgrade pip run: python -m pip install --upgrade pip @@ -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 @@ -57,7 +57,15 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - cache: 'pip' + + - name: Cache pip dependencies + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }} + restore-keys: | + ${{ runner.os }}-pip-${{ matrix.python-version }}- + ${{ runner.os }}-pip- - name: Check python version run: python -c "import sys; import platform; print('Python %s implementation %s on %s' % (sys.version, platform.python_implementation(), sys.platform))" diff --git a/pyproject.toml b/pyproject.toml index 739a3818..033c6022 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"}, @@ -22,7 +22,7 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)", "Operating System :: OS Independent", - "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering :: Mathematics"