File tree 6 files changed +18
-10
lines changed
6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ def from_resource(name: str) -> "Instance":
481
481
inst_attr : Final [str ] = f"__inst_{ name } "
482
482
if hasattr (container , inst_attr ):
483
483
return cast (Instance , getattr (container , inst_attr ))
484
- with resources .files (package = str (__package__ )).joinpath (
484
+ with resources .files (str (__package__ )).joinpath (
485
485
"demo.txt" if (name == "demo" )
486
486
else "instances.txt" ).open ("r" , encoding = UTF8 ) as stream :
487
487
inst : Final [Instance ] = Instance .from_stream (
Original file line number Diff line number Diff line change 2
2
from typing import Final
3
3
4
4
#: the version string of `moptipy`
5
- __version__ : Final [str ] = "0.9.109 "
5
+ __version__ : Final [str ] = "0.9.110 "
Original file line number Diff line number Diff line change 33
33
#
34
34
35
35
# pycommons provides lots of utilities
36
- pycommons [dev ] >= 0.8.34
36
+ pycommons [dev ] >= 0.8.37
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ psutil == 5.9.5
39
39
40
40
# pycommons offers many of the tools and utilities used in moptipy that are
41
41
# not related to optimization.
42
- pycommons == 0.8.36
42
+ pycommons == 0.8.37
43
43
44
44
# scikit-learn is used to obtain some clusters of JSSP instances for our
45
45
# experiments.
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ install_requires =
85
85
matplotlib >= 3.8.0
86
86
pdfo >= 1.3.1
87
87
psutil >= 5.9.5
88
- pycommons >= 0.8.36
88
+ pycommons >= 0.8.37
89
89
scikit-learn >= 1.3.1
90
90
scipy >= 1.11.3
91
91
packages = find:
Original file line number Diff line number Diff line change 2
2
# noinspection PyPackageRequirements
3
3
from pycommons .dev .tests .links_in_md import check_links_in_md
4
4
from pycommons .io .path import file_path
5
+ from pycommons .processes .caller import is_ci_run
5
6
6
7
7
8
def test_all_links_in_readme_md () -> None :
8
9
"""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" ))
10
13
11
14
12
15
def test_all_links_in_contributing_md () -> None :
13
16
"""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" ))
16
20
17
21
18
22
def test_all_links_in_security_md () -> None :
19
23
"""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" ))
21
27
22
28
23
29
def test_all_links_in_license () -> None :
24
30
"""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" ))
You can’t perform that action at this time.
0 commit comments