Skip to content

Commit 92cd835

Browse files
authored
Updated minimum supported dependencies (#482)
* Updating dependency versions * Updating package version * Fixing test case dependency versions
1 parent 5c36964 commit 92cd835

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/linux-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
versions: [{python: "3.10", numpy: "1.22"}, {python: "3.11", numpy: "1.25"}, {python: "3.12", numpy: "2.1"}]
18+
versions: [{python: "3.11", numpy: "1.25"}, {python: "3.12", numpy: "2.3"}]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-python@v5

.github/workflows/windows-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
numpy_version: ["1.21.6", "1.25.2", "2.1.3"]
18+
numpy_version: ["1.25.2", "2.3.5"]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: conda-incubator/setup-miniconda@v3
2222
with:
23-
python-version: "3.10"
23+
python-version: "3.11"
2424
channels: conda-forge,defaults
2525
channel-priority: strict
2626
activate-environment: pyos-build

pyoptsparse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.15.0"
1+
__version__ = "2.15.1"
22

33
from .pyOpt_history import History
44
from .pyOpt_variable import Variable

pyoptsparse/pyOpt_constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def finalize(self, variables: OrderedDict, dvOffset, index: int):
240240
dvStart.append(dvOffset[dvGroup][0])
241241

242242
# This sort wrt using the keys in dvOffset
243-
self.wrt = [x for (y, x) in sorted(zip(dvStart, self.wrt))]
243+
self.wrt = [x for (y, x) in sorted(zip(dvStart, self.wrt, strict=False))]
244244

245245
# Now we know which dvGroups this constraint will have a
246246
# derivative with respect to (i.e. what is in the wrt list)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ name = "pyoptsparse"
77
description = "Python package for formulating and solving nonlinear constrained optimization problems"
88
readme = "README.md"
99
license = {file = "LICENSE"}
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.11"
1111
dependencies = [
1212
"packaging",
1313
"sqlitedict>=1.6",
14-
"numpy>=1.21",
15-
"scipy>=1.7",
14+
"numpy>=1.25",
15+
"scipy>=1.11",
1616
"mdolab-baseclasses>=1.3.1"
1717
]
1818
dynamic = ["version"] # version is dynamically populated from meson project

0 commit comments

Comments
 (0)