diff options
Diffstat (limited to 'dev-python/pytest-benchmark')
| -rw-r--r-- | dev-python/pytest-benchmark/metadata.xml | 11 | ||||
| -rw-r--r-- | dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 31 |
2 files changed, 11 insertions, 31 deletions
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml index 5bfde33b0c9e..fae56a108b8e 100644 --- a/dev-python/pytest-benchmark/metadata.xml +++ b/dev-python/pytest-benchmark/metadata.xml @@ -1,17 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <longdescription lang="en"> - This plugin tightly integrates into pytest. To use this effectively you should know a thing or two about pytest first. Take a look at the introductory material or watch talks. - - Few notes: - - This plugin benchmarks functions and only that. If you want to measure block of code or whole programs you will need to write a wrapper function. - In a test you can only benchmark one function. If you want to benchmark many functions write more tests or use parametrization http://docs.pytest.org/en/latest/parametrize.html. - To run the benchmarks you simply use pytest to run your "tests". The plugin will automatically do the benchmarking and generate a result table. Run pytest --help for more details. - -This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it. - </longdescription> <upstream> <changelog>https://pytest-benchmark.readthedocs.io/en/latest/changelog.html</changelog> <doc>https://pytest-benchmark.readthedocs.io/</doc> diff --git a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild index 1f2a99ca3516..2287a6fc72f1 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild @@ -1,11 +1,16 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 + +DOCS_BUILDER="sphinx" +DOCS_DEPEND="dev-python/sphinx-py3doc-enhanced-theme" +DOCS_DIR="docs" + +inherit distutils-r1 docs DESCRIPTION="py.test fixture for benchmarking code" HOMEPAGE=" @@ -22,10 +27,8 @@ DOCS=( {AUTHORS,CHANGELOG,README}.rst ) RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] " -# tests include pytest-xdist integration BDEPEND=" test? ( dev-python/aspectlib[${PYTHON_USEDEP}] @@ -41,24 +44,12 @@ BDEPEND=" " EPYTEST_DESELECT=( - tests/test_benchmark.py::test_help + # The equality test is not correct (the format changed but the tests did not) + # This also deselect other tests for some reason tests/test_cli.py::test_help tests/test_cli.py::test_help_compare + tests/test_benchmark.py::test_abort_broken + tests/test_utils.py::test_clonefunc ) distutils_enable_tests pytest - -distutils_enable_sphinx docs \ - dev-python/sphinx-py3doc-enhanced-theme - -python_test() { - if [[ ${EPYTHON} == "python3.11" ]]; then - # https://github.com/ionelmc/pytest-benchmark/issues/231 - EPYTEST_DESELECT+=( - tests/test_benchmark.py::test_abort_broken - "tests/test_utils.py::test_clonefunc[<lambda>]" - "tests/test_utils.py::test_clonefunc[f2]" - ) - fi - epytest -} |
