]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Accept conditional dependencies with tests.
authorBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 17:10:33 +0000 (19:10 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2024 17:10:33 +0000 (19:10 +0200)
* pygnulib/GLImport.py (GLImport.__init__): Don't reject the combination
of gl_CONDITIONAL_DEPENDENCIES and gl_WITH_TESTS.
* pygnulib/GLError.py (GLError.__repr__): Remove error 10.
* pygnulib/main.py (main_with_exception_handling): Likewise.

ChangeLog
pygnulib/GLError.py
pygnulib/GLImport.py
pygnulib/main.py

index 30913f914e2ef7182b1854cb7844dacb08247bae..c5c7dae203d7e5b20af5ca02f0bde53efd815185 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-04-12  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Accept conditional dependencies with tests.
+       * pygnulib/GLImport.py (GLImport.__init__): Don't reject the combination
+       of gl_CONDITIONAL_DEPENDENCIES and gl_WITH_TESTS.
+       * pygnulib/GLError.py (GLError.__repr__): Remove error 10.
+       * pygnulib/main.py (main_with_exception_handling): Likewise.
+
 2024-04-12  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Fix handling of --with-obsolete.
index a4c835f43e102618e5d4ba59c3be61ac106c56ff..a990c382b12e1d80fc4cb9c8ce98e7578c5dc255 100644 (file)
@@ -53,7 +53,6 @@ class GLError(Exception):
           7: missing docbase argument
           8: missing testsbase argument
           9: missing libname argument
-         10: conddeps are not supported with inctests
          11: incompatible licenses on modules: <modules>
          12: cannot process empty filelist
          13: cannot create the given directory: <directory>
@@ -93,8 +92,6 @@ class GLError(Exception):
                 message = "missing testsbase argument; cache file doesn't contain it, so you might have to set this argument"
             elif errno == 9:
                 message = "missing libname argument; cache file doesn't contain it, so you might have to set this argument"
-            elif errno == 10:
-                message = 'conddeps are not supported with inctests'
             elif errno == 11:
                 message = 'incompatible licenses on modules: %s' % repr(errinfo)
             elif errno == 12:
index bc575eaa1f863584cd75884a88cbd105eafdb044..31380a0108eb7ef69560fb0c6108344de1429299 100644 (file)
@@ -244,10 +244,6 @@ class GLImport:
             elif self.mode == MODES['update']:
                 modules = self.cache.getModules()
 
-            # If user tries to apply conddeps and TESTS['tests'] together.
-            if self.config.checkInclTestCategory(TESTS['tests']) and self.config['conddeps']:
-                raise GLError(10, None)
-
             # Update configuration dictionary.
             self.config.update(self.cache)
             for key in config.keys():
index 08c4c89cf86f85191ca4ef2e846a3c4684966fc2..f654d5b109c942da9aad94bf6f4e2e8dbcead389 100644 (file)
@@ -1413,8 +1413,6 @@ def main_with_exception_handling() -> None:
                 message += 'missing --tests-base option'
             elif errno == 9:
                 message += 'missing --lib option'
-            elif errno == 10:
-                message = 'gnulib-tool: option --conditional-dependencies is not supported with --with-tests'
             elif errno == 11:
                 incompatibilities = ''
                 message += 'incompatible license on modules:%s' % constants.NL