Skip to content

Commit 124daf8

Browse files
committedJun 13, 2024·
next attempt to get python 3.12 to work
1 parent 5bd8d04 commit 124daf8

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed
 

‎moptipy/examples/jssp/instance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def from_resource(name: str) -> "Instance":
481481
inst_attr: Final[str] = f"__inst_{name}"
482482
if hasattr(container, inst_attr):
483483
return cast(Instance, getattr(container, inst_attr))
484-
with resources.files(package=str(__package__)).joinpath(
484+
with resources.files(str(__package__)).joinpath(
485485
"demo.txt" if (name == "demo")
486486
else "instances.txt").open("r", encoding=UTF8) as stream:
487487
inst: Final[Instance] = Instance.from_stream(

‎moptipy/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from typing import Final
33

44
#: the version string of `moptipy`
5-
__version__: Final[str] = "0.9.109"
5+
__version__: Final[str] = "0.9.110"

‎requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
#
3434

3535
# pycommons provides lots of utilities
36-
pycommons[dev] >= 0.8.34
36+
pycommons[dev] >= 0.8.37

‎requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ psutil == 5.9.5
3939

4040
# pycommons offers many of the tools and utilities used in moptipy that are
4141
# not related to optimization.
42-
pycommons == 0.8.36
42+
pycommons == 0.8.37
4343

4444
# scikit-learn is used to obtain some clusters of JSSP instances for our
4545
# experiments.

‎setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ install_requires =
8585
matplotlib >= 3.8.0
8686
pdfo >= 1.3.1
8787
psutil >= 5.9.5
88-
pycommons >= 0.8.36
88+
pycommons >= 0.8.37
8989
scikit-learn >= 1.3.1
9090
scipy >= 1.11.3
9191
packages = find:

‎tests/test_links_in_documentation.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,32 @@
22
# noinspection PyPackageRequirements
33
from pycommons.dev.tests.links_in_md import check_links_in_md
44
from pycommons.io.path import file_path
5+
from pycommons.processes.caller import is_ci_run
56

67

78
def test_all_links_in_readme_md() -> None:
89
"""Test all the links in the README.md file."""
9-
check_links_in_md(file_path(__file__).up(2).resolve_inside("README.md"))
10+
if is_ci_run():
11+
check_links_in_md(file_path(__file__).up(2).resolve_inside(
12+
"README.md"))
1013

1114

1215
def test_all_links_in_contributing_md() -> None:
1316
"""Test all the links in the CONTRIBUTING.md file."""
14-
check_links_in_md(file_path(__file__).up(2).resolve_inside(
15-
"CONTRIBUTING.md"))
17+
if is_ci_run():
18+
check_links_in_md(file_path(__file__).up(2).resolve_inside(
19+
"CONTRIBUTING.md"))
1620

1721

1822
def test_all_links_in_security_md() -> None:
1923
"""Test all the links in the SECURITY.md file."""
20-
check_links_in_md(file_path(__file__).up(2).resolve_inside("SECURITY.md"))
24+
if is_ci_run():
25+
check_links_in_md(file_path(__file__).up(2).resolve_inside(
26+
"SECURITY.md"))
2127

2228

2329
def test_all_links_in_license() -> None:
2430
"""Test all the links in the LICENSE file."""
25-
check_links_in_md(file_path(__file__).up(2).resolve_inside("LICENSE"))
31+
if is_ci_run():
32+
check_links_in_md(file_path(__file__).up(2).resolve_inside(
33+
"LICENSE"))

0 commit comments

Comments
 (0)
Please sign in to comment.