Library with common primitives for Python programming language. They are useful for service of any repository:
Presently this library is oriented mostly according to author's preferences. Pyrepo is recommended to be included in the each repository even if some repositories are organized hierarchicaly. That provides a stable library basis for the all repository scripts.
Python3 or higher;
Some library modules are using exteral utilities: svn, git, hg. It is recommended to install them all before getting started. Also it is recommended to add to the Mercurial config: [subrepos] git:allowed = true
flufl.enum, argparse, rst2pdf, colorlog, pygments and cython Python modules.
You can install flufl.enum like this:
Debian-based GNU/Linux distros:
# aptitude install python3-flufl.enum
Other Unix and GNU/Linux distros:
# pip3 install flufl.enum
or
# easy_install flufl.enum
Windows:
The pip3 utility can be used for modules installation. If it is not installed download file https://bootstrap.pypa.io/get-pip.py and run:
> python get-pip.py
pip3 will be placed inside $PYTHON3_DIR/scripts directory.
After that flufl.enum can be installed:
> pip3 install flufl.enum
And by analogy you can install argparse module. rst2pdf and colorlog can usually be installed from the system repository. If it is impossible they can be installed on any platform like flufl.enum .
Starting from Python 3.12 distutils module is deprecated and is not shipped by default. It's required to install setuptools(with pip) in order to return it to the system.