evariste.plugins.vcs
¶
evariste.plugins.vcs
¶
Access to VCS (git, etc.) versionned files.
Every path processed here is a pathlib.Path
object.
- class evariste.plugins.vcs.VCS(shared)[source]¶
Generic class to access to versionned files.
To write a new VCS plugin, one has to subclass this class, and implement every abstract method (see for instance the implementation of
evariste.plugin.vcs.git.Git
).- global_default_setup: Dict[str, Dict[str, str]] = {'setup': {'source': '.'}}¶
Default values for setup file. See Plugin.default_setup and Plugin.global_default_setup.
- plugin_type: str = 'vcs'¶
Type of the plugin. Plugins of the same type gather some common behaviour.
evariste.plugins.none
¶
Dummy, do-nothing vcs. Used for tests.
- class evariste.plugins.vcs.none.NoneVCS(shared)[source]¶
Dummy vcs: Does not access any file.
- keyword: Union[None, str] = 'vcs.none'¶
Keyword plugin, used to reference it: it is used to enable plugins in the setup file, to name its section in the setup file, etc.
evariste.plugins.git
¶
Access to git-versionned files.
- class evariste.plugins.vcs.git.Git(shared)[source]¶
Access git-versionned files
- keyword: Union[None, str] = 'vcs.git'¶
Keyword plugin, used to reference it: it is used to enable plugins in the setup file, to name its section in the setup file, etc.