Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922192 - =dev-python/pythonfinder-2.0.5 fails to run tests: __main__.py: error: unrecognized arguments: --timeout --cov
Summary: =dev-python/pythonfinder-2.0.5 fails to run tests: __main__.py: error: unreco...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OzTiram
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 916315
  Show dependency tree
 
Reported: 2024-01-16 03:01 UTC by matoro
Modified: 2024-03-25 15:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_922192.txt,24.44 KB, text/plain)
2024-01-16 03:02 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-01-16 03:01:51 UTC
* python3_11: running distutils-r1_run_phase python_test
python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -o tmp_path_retention_count=0 -o tmp_path_retention_policy=failed -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern -p no:salt-factories
ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
__main__.py: error: unrecognized arguments: --timeout --cov
  inifile: /var/tmp/portage/dev-python/pythonfinder-2.0.5/work/pythonfinder-2.0.5/setup.cfg
  rootdir: /var/tmp/portage/dev-python/pythonfinder-2.0.5/work/pythonfinder-2.0.5

 * ERROR: dev-python/pythonfinder-2.0.5::gentoo failed (test phase):

Reproducible: Always
Comment 1 matoro archtester 2024-01-16 03:02:48 UTC
Created attachment 882370 [details]
build.log and emerge --info
Comment 2 OzTiram 2024-03-25 14:50:36 UTC
This issue is fixed in pytonfinder-2.1.0. 
I believe that pythonfinder-2.0.5 can be removed from the tree, as no packages depend on that version.
Comment 3 OzTiram 2024-03-25 14:53:38 UTC
This version was already removed.

https://github.com/gentoo/gentoo/commit/ccc92d925915e515d384313c5ee5f13d1efaebce
Comment 4 Eli Schwartz gentoo-dev 2024-03-25 15:05:26 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2c599fbe9cb961e7cb1acb5e1ed3a8bcd12e1f8

commit f2c599fbe9cb961e7cb1acb5e1ed3a8bcd12e1f8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Tue Nov 14 10:07:27 2023
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Nov 14 10:10:18 2023

    dev-python/pythonfinder: Bump to 2.0.6
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pythonfinder/Manifest                                  |  1 +
 dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch | 38 ++++++++++++++++++++++++++++++++++++++
 dev-python/pythonfinder/pythonfinder-2.0.6.ebuild                 | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 74 insertions(+)
 create mode 100644 dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch
 create mode 100644 dev-python/pythonfinder/pythonfinder-2.0.6.ebuild




This commit added:


+python_test() {
+       epytest -o addopts=
+}


The fix was NOT in upstream 2.1.0, but it is worked around in the ebuild. Please remember to remove python_test when next bumping the version.