asv.config

Classes

Config

Manages the configuration for a benchmark project.

Functions

_get_config_path()

Check the default config file path for all valid extensions.

Module Contents

asv.config._get_config_path()[source]

Check the default config file path for all valid extensions. Raise if no file is found, or if multiple are found for the valid extensions. Return the path of the config file if exactly one is found.

class asv.config.Config[source]

Manages the configuration for a benchmark project.

api_version = 1[source]
project = 'project'[source]
project_url = '#'[source]
repo = None[source]
repo_subdir = ''[source]
branches = [None][source]
pythons[source]
matrix[source]
exclude = [][source]
include = [][source]
env_dir = 'env'[source]
benchmark_dir = 'benchmarks'[source]
results_dir = 'results'[source]
html_dir = 'html'[source]
show_commit_url = '#'[source]
hash_length = 8[source]
environment_type = None[source]
install_timeout = 600.0[source]
default_benchmark_timeout = 60.0[source]
dvcs = None[source]
regressions_first_commits[source]
regressions_thresholds[source]
plugins = [][source]
conda_channels = [][source]
conda_environment_file = None[source]
build_command = None[source]
install_command = None[source]
uninstall_command = None[source]
classmethod load(path=None)[source]

Load a configuration from a file. If no file is provided, defaults to asv.conf with valid extensions [‘.json’, ‘.jsonc’].

classmethod from_json(d)[source]