boilercine_tools.sync
#
Sync tools.
Module Contents#
Classes#
Lockfile. |
|
Compiler. |
|
Compilation. |
Functions#
Check compilation, re-lock if incompatible, and return the requirements. |
|
Lock. |
|
Get version of |
|
Get directs. |
|
Get lockfile path. |
|
Compile dependencies. |
|
Get submodules. |
|
Get submodule info. |
|
Escape a path, suitable for passing to e.g. |
Data#
This project’s default Python version. |
|
Requirements. |
|
Other development tools and editable local dependencies. |
|
Paths to compile dependencies for. |
|
Overrides to satisfy otherwise incompatible combinations. |
|
Path to dependencies which should not have their transitive dependencies compiled. |
|
Requirements. |
|
Regular expression for a legal Python package name. |
|
Regular expression for valid version separators. |
API#
- boilercine_tools.sync.MINIMUM_PYTHON#
‘3.11’
This project’s default Python version.
- boilercine_tools.sync.REQS#
‘Path(…)’
Requirements.
- boilercine_tools.sync.DEV#
None
Other development tools and editable local dependencies.
- boilercine_tools.sync.DEPS#
()
Paths to compile dependencies for.
- boilercine_tools.sync.OVERRIDES#
None
Overrides to satisfy otherwise incompatible combinations.
- boilercine_tools.sync.NODEPS#
None
Path to dependencies which should not have their transitive dependencies compiled.
- boilercine_tools.sync.REQUIREMENTS#
None
Requirements.
- class boilercine_tools.sync.Lock#
Lockfile.
- minimum_python: boilercine_tools.types.PythonVersion#
None
- directs: dict[str, boilercine_tools.types.Dep]#
None
- boilercine_tools.sync.check_compilation(
- high: bool = False,
Check compilation, re-lock if incompatible, and return the requirements.
- boilercine_tools.sync.lock(
- directs: dict[str, boilercine_tools.types.Dep] | None = None,
- high: bool = False,
Lock.
- class boilercine_tools.sync.Compiler#
Compiler.
- python_version: boilercine_tools.types.PythonVersion#
None
Python version compiled for.
- overrides: pathlib.Path#
None
Overrides.
- paths: tuple[pathlib.Path, ...]#
None
Paths compiled from, such as
requirements.in
orpyproject.toml
.
- get_command() tuple[datetime.datetime, list[str]] #
Command to reproduce compilation requirements.
- compile(
- time: datetime.datetime = datetime.min,
- directs: dict[str, boilercine_tools.types.Dep] | None = None,
Compile dependencies.
- boilercine_tools.sync.NAME_PAT#
‘[A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9._-]*[A-Za-z0-9]’
Regular expression for a legal Python package name.
See: https://packaging.python.org/en/latest/specifications/name-normalization/#name-format
- boilercine_tools.sync.OP_PAT#
‘join(…)’
Regular expression for valid version separators.
- boilercine_tools.sync.get_directs( ) dict[str, boilercine_tools.types.Dep] #
Get directs.
- class boilercine_tools.sync.Compilation#
Compilation.
- compiler: boilercine_tools.sync.Compiler#
‘field(…)’
Compiler used to compile.
- time: datetime.datetime#
None
Time of compilation.
- directs: dict[str, boilercine_tools.types.Dep]#
‘field(…)’
Direct dependencies and their revisions.
- __post_init__()#
- boilercine_tools.sync.get_lockfile(
- high: bool = False,
Get lockfile path.
- boilercine_tools.sync.compile(
- compiler: boilercine_tools.sync.Compiler,
Compile dependencies.
- boilercine_tools.sync.get_subs() dict[str, boilercine_tools.types.Dep] #
Get submodules.
- boilercine_tools.sync.get_submodule_info(
- kind: boilercine_tools.types.SubmoduleInfoKind,
Get submodule info.
- boilercine_tools.sync.escape(
- path: str | pathlib.Path,
Escape a path, suitable for passing to e.g.
run()
.