tyrannosaurus.helpers

Various support code / utils.

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.helpers.CondaForgeHelper
has_pkg(name: str)
class tyrannosaurus.helpers.EnvHelper
process(name: str, deps, extras: bool) Sequence[str]
class tyrannosaurus.helpers.PyPiHelper
_extract_version(version: str) Optional[str]
get_version(name: str) str
new_versions(pkg_versions: Mapping[str, str]) Mapping[str, Tuple[str, str]]
class tyrannosaurus.helpers.TrashList(dists: bool, aggressive: bool)
get_list() Sequence[str]
get_patterns() Sequence[re.Pattern]
should_delete(p: pathlib.Path) bool
class tyrannosaurus.helpers._Env(authors: Optional[Sequence[str]], user: Optional[str])
_git(key: str, name: str) str
tyrannosaurus.helpers.scandir_fast(topdir: Union[str, pathlib.Path], trash: TrashList) Sequence[pathlib.Path]

Finds paths under a dir.

Parameters
  • topdir – The directory to search under

  • trash – List of trash dirs