tyrannosaurus.sync
Module that syncs metadata from pyproject.toml.
Original source: https://github.com/dmyersturnbull/tyrannosaurus Copyright 2020–2021 Douglas Myers-Turnbull Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0
Module Contents
- class tyrannosaurus.sync.Sync(context: tyrannosaurus.context.Context)
- _careful_wrap(s: str, indent: int = 4) str
- _fix_line(line: str, replace: Mapping[Union[str, re.Pattern], str]) str
- _get_line_length() int
- _replace(line: str, k: Union[str, re.Pattern], v: str) Optional[str]
- _replace_substrs(path: pathlib.Path, replace: Mapping[Union[str, re.Pattern], str]) Sequence[str]
- _until_line(lines: Sequence[str], stop_at: str)
- fix_citation() Sequence[str]
- fix_codemeta() Sequence[str]
- fix_dockerfile() Sequence[str]
- fix_env() Sequence[str]
- fix_init() Sequence[str]
- fix_init_internal(init_path: pathlib.Path) Sequence[str]
- fix_pyproject() Sequence[str]
- fix_recipe() Sequence[str]
- fix_recipe_internal(recipe_path: pathlib.Path) Sequence[str]
- has(key: str)
- sync() Sequence[str]