8000 MNT Update `asv.conf.json` to get rid of last references to Python 2.… · scikit-learn/scikit-learn@734245a · GitHub
[go: up one dir, main page]

Skip to content

Commit 734245a

Browse files
MNT Update asv.conf.json to get rid of last references to Python 2.7 (#31064)
1 parent fc98d4f commit 734245a

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

asv_benchmarks/asv.conf.json

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,21 @@
77
"project": "scikit-learn",
88

99
// The project's homepage
10-
"project_url": "scikit-learn.org/",
10+
"project_url": "https://scikit-learn.org/",
1111

1212
// The URL or local path of the source code repository for the
1313
// project being benchmarked
1414
"repo": "..",
1515

16-
// The Python project's subdirectory in your repo. If missing or
17-
// the empty string, the project is assumed to be located at the root
18-
// of the repository.
19-
// "repo_subdir": "",
20-
2116
// Customizable commands for building, installing, and
2217
// uninstalling the project. See asv.conf.json documentation.
2318
"install_command": ["python -mpip install {wheel_file}"],
2419
"uninstall_command": ["return-code=any python -mpip uninstall -y {project}"],
2520
"build_command": ["python -m build --wheel -o {build_cache_dir} {build_dir}"],
2621

27-
// List of branches to benchmark. If not provided, defaults to "master
22+
// List of branches to benchmark. If not provided, defaults to "main"
2823
// (for git) or "default" (for mercurial).
2924
"branches": ["main"],
30-
// "branches": ["default"], // for mercurial
3125

3226
// The DVCS being used. If not set, it will be automatically
3327
// determined from "repo" by looking at the protocol in the URL
@@ -46,19 +40,19 @@
4640
// defaults to 10 min
4741
//"install_timeout": 600,
4842

43+
// timeout in seconds all benchmarks, can be overridden per benchmark
44+
// defaults to 1 min
45+
//"default_benchmark_timeout": 60,
46+
4947
// the base URL to show a commit for the project.
5048
"show_commit_url": "https://github.com/scikit-learn/scikit-learn/commit/",
5149

52-
// The Pythons you'd like to test against. If not provided, defaults
50+
// The Pythons you'd like to test against. If not provided, defaults
5351
// to the current version of Python used to run `asv`.
54-
// "pythons": ["3.6"],
55-
56-
// The list of conda channel names to be searched for benchmark
57-
// dependency packages in the specified order
58-
// "conda_channels": ["conda-forge", "defaults"]
52+
// "pythons": ["3.12"],
5953

60-
// The matrix of dependencies to test. Each key is the name of a
61-
// package (in PyPI) and the values are version numbers. An empty
54+
// The matrix of dependencies to test. Each key is the name of a
55+
// package (in PyPI) and the values are version numbers. An empty
6256
// list or empty string indicates to just test against the default
6357
// (latest) version. null indicates that the package is to not be
6458
// installed. If the package to be tested is only available from
@@ -107,10 +101,10 @@
107101
// ],
108102
//
109103
// "include": [
110-
// // additional env for python2.7
111-
// {"python": "2.7", "numpy": "1.8"},
104+
// // additional env for python3.12
105+
// {"python": "3.12", "numpy": "1.26"},
112106
// // additional env if run on windows+conda
113-
// {"platform": "win32", "environment_type": "conda", "python": "2.7", "libpython": ""},
107+
// {"sys_platform": "win32", "environment_type": "conda", "python": "3.12", "libpython": ""},
114108
// ],
115109

116110
// The directory (relative to the current directory) that benchmarks are
@@ -132,10 +126,10 @@
132126
// The number of characters to retain in the commit hashes.
133127
// "hash_length": 8,
134128

135-
// `asv` will cache results of the recent builds in each
129+
// `asv` will cache wheels of the recent builds in each
136130
// environment, making them faster to install next time. This is
137-
// the number of builds to keep, per environment.
138-
// "build_cache_size": 2,
131+
// number of builds to keep, per environment.
132+
// "build_cache_size": 0
139133

140134
// The commits after which the regression search in `asv publish`
141135
// should start looking for regressions. Dictionary whose keys are
@@ -148,16 +142,5 @@
148142
// "regressions_first_commits": {
149143
// "some_benchmark": "352cdf", // Consider regressions only after this commit
150144
// "another_benchmark": null, // Skip regression detection altogether
151-
// },
152-
153-
// The thresholds for relative change in results, after which `asv
154-
// publish` starts reporting regressions. Dictionary of the same
155-
// form as in ``regressions_first_commits``, with values
156-
// indicating the thresholds. If multiple entries match, the
157-
// maximum is taken. If no entry matches, the default is 5%.
158-
//
159-
// "regressions_thresholds": {
160-
// "some_benchmark": 0.01, // Threshold of 1%
161-
// "another_benchmark": 0.5, // Threshold of 50%
162-
// },
145+
// }
163146
}

0 commit comments

Comments
 (0)
0