Skip to content

Commit 6545ef1

Browse files
committed
Change deprecated versions to 6.6.0
1 parent 56ebb91 commit 6545ef1

File tree

11 files changed

+26
-27
lines changed

11 files changed

+26
-27
lines changed

pyomo/common/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ def _finalize(self):
14431443
@deprecated(
14441444
"add_docstring_list is deprecated. Please use the "
14451445
"@document_kwargs_from_configdict() decorator.",
1446-
version='6.5.1.dev0',
1446+
version='6.6.0',
14471447
)
14481448
def add_docstring_list(docstring, configdict, indent_by=4):
14491449
"""Returns the docstring with a formatted configuration arguments listing."""
@@ -2010,7 +2010,7 @@ def generate_documentation(
20102010
f"Overriding '{name}' by passing strings to "
20112011
"generate_documentation is deprecated. Create an instance of a "
20122012
"StringConfigFormatter and pass it as the 'format' argument.",
2013-
version='6.5.1.dev0',
2013+
version='6.6.0',
20142014
)
20152015
setattr(
20162016
formatter, "_" + name, _formatter_str_to_callback(arg, formatter)
@@ -2020,7 +2020,7 @@ def generate_documentation(
20202020
f"Overriding 'item_body' by passing strings to "
20212021
"generate_documentation is deprecated. Create an instance of a "
20222022
"StringConfigFormatter and pass it as the 'format' argument.",
2023-
version='6.5.1.dev0',
2023+
version='6.6.0',
20242024
)
20252025
setattr(
20262026
formatter,

pyomo/common/numeric_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
relocated_module_attribute(
4545
'native_boolean_types',
4646
'pyomo.common.numeric_types._native_boolean_types',
47-
version='6.5.1.dev0',
47+
version='6.6.0',
4848
msg="The native_boolean_types set will be removed in the future: the set "
4949
"contains types that were convertible to bool, and not types that should "
5050
"be treated as if they were bool (as was the case for the other "
@@ -96,7 +96,7 @@ def RegisterIntegerType(new_type):
9696
@deprecated(
9797
"The native_boolean_types set (and hence RegisterBooleanType) "
9898
"is deprecated. Users likely should use RegisterLogicalType.",
99-
version='6.5.1.dev0',
99+
version='6.6.0',
100100
)
101101
def RegisterBooleanType(new_type):
102102
"""

pyomo/contrib/pynumero/algorithms/solvers/cyipopt_solver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@
4747
relocated_module_attribute(
4848
"cyipopt_available",
4949
"pyomo.contrib.pynumero.interfaces.cyipopt_interface.cyipopt_available",
50-
"6.5.1.dev0",
50+
"6.6.0",
5151
)
5252
relocated_module_attribute(
5353
"CyIpoptProblemInterface",
5454
"pyomo.contrib.pynumero.interfaces.cyipopt_interface.CyIpoptProblemInterface",
55-
"6.5.1.dev0",
55+
"6.6.0",
5656
)
5757
relocated_module_attribute(
5858
"CyIpoptNLP",
5959
"pyomo.contrib.pynumero.interfaces.cyipopt_interface.CyIpoptNLP",
60-
"6.5.1.dev0",
60+
"6.6.0",
6161
)
6262

6363
from pyomo.common.config import ConfigBlock, ConfigValue

pyomo/contrib/pynumero/interfaces/ampl_nlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def primals_names(self):
773773

774774
@deprecated(
775775
msg='This method has been replaced with primals_names',
776-
version='6.0.0.dev0',
776+
version='6.0.0',
777777
remove_in='6.0',
778778
)
779779
def variable_names(self):
@@ -797,7 +797,7 @@ def ineq_constraint_names(self):
797797

798798
@deprecated(
799799
msg='This method has been replaced with primal_idx',
800-
version='6.0.0.dev0',
800+
version='6.0.0',
801801
remove_in='6.0',
802802
)
803803
def variable_idx(self, var_name):

pyomo/contrib/pynumero/interfaces/pyomo_nlp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ___________________________________________________________________________
21
#
32
# Pyomo: Python Optimization Modeling Objects
43
# Copyright (c) 2008-2022
@@ -185,7 +184,7 @@ def get_pyomo_inequality_constraints(self):
185184

186185
@deprecated(
187186
msg='This method has been replaced with primals_names',
188-
version='6.0.0.dev0',
187+
version='6.0.0',
189188
remove_in='6.0',
190189
)
191190
def variable_names(self):
@@ -1109,7 +1108,7 @@ def report_solver_status(self, status_code, status_message):
11091108

11101109
@deprecated(
11111110
msg='This method has been replaced with primals_names',
1112-
version='6.0.0.dev0',
1111+
version='6.0.0',
11131112
remove_in='6.0',
11141113
)
11151114
def variable_names(self):

pyomo/core/base/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ def component_data_objects(
16131613
"The component_data_iterindex method is deprecated. "
16141614
"Components now know their index, so it is more efficient to use the "
16151615
"Block.component_data_objects() method followed by .index().",
1616-
version="6.5.1.dev0",
1616+
version="6.6.0",
16171617
)
16181618
def component_data_iterindex(
16191619
self, ctype=None, active=None, sort=False, descend_into=True, descent_order=None

pyomo/core/base/indexed_component.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def keys(self, sort=SortComponents.UNSORTED, ordered=NOTSET):
438438
deprecation_warning(
439439
f"keys(ordered={ordered}) is deprecated. "
440440
"Please use `sort=SortComponents.ORDERED_INDICES`",
441-
version='6.5.1.dev0',
441+
version='6.6.0',
442442
)
443443
if ordered:
444444
sort = sort | SortComponents.ORDERED_INDICES
@@ -529,7 +529,7 @@ def values(self, sort=SortComponents.UNSORTED, ordered=NOTSET):
529529
deprecation_warning(
530530
f"values(ordered={ordered}) is deprecated. "
531531
"Please use `sort=SortComponents.ORDERED_INDICES`",
532-
version='6.5.1.dev0',
532+
version='6.6.0',
533533
)
534534
if ordered:
535535
sort = SortComponents(sort) | SortComponents.ORDERED_INDICES
@@ -564,7 +564,7 @@ def items(self, sort=SortComponents.UNSORTED, ordered=NOTSET):
564564
deprecation_warning(
565565
f"items(ordered={ordered}) is deprecated. "
566566
"Please use `sort=SortComponents.ORDERED_INDICES`",
567-
version='6.5.1.dev0',
567+
version='6.6.0',
568568
)
569569
if ordered:
570570
sort = SortComponents(sort) | SortComponents.ORDERED_INDICES

pyomo/core/expr/numeric_expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def _to_string(self, values, verbose, smap):
696696
@deprecated(
697697
"SumExpression.add() is deprecated. Please use regular Python operators "
698698
"(infix '+' or inplace '+='.)",
699-
version='6.5.1.dev0',
699+
version='6.6.0',
700700
)
701701
def add(self, new_arg):
702702
self += new_arg

pyomo/core/expr/numvalue.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
relocated_module_attribute(
7676
'native_boolean_types',
7777
'pyomo.common.numeric_types._native_boolean_types',
78-
version='6.5.1.dev0',
78+
version='6.6.0',
7979
f_globals=globals(),
8080
msg="The native_boolean_types set will be removed in the future: the set "
8181
"contains types that were convertible to bool, and not types that should "
@@ -85,19 +85,19 @@
8585
relocated_module_attribute(
8686
'RegisterNumericType',
8787
'pyomo.common.numeric_types.RegisterNumericType',
88-
version='6.5.1.dev0',
88+
version='6.6.0',
8989
f_globals=globals(),
9090
)
9191
relocated_module_attribute(
9292
'RegisterIntegerType',
9393
'pyomo.common.numeric_types.RegisterIntegerType',
94-
version='6.5.1.dev0',
94+
version='6.6.0',
9595
f_globals=globals(),
9696
)
9797
relocated_module_attribute(
9898
'RegisterBooleanType',
9999
'pyomo.common.numeric_types.RegisterBooleanType',
100-
version='6.5.1.dev0',
100+
version='6.6.0',
101101
f_globals=globals(),
102102
)
103103

pyomo/core/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def quicksum(args, start=0, linear=None):
9494
if linear is not None:
9595
deprecation_warning(
9696
"The quicksum(linear=...) argument is deprecated and ignored.",
97-
version='6.5.1.dev0',
97+
version='6.6.0',
9898
)
9999

100100
#

0 commit comments

Comments
 (0)