2020-11-12 02:26:59 +00:00
|
|
|
"""Static constants for reference
|
|
|
|
|
|
|
|
Rule of thumb: if it's an arbitrary value that will never be changed at runtime, it should go
|
|
|
|
in this module.
|
|
|
|
|
|
|
|
All constants should be type hinted.
|
|
|
|
"""
|
2021-04-17 00:20:32 +00:00
|
|
|
from typing import Set
|
2020-11-12 02:26:59 +00:00
|
|
|
from typing import Tuple
|
|
|
|
|
|
|
|
from tox_poetry_installer import __about__
|
|
|
|
|
|
|
|
|
|
|
|
# Valid PEP508 version delimiters. These are used to test whether a given string (specifically a
|
|
|
|
# dependency name) is just a package name or also includes a version identifier.
|
|
|
|
PEP508_VERSION_DELIMITERS: Tuple[str, ...] = ("~=", "==", "!=", ">", "<")
|
|
|
|
|
|
|
|
# Prefix all reporter messages should include to indicate that they came from this module in the
|
|
|
|
# console output.
|
2021-02-10 05:06:33 +00:00
|
|
|
REPORTER_PREFIX: str = f"{__about__.__title__}:"
|
2021-04-17 00:20:32 +00:00
|
|
|
|
|
|
|
# Internal list of packages that poetry has deemed unsafe and are excluded from the lockfile
|
2022-09-07 16:00:37 +00:00
|
|
|
# TODO: This functionality is no longer needed, should remove in a future update.
|
2022-07-02 02:08:11 +00:00
|
|
|
UNSAFE_PACKAGES: Set[str] = set()
|
2021-05-05 20:18:41 +00:00
|
|
|
|
|
|
|
# Number of threads to use for installing dependencies by default
|
|
|
|
DEFAULT_INSTALL_THREADS: int = 10
|