Skip to content

Commit

Permalink
Merge branch 'backport_updates' into 1.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pobonomo committed Jun 13, 2024
2 parents 1c63623 + 9cfa7c0 commit 5d2c623
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PR_license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PR_nolicense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
gurobi-machinelearning \
https://pypi.anaconda.org/gurobi-machinelearning-wheels-staging/simple/gurobi-machinelearning/
- name: Publish package to TestPyPI
uses: pypa/[email protected].11
uses: pypa/[email protected].14
with:
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
if: ${{ github.event.inputs.pypi_repo == 'testpypi' }}
- name: Publish package to PyPI
uses: pypa/[email protected].11
uses: pypa/[email protected].14
with:
password: ${{ secrets.PYPI_TOKEN }}
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ repos:
entry: python3 .github/hooks/license_embedded.py
language: system
files: (src/.*\.py|.*\.ipynb)

- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1 # Fill in a tag / sha here (e.g. v0.19.1)
hooks:
- id: gitlint
args: [--ignore=B6, --msg-filename]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![build and test](https://github.com/Gurobi/gurobi-machinelearning/actions/workflows/push.yml/badge.svg?branch=main)](https://github.com/Gurobi/gurobi-machinelearning/actions/workflows/push.yml?query=branch%3Amain++)
[![build wheel](https://github.com/Gurobi/gurobi-machinelearning/actions/workflows/build_wheel.yml/badge.svg?branch=main)](https://github.com/Gurobi/gurobi-machinelearning/actions/workflows/build_wheel.yml?query=branch%3Amain++)
![Python versions](https://img.shields.io/badge/python-3.9%20|%203.10%20|%203.11-blue)
![Python versions](https://img.shields.io/badge/python-3.9%20|%203.10%20|%203.11%203.12-blue)
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI](https://img.shields.io/pypi/v/gurobi-machinelearning)](https://pypi.org/project/gurobi-machinelearning)
[![ReadTheDocs](https://readthedocs.com/projects/gurobi-optimization-gurobi-machine-learning/badge/?version=stable)](https://gurobi-optimization-gurobi-machine-learning.readthedocs-hosted.com)
Expand Down
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
gurobipy==11.0.1
gurobipy-pandas==1.1.1
ipykernel==6.29.3
ipykernel==6.29.4
jupytext==1.16.1
matplotlib==3.6.0
matplotlib-inline==0.1.6
matplotlib-inline==0.1.7
sphinxcontrib_bibtex==2.6.2
numpy==1.26.4
numpydoc==1.6.0
pandas==2.2.1
numpydoc==1.7.0
pandas==2.2.2
scikit-learn==1.4.1.post1
seaborn==0.13.2
Sphinx==7.2.6
Expand Down
8 changes: 4 additions & 4 deletions notebooks/adversarial/adversarial_keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"source": [
"nn = tf.keras.models.Sequential(\n",
" [\n",
" tf.keras.layers.InputLayer(28 * 28),\n",
" tf.keras.layers.InputLayer((28 * 28,)),\n",
" tf.keras.layers.Dense(50, activation=\"relu\"),\n",
" tf.keras.layers.Dense(50, activation=\"relu\"),\n",
" tf.keras.layers.Dense(10),\n",
Expand Down Expand Up @@ -243,9 +243,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.10",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python310"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -257,7 +257,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.11.8"
},
"license": {
"full_text": "# Copyright © 2023 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gurobi-machinelearning"
version = "1.5.0"
version = "1.5.0post1"
description = "package to insert ML models in Gurobi"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion requirements.keras.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensorflow==2.15.0.post1
tensorflow==2.16.1
2 changes: 1 addition & 1 deletion requirements.pandas.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pandas==2.2.1
pandas==2.2.2
gurobipy-pandas==1.1.1
2 changes: 1 addition & 1 deletion requirements.pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
torch==2.2.1
torch==2.2.2
2 changes: 1 addition & 1 deletion requirements.tox.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numpy==1.26.4
scipy==1.12.0
scipy==1.13.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gurobipy==11.0.1
numpy==1.26.4
pandas==2.2.1
pandas==2.2.2
scikit-learn==1.4.1.post1
seaborn==0.13.2
.
Binary file added tests/predictors/diabetes.keras
Binary file not shown.
6 changes: 0 additions & 6 deletions tests/predictors/diabetes_keras/keras_metadata.pb

This file was deleted.

Binary file removed tests/predictors/diabetes_keras/saved_model.pb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5d2c623

Please sign in to comment.