summaryrefslogtreecommitdiff
path: root/pygnulib/constants.py
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* gnulib-tool.py: Reduce code duplication.Bruno Haible2022-08-131-0/+15
| | | | | | | * pygnulib/constants.py (relinverse): New function. * pygnulib/GLEmiter.py (GLEmiter.po_Makevars, GLEmiter.tests_Makefile_am): Use it. * pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.
* gnulib-tool.py: Fixes for conditional dependencies.Bruno Haible2022-08-091-3/+0
| | | | | | | | * pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): New constant. (GLModule.getShellFunc): Don't use md5 just because of an '_' character. (GLModule.getShellVar): Likewise. (GLModule.getConditionalName): Include a newline in the md5 input. * pygnulib/constants.py (ALPHANUMERIC): Remove constant.
* gnulib-tool.py: Make regex uses more straightforward.Bruno Haible2022-08-071-1/+1
| | | | | | | * pygnulib/constants.py: Don't use the "minimal matching" *? construct when it makes no difference (because we're matching a single line only and flag re.M is not specified). * pygnulib/GLModuleSystem.py: Likewise.
* gnulib-tool.py: Fix link_if_changed function.Bruno Haible2022-08-051-15/+27
| | | | | | | | * pygnulib/constants.py (joinpath): Fix comment. (as_link_value_at_dest): New function, extracted from link_relative. (link_relative): Use it. (link_if_changed): Really don't replace the symbolic link if it does not need to change.
* gnulib-tool.py: Fix 'Undefined variable' errors.Bruno Haible2022-08-051-0/+1
| | | | | | | | | | | * pygnulib/constants.py: Import codecs. * pygnulib/GLConfig.py (GLConfig.setLibName): Fix local variable reference. * pygnulib/GLFileSystem.py (GLFileSystem.lookup, GLFileAssistant.update): Fix local variable references. * pygnulib/GLEmiter.py (GLEmiter.po_POTFILES_in): Fix reference. * pygnulib/GLTestDir.py (GLMegaTestDir.execute): Define missing local variables.
* gnulib-tool.py: Make option --version work.Bruno Haible2022-08-051-1/+1
| | | | | | | | | | | | | | | * pygnulib/constants.py (__copyright__): Bump copyright year. * pygnulib/GLInfo.py (GLInfo.authors): Add a comma after the second-to-last author. (GLInfo.copyright): Show only the last modification year. (GLInfo.date): Check whether git and GNU date are available. Use 'git log ChangeLog', not 'git log'. Run 'git log' in the gnulib directory, not in the current directory. Search for 'Date:' only at the beginning of a line. As a fallback, look at the first ChangeLog entry. (GLInfo.version): Check whether git is available. Run git-version-gen in the gnulib directory, not in the current directory. Replace '-dirty' with '-modified'. As a fallback, return the empty string. * gnulib-tool.py (main) [--version]: Add a space before the version.
* gnulib-tool.py: Simplify.Bruno Haible2022-08-051-8/+2
| | | | | | * pygnulib/constants.py (compiler): Remove function. * gnulib-tool.py: Use re.compile directly instead. * pygnulib/*.py: Likewise.
* gnulib-tool.py: Coding style: Revisit line breaks.Bruno Haible2022-08-041-8/+11
| | | | | | * gnulib-tool.py: Avoid line breaks at arbitrary points inside expressions. Use line breaks to clarify [... for ...] iterations. * pygnulib/*.py: Likewise.
* gnulib-tool.py: Use mainstream/GNU coding style.Bruno Haible2022-08-041-4/+4
| | | | | | * gnulib-tool.py: Break lines before the % operator, not after. * pygnulib/*.py: Likewise. Avoid line breaks when the resulting lines are not too long.
* gnulib-tool.py: Implement options --without-c++-tests etc.Bruno Haible2022-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnulib-tool.py (main): Accept options --without-c++-tests, --without-longrunning-tests, --without-privileged-tests, --without-unportable-tests. Improve error message for --copy-file with invalid number of arguments. Check for invalid options given in --import, --add-import, --remove-import, --update modes. Pass both sets of test categories to the GLConfig constructor. * pygnulib/GLConfig.py (GLConfig.__init__): Accept incl_test_categories and excl_test_categories instead of testflags. (checkInclTestCategory): Renamed from checkTestFlag. (enableInclTestCategory): Renamed from enableTestFlag. (disableInclTestCategory): Renamed from disableTestFlag. (getInclTestCategories): Renamed from getTestFlags. (setInclTestCategories): Renamed from setTestFlags. (resetInclTestCategories): Renamed from resetTestFlags. (setInclTestCategory, checkExclTestCategory, enableExclTestCategory, disableExclTestCategory, getExclTestCategories, setExclTestCategories, resetExclTestCategories): New methods. * pygnulib/GLModuleSystem.py (GLModuleTable.__init__): Accept two booleans as second and third constructor arguments. (transitive_closure): Correct the determination of whether to include each module, depending on the with-* and without-* options. (transitive_closure_separately): Update. * pygnulib/GLMakefileTable.py: Update. * pygnulib/GLImport.py (__init__, actioncmd, gnulib_cache, execute): Update. * pygnulib/GLTestDir.py (GLTestDir.__init__, GLTestDir.execute, GLMegaTestDir.__init__): Update.
* gnulib-tool.py: Follow gnulib-tool changes, part 20.Bruno Haible2022-08-031-3/+23
| | | | | | | | | | | | | Follow gnulib-tool changes 2016-01-15 Paul Eggert <eggert@cs.ucla.edu> gnulib-tool: don't assume ln -s works 2016-01-24 Paul Eggert <eggert@cs.ucla.edu> gnulib-tool: don't give up on ln -s so easily 2017-06-08 Bruno Haible <bruno@clisp.org> gnulib-tool: Fix bug in func_ln_s, from 2016-01-15. * pygnulib/constants.py (symlink_relative): New function. (link_relative): Use it instead of os.symlink.
* gnulib-tool.py: Avoid errors when writing to a VFAT file system, part 2.Bruno Haible2022-08-031-0/+13
| | | | | * pygnulib/constants.py (movefile): New function. * pygnulib/*.py: Use it instead of shutil.
* gnulib-tool.py: Avoid errors when writing to a VFAT file system.Bruno Haible2022-08-031-0/+22
| | | | | | * pygnulib/constants.py (copyfile, copyfile2): New functions. * gnulib-tool.py: Use them instead of shutil. * pygnulib/*.py: Likewise.
* gnulib-tool.py: Write errors to stderr, not stdout.Bruno Haible2022-07-311-2/+2
| | | | * pygnulib/constants.py: Write error messages to stderr, not stdout.
* gnulib-tool.py: Implement options --symlink and --local-symlink.Bruno Haible2022-07-311-1/+4
| | | | | | * gnulib-tool.py (main): Handle options --symlink and --local-symlink. * pygnulib/constants.py (link_if_changed): Ignore FileNotFoundError from os.remove call.
* gnulib-tool.py: Improve the primitives for relative file names.Bruno Haible2022-07-311-10/+12
| | | | | | * pygnulib/constants.py (relativize): Don't attempt to handle absolute file names. Fix bug with relativize('../foo/bar', '../foo/bla/zut'). (relconcat): New function.
* gnulib-tool.py: Follow gnulib-tool changes, part 18.Bruno Haible2022-07-311-0/+12
| | | | | | | | | Follow gnulib-tool change 2005-09-20 Bruno Haible <bruno@clisp.org> gnulib-tool: Remove trailing slashes * pygnulib/constants.py (remove_trailing_slashes): New function. * pygnulib/GLConfig.py (GLConfig): Use it in the setters.
* gnulib-tool.py: Assume Python 3.Bruno Haible2022-07-311-30/+2
| | | | | * gnulib-tool.py: Don't allow 'bytes' as an alternative to 'str'. * pygnulib/*.py: Likewise.
* gnulib-tool.py: Assume Python 3.Bruno Haible2022-07-311-38/+11
| | | | | * gnulib-tool.py: Don't set PYTHON3, string. Use str instead of string. * pygnulib/*.py: Likewise.
* gnulib-tool.py: Modernize coding style.Bruno Haible2022-07-311-4/+4
| | | | * pygnulib/*.py: Remove parentheses around raise value expressions.
* gnulib-tool.py: Modernize coding style.Bruno Haible2022-07-291-9/+9
| | | | * pygnulib/*.py: Remove parentheses around return value expressions.
* gnulib-tool.py: Modernize the file headers.Bruno Haible2022-07-291-2/+14
| | | | | * pygnulib/*.py: Remove '#!/usr/bin/python' (not needed) and 'encoding: UTF-8' lines (default in Python 3). Add copyright notice.
* gnulib-tool.py: Use mainstream coding style.Bruno Haible2022-07-291-4/+6
| | | | | | | | | * gnulib-tool.py: Clarify the coding style. Fix some pycodestyle warnings. * pygnulib/constants.py: Likewise. * pygnulib/GLEmiter.py: Likewise. * pygnulib/GLImport.py: Likewise. * pygnulib/GLMakefileTable.py: Likewise.
* Fix typos found by codespell.Tim Rühsen2019-01-121-1/+1
| | | | | * lib/*.[hc]: Fix typos in comments. * pygnulib/*.py: Fix typos in error messages and comments.
* gnulib-tool.py: follow gnulib-tool changes, part 13Bruno Haible2017-09-091-0/+25
| | | | | | Follow gnulib-tool change 2015-06-01 Pádraig Brady <P@draigBrady.com> gnulib-tool: concatenate lib_SOURCES to a single line
* gnulib-tool.py: Define and use two new global functions.Bruno Haible2017-09-091-0/+13
| | | | | * pygnulib/constants.py (remove_backslash_newline, combine_lines): New functions.
* gnulib-tool.py: Remove unused function nlcount.Bruno Haible2017-09-091-16/+0
|
* gnulib-tool.py: Fix subend function.Bruno Haible2017-09-091-1/+9
| | | | Make subend('a','b','Laura') return 'Laurb' instead of 'bL'.
* gnulib-tool.py: follow gnulib-tool changes, part 11Bruno Haible2017-09-091-4/+4
| | | | | | Follow gnulib-tool change 2014-12-02 KO Myung-Hun <komh78@gmail.com> gnulib-tool: recognize x:* as an absolute path
* gnulib-tool.py: follow gnulib-tool changes, part 3Bruno Haible2017-09-091-5/+1
| | | | | | | | | Follow gnulib-tool change 2012-08-26 Bruno Haible <bruno@clisp.org> gnulib-tool: Remove no-op option --no-changelog. * pygnulib/constants.py: Remove FILES dictionary. * pygnulib/*: Update.
* gnulib-tool.py: Bump copyright years up to 2017.Bruno Haible2017-09-091-1/+1
|
* [pygnulib] autopep8 (fixing indentation, style, etc.)Dmitry Selyutin2017-09-081-267/+283
|
* [pygnulib] initial merge (including some small bug fixes)Dmitry Selyutin2017-09-081-0/+436