| 1 |
# Copyright New York University and the in-toto contributors |
| 2 |
# SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
""" |
| 5 |
<Program Name> |
| 6 |
settings.py |
| 7 |
|
| 8 |
<Author> |
| 9 |
Lukas Puehringer <[email protected]> |
| 10 |
|
| 11 |
<Started> |
| 12 |
June 23, 2016 |
| 13 |
|
| 14 |
<Copyright> |
| 15 |
See LICENSE for licensing information. |
| 16 |
|
| 17 |
<Purpose> |
| 18 |
A central place to define default settings that can be used throughout the |
| 19 |
package. |
| 20 |
|
| 21 |
Defaults can be changed, |
| 22 |
- here (hardcoded), |
| 23 |
- programmatically, e.g. |
| 24 |
``` |
| 25 |
import in_toto.settings |
| 26 |
in_toto.settings.ARTIFACT_BASE_PATH = "/home/user/project" |
| 27 |
``` |
| 28 |
""" |
| 29 |
# The debug setting is used to set to the in-toto base logger to logging.DEBUG |
| 30 |
DEBUG = False |
| 31 |
|
| 32 |
# See docstring of `in-toto.record_artifacts_as_dict` for how this is used |
| 33 |
ARTIFACT_EXCLUDE_PATTERNS = ["*.link*", ".git", "*.pyc", "*~"] |
| 34 |
|
| 35 |
# Used as base path for --materials and --products arguments when running |
| 36 |
# in-toto-run/in-toto-record |
| 37 |
# If not set the current working directory is used as base path |
| 38 |
# FIXME: Do we want different base paths for materials and products? |
| 39 |
ARTIFACT_BASE_PATH = None |
| 40 |
|
| 41 |
# Max timeout for the in-toto-run command |
| 42 |
LINK_CMD_EXEC_TIMEOUT = 10 |