summaryrefslogtreecommitdiff
path: root/gnu/packages/aux-files/python/sanity-check.py
Commit message (Collapse)AuthorAge
* build/python: Improve error output in sanity check.Hartmut Goebel2022-01-10
| | | | | | | | Instead of printing the "str()" representation of the excaption, print the "repr()" representation. This will print the name of the exception and thus ease understanding the actual error. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* build-system/python: Handle missing metadata on Python 2.Marius Bakke2021-07-30
| | | | | | * gnu/packages/aux-files/python/sanity-check.py: Catch the less specific EnvironmentError rather than FileNotFoundError as the latter is Python 3 only.
* build/python: Handle FileNotFoundError exception in sanity-check.py.Maxim Cournoyer2021-02-03
| | | | | | | | | | This exception was thrown while running the sanity-check on the python-isort package, which doesn't make use of a setuptools-based build system but rather of a PEP 517 compliant one. * gnu/packages/aux-files/python/sanity-check.py: Handle the FileNotFoundError whe attempting to read the 'top_level.txt' metadata file of the package. Remove extraneous 'continue' statement.
* build/python: Add a sanity check phase.Lars-Dominik Braun2021-02-01
Add a new phase validating the usability of installed Python packages. * gnu/packages/aux-files/python/sanity-check.py: New file. * Makefile.am (AUX_FILES): Register it. * guix/build-system/python.scm (sanity-check.py): New variable. (lower): Add the script as an implicit input. * guix/build/python-build-system.scm: Remove trailing #t. (sanity-check): New phase. (%standard-phases): Use it. * tests/builders.scm: (make-python-dummy) (dummy-ok, dummy-dummy-nosetuptools, dummy-fail-requirements) (dummy-fail-import, dummy-fail-console-script): New variables. ("python-build-system: dummy-ok") ("python-build-system: dummy-dummy-nosetuptools") ("python-build-system: dummy-fail-requirements") ("python-build-system: dummy-fail-import") ("python-build-system: dummy-fail-console-script"): Add tests.