Menu

Tree [70e97c] default tip /
 History

Read Only access


File Date Author Commit
 cheatsheets 2024-05-11 Sergey Gusarov Sergey Gusarov [d8fca6] extra_strings: Added consoleNumberCharacter()
 internal 2022-08-02 Sergey Gusarov Sergey Gusarov [df3b19] fs -> fsys renamed to prevent name conflict (th...
 .hgeol 2015-04-09 s.gusarov s.gusarov [90b57d] Added .hgeol file
 .hgignore 2015-02-12 s.gusarov s.gusarov [fcbf45] .hgignore: Fixed misprints
 .hgsub 2022-09-03 Sergey Gusarov Sergey Gusarov [dff550] next attempt
 .hgsubstate 2022-09-03 Sergey Gusarov Sergey Gusarov [dff550] next attempt
 .hgtags 2014-08-14 s.gusarov s.gusarov [d31ca9] Old behaviour for gen_buildinfo.py
 LICENSE 2014-12-07 laborer2008 laborer2008 [6e618a] Added license
 README.rst 2025-01-18 Sergey Gusarov Sergey Gusarov [f246c5] README*: Added comment about Python 3.12 and di...
 README_RU.rst 2025-01-18 Sergey Gusarov Sergey Gusarov [f246c5] README*: Added comment about Python 3.12 and di...
 __init__.py 2015-08-12 s.gusarov s.gusarov [d2f27b] Added empty __init__.py. Now modules could be i...
 common_clean.py 2024-12-27 Sergey Gusarov Sergey Gusarov [54768a] Fixed cleaning up of build_info for application...
 common_pack.py 2022-08-02 Sergey Gusarov Sergey Gusarov [df3b19] fs -> fsys renamed to prevent name conflict (th...
 cppcheck.py 2022-08-02 Sergey Gusarov Sergey Gusarov [df3b19] fs -> fsys renamed to prevent name conflict (th...
 cpu.py 2023-09-23 Sergey Gusarov Sergey Gusarov [a151d2] Print exception's output to stderr instead of s...
 env.py 2024-06-06 Sergey Gusarov Sergey Gusarov [9b899b] Added env module
 extra_strings.py 2024-05-11 Sergey Gusarov Sergey Gusarov [aeba88] fixed bug in consoleNumberCharacter()
 fix_code_style.py 2022-08-02 Sergey Gusarov Sergey Gusarov [df3b19] fs -> fsys renamed to prevent name conflict (th...
 fsys.py 2025-01-11 Sergey Gusarov Sergey Gusarov [1e59eb] Added comments to fsys
 gen_build_info.py 2025-01-04 Sergey Gusarov Sergey Gusarov [c43256] gen_build_info: try..except over getting svn an...
 log.py 2024-12-27 Sergey Gusarov Sergey Gusarov [d4ad94] log.py: Added author and license info
 pack.py 2025-01-26 Sergey Gusarov Sergey Gusarov [aba92b] pack.py: Explicit specification of compression ...
 prepare_cmakelists_app.py 2025-01-11 Sergey Gusarov Sergey Gusarov [2eaadd] prepare_cmakelists_app.py: Make sure that build...
 pycodestyle 2022-01-03 Sergey Gusarov Sergey Gusarov [90319f] Added user-wide config of pycodestyle for all t...
 rst2pdf_cyrilic.yaml 2025-09-12 Sergey Gusarov Sergey Gusarov [25e511] rst2pdf: Fixed generation of russian rst files
 rst2pdfc.py 2025-09-12 Sergey Gusarov Sergey Gusarov [70e97c] rst2pdf: More comments, language control
 run_tests.py 2024-05-11 Sergey Gusarov Sergey Gusarov [d8fca6] extra_strings: Added consoleNumberCharacter()
 uncrustify.cfg 2022-08-30 Sergey Gusarov Sergey Gusarov [25ebb8] Fixed for new uncrustify(since 2019/08):

Read Me

Repository pyrepo

General information

Library with common primitives for Python programming language. They are useful for service of any repository:

  • Archiving;
  • Clearing of objects, binaries and other temporaries;
  • Logging and debugging messages;
  • Documentation generating;
  • Fixing of code style;
  • Executing of static analysis tools;
  • Extra string processing functions;
  • Cheatsheets for different develop tools;
  • etc.

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.

Dependencies

  • 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.

TODO

  • Reformat too long stings
MongoDB Logo MongoDB