c_therm_tci_tools.sync
#
Sync tools.
Module Contents#
Functions#
Check compilation, re-lock if incompatible, and return the compilation. |
|
Lock dependencies for all platforms and Python versions. |
|
Get existing dependency compilations. |
|
Get the name of a dependency compilation. |
|
Get lockfile path. |
|
Compile system dependencies. |
|
Get the installed version of |
|
Path escape suitable for all operating systems. |
Data#
Resulting pytest configuration file. |
|
Copier answers file. |
|
File containing supported Python versions. |
|
Requirements. |
|
UV requirement. |
|
Other development tools and editable local dependencies. |
|
Dependencies appended to locks without compiling their dependencies. |
|
Overrides to satisfy otherwise incompatible combinations. |
|
Platform identifier. |
|
Python version associated with this platform. |
|
Supported platforms. |
|
Supported Python versions. |
|
Pattern for stored |
|
Pattern for stored submodule revision comments. |
|
Pattern for compiled dependencies. |
API#
- c_therm_tci_tools.sync.PYTEST#
‘Path(…)’
Resulting pytest configuration file.
- c_therm_tci_tools.sync.COPIER_ANSWERS#
‘Path(…)’
Copier answers file.
- c_therm_tci_tools.sync.PYTHON_VERSIONS_FILE#
‘Path(…)’
File containing supported Python versions.
- c_therm_tci_tools.sync.REQS#
‘Path(…)’
Requirements.
- c_therm_tci_tools.sync.UV#
None
UV requirement.
- c_therm_tci_tools.sync.DEV#
None
Other development tools and editable local dependencies.
- c_therm_tci_tools.sync.NODEPS#
None
Dependencies appended to locks without compiling their dependencies.
- c_therm_tci_tools.sync.OVERRIDE#
None
Overrides to satisfy otherwise incompatible combinations.
- c_therm_tci_tools.sync.SYS_PLATFORM: c_therm_tci_tools.types.Platform#
None
Platform identifier.
- c_therm_tci_tools.sync.SYS_PYTHON_VERSION: c_therm_tci_tools.types.PythonVersion#
‘join(…)’
Python version associated with this platform.
- c_therm_tci_tools.sync.PLATFORMS: tuple[c_therm_tci_tools.types.Platform, ...]#
(‘linux’, ‘macos’, ‘windows’)
Supported platforms.
- c_therm_tci_tools.sync.PYTHON_VERSIONS: tuple[c_therm_tci_tools.types.PythonVersion, ...]#
None
Supported Python versions.
- c_therm_tci_tools.sync.UV_PAT#
‘(?m)^# uv\s(?P
.+)$’ Pattern for stored
uv
version comment.
- c_therm_tci_tools.sync.SUB_PAT#
‘(?m)^# submodules/(?P
[^\s]+)\s(?P [^\s]+)$’ Pattern for stored submodule revision comments.
- c_therm_tci_tools.sync.DEP_PAT#
‘(?mi)^(?P
[A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])==.+$’ Pattern for compiled dependencies.
See: https://packaging.python.org/en/latest/specifications/name-normalization/#name-format
- c_therm_tci_tools.sync.check_compilation(
- high: bool = False,
Check compilation, re-lock if incompatible, and return the compilation.
Parameters#
high: Highest dependencies.
- c_therm_tci_tools.sync.get_compilation(
- platform: c_therm_tci_tools.types.Platform,
- python_version: c_therm_tci_tools.types.PythonVersion,
- high: bool,
Get existing dependency compilations.
Parameters#
high: Highest dependencies.
platform: Platform to compile for.
python_version: Python version to compile for.
- c_therm_tci_tools.sync.get_compilation_key(
- platform: c_therm_tci_tools.types.Platform,
- python_version: c_therm_tci_tools.types.PythonVersion,
- high: bool,
Get the name of a dependency compilation.
Parameters#
platform: Platform to compile for.
python_version: Python version to compile for.
high: Highest dependencies.
- c_therm_tci_tools.sync.get_lockfile(
- high: bool,
Get lockfile path.
Parameters#
high: Highest dependencies.
- c_therm_tci_tools.sync.compile(
- platform: c_therm_tci_tools.types.Platform,
- python_version: c_therm_tci_tools.types.PythonVersion,
- high: bool,
- no_deps: bool = False,
Compile system dependencies.
Parameters#
high: Highest dependencies.
no_deps: Without transitive dependencies.
platform: Platform to compile for.
python_version: Python version to compile for.
- c_therm_tci_tools.sync.escape(
- path: str | pathlib.Path,
Path escape suitable for all operating systems.
Parameters#
path: Path to escape.