Search Criteria
Package Details: python-xdoctest 1.3.0-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/python-xdoctest.git (read-only, click to copy) |
|---|---|
| Package Base: | python-xdoctest |
| Description: | A Python package for executing tests in documentation strings |
| Upstream URL: | https://github.com/Erotemic/xdoctest |
| Licenses: | Apache-2.0 |
| Submitter: | grawlinson |
| Maintainer: | lahwaacz |
| Last Packager: | lahwaacz |
| Votes: | 1 |
| Popularity: | 0.149631 |
| First Submitted: | 2020-07-08 21:43 (UTC) |
| Last Updated: | 2026-01-12 06:20 (UTC) |
Dependencies (8)
- python
- python-build (make)
- python-installer (make)
- python-setuptools (make)
- python-wheel (make)
- python-pytest (check)
- jupyter-nbconvert (optional) – for running tests in Jupyter notebooks
- python-pygments (optional) – for colorized output
Required by (2)
- python-gaphor-git (check)
- python-ubelt (check)
Latest Comments
GJvanderHeiden commented on 2024-03-25 08:00 (UTC)
@Iahwaacz Interesting read, thank you
lahwaacz commented on 2024-03-24 20:02 (UTC)
@GJvanderHeiden See https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
GJvanderHeiden commented on 2024-03-24 19:33 (UTC)
@Iahwaacz Thanks for your reply. Not sure what you mean with a clean chroot. I did build it in a clean, threw everything but the git files away. The package installed with makepkg --nocheck -si
lahwaacz commented on 2024-03-24 12:17 (UTC)
@GJvanderHeiden Have you built the package in a clean chroot? See also the previous comments.
GJvanderHeiden commented on 2024-03-24 11:28 (UTC) (edited on 2024-03-24 11:29 (UTC) by GJvanderHeiden)
Building this gives an error:
No idea. The github page shows all kinds of ok build flags. I also tried to install python-pyflakes, as hinted by a warning. Warning disappeared, error stayed.
grawlinson commented on 2022-06-11 04:51 (UTC)
You can either build the package in a clean chroot or disable tests.
Popolon commented on 2022-06-04 08:15 (UTC)
Builiding the package currently fail with this message. I don't understand what this error means:
testing/test_traceback.py . [ 54%] tmp_install/usr/lib/python3.10/site-packages/xdoctest/utils/util_str.py . INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 608, in _importtestmodule INTERNALERROR> mod = import_path(self.path, mode=importmode, root=self.config.rootpath) INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/pathlib.py", line 556, in import_path INTERNALERROR> raise ImportPathMismatchError(module_name, module_file, path) INTERNALERROR> _pytest.pathlib.ImportPathMismatchError: ('xdoctest.utils.util_str', '/data/pacaur/python-xdoctest/src/python-xdoctest/tmp_install/usr/lib/python3.10/site-packages/xdoctest/utils/util_str.py', PosixPath('/data/pacaur/python-xdoctest/src/python-xdoctest/xdoctest/utils/util_str.py')) INTERNALERROR> INTERNALERROR> The above exception was the direct cause of the following exception: INTERNALERROR> INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 268, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 322, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__ INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 347, in pytest_runtestloop INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__ INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result INTERNALERROR> raise ex[1].with_traceback(ex[2]) INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/usr/lib/python3.10/site-packages/flaky/flaky_pytest_plugin.py", line 80, in pytest_runtest_protocol INTERNALERROR> test_instance = self._get_test_instance(item) INTERNALERROR> File "/usr/lib/python3.10/site-packages/flaky/flaky_pytest_plugin.py", line 298, in _get_test_instance INTERNALERROR> if hasattr(item, 'parent') and hasattr(item.parent, 'obj'): INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 301, in obj INTERNALERROR> self._obj = obj = self._getobj() INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 519, in _getobj INTERNALERROR> return self._importtestmodule() INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 614, in _importtestmodule INTERNALERROR> raise self.CollectError( INTERNALERROR> _pytest.nodes.Collector.CollectError: import file mismatch: INTERNALERROR> imported module 'xdoctest.utils.util_str' has this __file__ attribute: INTERNALERROR> /data/pacaur/python-xdoctest/src/python-xdoctest/tmp_install/usr/lib/python3.10/site-packages/xdoctest/utils/util_str.py INTERNALERROR> which is not the same as the test file we want to collect: INTERNALERROR> /data/pacaur/python-xdoctest/src/python-xdoctest/xdoctest/utils/util_str.py INTERNALERROR> HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules ============================================== 1 failed, 202 passed, 16 skipped, 6 warnings in 64.25s (0:01:04) ==============================================