* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2020-03-29 9:29 Alessandro Barbieri
0 siblings, 0 replies; 19+ messages in thread
From: Alessandro Barbieri @ 2020-03-29 9:29 UTC (permalink / raw
To: gentoo-commits
commit: 8a000ba421740a784b25c855bcf4b89e0df9766e
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Mar 29 09:20:02 2020 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Mar 29 09:29:03 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8a000ba4
dev-python/pytest-benchmark: new package
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pytest-benchmark/Manifest | 1 +
dev-python/pytest-benchmark/metadata.xml | 23 ++++++++++++
.../pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 41 ++++++++++++++++++++++
3 files changed, 65 insertions(+)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
new file mode 100644
index 0000000..e0224b5
--- /dev/null
+++ b/dev-python/pytest-benchmark/Manifest
@@ -0,0 +1 @@
+DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml
new file mode 100644
index 0000000..707882f
--- /dev/null
+++ b/dev-python/pytest-benchmark/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <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>
+ <remote-id type="github">ionelm/pytest-benchmark</remote-id>
+ <remote-id type="pypi">pytest-benchmark</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
new file mode 100644
index 0000000..82b9e64
--- /dev/null
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+#DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_6 )
+
+inherit distutils-r1
+
+DESCRIPTION="py.test fixture for benchmarking code "
+HOMEPAGE="
+ https://pypi.python.org/pypi/pytest-benchmark
+ https://github.com/ionelmc/pytest-benchmark
+"
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ dev-python/hunter[${PYTHON_USEDEP}]
+ dev-python/pygal[${PYTHON_USEDEP}]
+ dev-python/pygaljs[${PYTHON_USEDEP}]
+ dev-python/pytest-instafail[${PYTHON_USEDEP}]
+ dev-python/pytest-travis-fold[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2020-03-29 13:21 Andrew Ammerlaan
0 siblings, 0 replies; 19+ messages in thread
From: Andrew Ammerlaan @ 2020-03-29 13:21 UTC (permalink / raw
To: gentoo-commits
commit: 57fe81e30629df5f2bee32aa4cf834022fe67fbe
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Mar 29 12:01:46 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Mar 29 12:01:46 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57fe81e3
dev-python/pytest-benchmark: tried and failed to fix tests
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
index 82b9e64..5652413 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
@@ -3,7 +3,7 @@
EAPI="7"
-#DISTUTILS_USE_SETUPTOOLS=rdepend
+DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
@@ -19,6 +19,11 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+# during tests import fails because conflict with the already installed files
+# not sure how to fix, it would require setting some python variables but that would
+# probably lead to all other packages being unfindable by the tests
+RESTRICT="test"
+
RDEPEND="
dev-python/py-cpuinfo[${PYTHON_USEDEP}]
"
@@ -39,3 +44,10 @@ BDEPEND="
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
+
+python_test() {
+ # has to be run in source dir
+ PYTHONPATH="${S}"
+ cd "${S}" || die
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
2020-06-09 16:37 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
@ 2020-06-09 14:00 ` Andrew Ammerlaan
0 siblings, 0 replies; 19+ messages in thread
From: Andrew Ammerlaan @ 2020-06-09 14:00 UTC (permalink / raw
To: gentoo-commits
commit: 85817e8e6ff220726df6392b991070582862b99d
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Jun 9 14:00:15 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Jun 9 14:00:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=85817e8e
dev-python/pytest-benchmark: add py3_7,8
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
index 5652413..fd51308 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
@@ -4,7 +4,7 @@
EAPI="7"
DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
@@ -37,7 +37,6 @@ BDEPEND="
dev-python/pygal[${PYTHON_USEDEP}]
dev-python/pygaljs[${PYTHON_USEDEP}]
dev-python/pytest-instafail[${PYTHON_USEDEP}]
- dev-python/pytest-travis-fold[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2020-09-24 12:17 Andrew Ammerlaan
0 siblings, 0 replies; 19+ messages in thread
From: Andrew Ammerlaan @ 2020-09-24 12:17 UTC (permalink / raw
To: gentoo-commits
commit: 6daa18ff8cb9fa4df8cae9719fbf2a91a19293c7
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu Sep 24 11:53:41 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Sep 24 11:53:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6daa18ff
dev-python/pytest-benchmark: drop py3.6
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
index fd513089..6d4a4b16 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
@@ -4,7 +4,7 @@
EAPI="7"
DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{7,8} )
inherit distutils-r1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2021-05-06 0:22 Alessandro Barbieri
0 siblings, 0 replies; 19+ messages in thread
From: Alessandro Barbieri @ 2021-05-06 0:22 UTC (permalink / raw
To: gentoo-commits
commit: b683d047773e0c335e9a4c10ce8096bccd60b2db
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu May 6 00:09:32 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu May 6 00:22:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b683d047
dev-python/pytest-benchmark: fix remote name
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pytest-benchmark/metadata.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml
index 707882f3b..bb332d1e9 100644
--- a/dev-python/pytest-benchmark/metadata.xml
+++ b/dev-python/pytest-benchmark/metadata.xml
@@ -17,7 +17,7 @@
This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it.
</longdescription>
<upstream>
- <remote-id type="github">ionelm/pytest-benchmark</remote-id>
+ <remote-id type="github">ionelmc/pytest-benchmark</remote-id>
<remote-id type="pypi">pytest-benchmark</remote-id>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2021-05-25 10:37 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2021-05-25 10:37 UTC (permalink / raw
To: gentoo-commits
commit: 2d87d737985102f472c5d1b78b2510fcf64907f3
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue May 25 08:42:44 2021 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue May 25 10:37:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2d87d737
dev-python/pytest-benchmark: support python 3.9
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
index 6d4a4b167..c381feca3 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
@@ -4,7 +4,7 @@
EAPI="7"
DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2021-06-14 2:27 Alessandro Barbieri
0 siblings, 0 replies; 19+ messages in thread
From: Alessandro Barbieri @ 2021-06-14 2:27 UTC (permalink / raw
To: gentoo-commits
commit: 58809d829903647fb850f3c60c925706ff46c584
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jun 14 01:11:20 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon Jun 14 02:27:30 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58809d82
dev-python/pytest-benchmark: add 3.4.1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pytest-benchmark/Manifest | 1 +
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 52 ++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
index e0224b528..339e0614a 100644
--- a/dev-python/pytest-benchmark/Manifest
+++ b/dev-python/pytest-benchmark/Manifest
@@ -1 +1,2 @@
DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53
+DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
new file mode 100644
index 000000000..e342f4803
--- /dev/null
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="py.test fixture for benchmarking code "
+HOMEPAGE="
+ https://pypi.python.org/pypi/pytest-benchmark
+ https://github.com/ionelmc/pytest-benchmark
+"
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# during tests import fails because conflict with the already installed files
+# not sure how to fix, it would require setting some python variables but that would
+# probably lead to all other packages being unfindable by the tests
+RESTRICT="test"
+
+RDEPEND="
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ dev-python/hunter[${PYTHON_USEDEP}]
+ dev-python/pygal[${PYTHON_USEDEP}]
+ dev-python/pygaljs[${PYTHON_USEDEP}]
+ dev-python/pytest-instafail[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
+
+python_test() {
+ # has to be run in source dir
+ PYTHONPATH="${S}"
+ cd "${S}" || die
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2021-06-14 23:09 Alessandro Barbieri
0 siblings, 0 replies; 19+ messages in thread
From: Alessandro Barbieri @ 2021-06-14 23:09 UTC (permalink / raw
To: gentoo-commits
commit: 0ef497fc4f6284d9255650963631fbc417267d83
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jun 14 22:49:25 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon Jun 14 23:09:42 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0ef497fc
dev-python/pytest-benchmark: drop 3.2.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pytest-benchmark/Manifest | 1 -
.../pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 52 ----------------------
2 files changed, 53 deletions(-)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
index 339e0614a..f02988a91 100644
--- a/dev-python/pytest-benchmark/Manifest
+++ b/dev-python/pytest-benchmark/Manifest
@@ -1,2 +1 @@
-DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53
DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
deleted file mode 100644
index c381feca3..000000000
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit distutils-r1
-
-DESCRIPTION="py.test fixture for benchmarking code "
-HOMEPAGE="
- https://pypi.python.org/pypi/pytest-benchmark
- https://github.com/ionelmc/pytest-benchmark
-"
-SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# during tests import fails because conflict with the already installed files
-# not sure how to fix, it would require setting some python variables but that would
-# probably lead to all other packages being unfindable by the tests
-RESTRICT="test"
-
-RDEPEND="
- dev-python/py-cpuinfo[${PYTHON_USEDEP}]
-"
-BDEPEND="
- ${RDEPEND}
- test? (
- dev-python/aspectlib[${PYTHON_USEDEP}]
- dev-python/elasticsearch-py[${PYTHON_USEDEP}]
- dev-python/freezegun[${PYTHON_USEDEP}]
- dev-python/hunter[${PYTHON_USEDEP}]
- dev-python/pygal[${PYTHON_USEDEP}]
- dev-python/pygaljs[${PYTHON_USEDEP}]
- dev-python/pytest-instafail[${PYTHON_USEDEP}]
- dev-python/pytest-xdist[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
-
-python_test() {
- # has to be run in source dir
- PYTHONPATH="${S}"
- cd "${S}" || die
- pytest -vv || die "Tests fail with ${EPYTHON}"
-}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2021-08-14 2:00 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2021-08-14 2:00 UTC (permalink / raw
To: gentoo-commits
commit: 03c1950da93401e516371bb0135e4d0e10a26f26
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Aug 14 01:38:34 2021 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat Aug 14 01:59:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=03c1950d
dev-python/pytest-benchmark: bump EAPI, enable py3.10
And fix tests (that was hard...)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 55 +++++++++++-----------
1 file changed, 27 insertions(+), 28 deletions(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
index e342f4803..3cc5d7a49 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
@@ -1,11 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
-
-DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{8..9} )
+EAPI=8
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="py.test fixture for benchmarking code "
@@ -19,34 +17,35 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-# during tests import fails because conflict with the already installed files
-# not sure how to fix, it would require setting some python variables but that would
-# probably lead to all other packages being unfindable by the tests
-RESTRICT="test"
+DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
-RDEPEND="
- dev-python/py-cpuinfo[${PYTHON_USEDEP}]
-"
-BDEPEND="
- ${RDEPEND}
- test? (
- dev-python/aspectlib[${PYTHON_USEDEP}]
- dev-python/elasticsearch-py[${PYTHON_USEDEP}]
- dev-python/freezegun[${PYTHON_USEDEP}]
- dev-python/hunter[${PYTHON_USEDEP}]
- dev-python/pygal[${PYTHON_USEDEP}]
- dev-python/pygaljs[${PYTHON_USEDEP}]
- dev-python/pytest-instafail[${PYTHON_USEDEP}]
- dev-python/pytest-xdist[${PYTHON_USEDEP}]
- )
-"
+RDEPEND="dev-python/py-cpuinfo[${PYTHON_USEDEP}]"
+BDEPEND="test? (
+ dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ dev-python/hunter[${PYTHON_USEDEP}]
+ dev-python/pygal[${PYTHON_USEDEP}]
+ dev-python/pygaljs[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep \
+ 'dev-python/elasticsearch-py[${PYTHON_USEDEP}]' python3_8 python3_9 )
+)"
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
+python_prepare() {
+ if [[ ${EPYTHON} == python3.10 ]]; then
+ rm tests/test_elasticsearch_storage.py || die
+ fi
+}
+
python_test() {
- # has to be run in source dir
- PYTHONPATH="${S}"
- cd "${S}" || die
- pytest -vv || die "Tests fail with ${EPYTHON}"
+ local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
+ local epytest_args=(
+ -o markers=benchmark
+ --deselect tests/test_cli.py::test_help
+ --deselect tests/test_cli.py::test_help_compare
+ )
+
+ epytest "${epytest_args[@]}"
}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2022-06-01 5:03 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2022-06-01 5:03 UTC (permalink / raw
To: gentoo-commits
commit: dd47c8f0f30a2ad205bf7c191032ae904a325ea9
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jun 1 04:31:01 2022 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed Jun 1 05:02:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd47c8f0
dev-python/pytest-benchmark: update DESCRIPTION, SRC_URI
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/Manifest | 2 +-
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 34 ++++++++++------------
2 files changed, 16 insertions(+), 20 deletions(-)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
index f02988a91..f59164a39 100644
--- a/dev-python/pytest-benchmark/Manifest
+++ b/dev-python/pytest-benchmark/Manifest
@@ -1 +1 @@
-DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
+DIST pytest-benchmark-3.4.1.gh.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
index 3cc5d7a49..f8eabdb12 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
@@ -6,46 +6,42 @@ EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
-DESCRIPTION="py.test fixture for benchmarking code "
+DESCRIPTION="py.test fixture for benchmarking code"
HOMEPAGE="
https://pypi.python.org/pypi/pytest-benchmark
https://github.com/ionelmc/pytest-benchmark
"
-SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
+DOCS=( {AUTHORS,CHANGELOG,README}.rst )
-RDEPEND="dev-python/py-cpuinfo[${PYTHON_USEDEP}]"
+RDEPEND="
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+"
BDEPEND="test? (
dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/hunter[${PYTHON_USEDEP}]
dev-python/pygal[${PYTHON_USEDEP}]
dev-python/pygaljs[${PYTHON_USEDEP}]
- $(python_gen_cond_dep \
- 'dev-python/elasticsearch-py[${PYTHON_USEDEP}]' python3_8 python3_9 )
)"
+EPYTEST_DESELECT=(
+ tests/test_cli.py::test_help
+ tests/test_cli.py::test_help_compare
+)
+
distutils_enable_tests pytest
-distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
-python_prepare() {
- if [[ ${EPYTHON} == python3.10 ]]; then
- rm tests/test_elasticsearch_storage.py || die
- fi
-}
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
python_test() {
local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
- local epytest_args=(
- -o markers=benchmark
- --deselect tests/test_cli.py::test_help
- --deselect tests/test_cli.py::test_help_compare
- )
-
- epytest "${epytest_args[@]}"
+ epytest -o markers=benchmark
}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2022-06-05 1:09 Alessandro Barbieri
0 siblings, 0 replies; 19+ messages in thread
From: Alessandro Barbieri @ 2022-06-05 1:09 UTC (permalink / raw
To: gentoo-commits
commit: 6a57fe5bd6344e655509646f0009e691aca05970
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Jun 4 21:53:13 2022 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Jun 5 01:09:30 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6a57fe5b
dev-python/pytest-benchmark: unkeyword 3.4.1 for ~x86
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
index f8eabdb12..a3a72616f 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.g
LICENSE="BSD-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64"
DOCS=( {AUTHORS,CHANGELOG,README}.rst )
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2022-06-05 6:16 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2022-06-05 6:16 UTC (permalink / raw
To: gentoo-commits
commit: f287069080e56d8190348898b0f473ad34f38fb9
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jun 4 22:07:14 2022 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Jun 5 06:12:14 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2870690
dev-python/pytest-benchmark: disable tests broken with pytest7
Closes: https://bugs.gentoo.org/849605
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 28 ++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
index a3a72616f..a37c92d0f 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
@@ -4,11 +4,12 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="py.test fixture for benchmarking code"
HOMEPAGE="
- https://pypi.python.org/pypi/pytest-benchmark
+ https://pypi.python.org/pypi/pytest-benchmark/
https://github.com/ionelmc/pytest-benchmark
"
SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
@@ -30,11 +31,34 @@ BDEPEND="test? (
dev-python/hunter[${PYTHON_USEDEP}]
dev-python/pygal[${PYTHON_USEDEP}]
dev-python/pygaljs[${PYTHON_USEDEP}]
-)"
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+)" # tests include pytest-xdist integration
EPYTEST_DESELECT=(
tests/test_cli.py::test_help
tests/test_cli.py::test_help_compare
+
+ # test failures with pytest7, see:
+ # https://github.com/ionelmc/pytest-benchmark/issues/214
+ tests/test_benchmark.py::test_groups
+ tests/test_benchmark.py::test_group_by_func
+ tests/test_benchmark.py::test_group_by_fullfunc
+ tests/test_benchmark.py::test_group_by_param_all
+ tests/test_benchmark.py::test_group_by_param_select
+ tests/test_benchmark.py::test_group_by_param_select_multiple
+ tests/test_benchmark.py::test_group_by_fullname
+ tests/test_benchmark.py::test_only_override_skip
+ tests/test_benchmark.py::test_fixtures_also_skipped
+ tests/test_benchmark.py::test_max_time_min_rounds
+ tests/test_benchmark.py::test_max_time
+ tests/test_benchmark.py::test_disable_gc
+ tests/test_benchmark.py::test_custom_timer
+ tests/test_benchmark.py::test_sort_by_mean
+ tests/test_benchmark.py::test_basic
+ tests/test_benchmark.py::test_skip
+ tests/test_benchmark.py::test_disable
+ tests/test_benchmark.py::test_mark_selection
+ tests/test_benchmark.py::test_only_benchmarks
)
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2022-11-03 7:37 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2022-11-03 7:37 UTC (permalink / raw
To: gentoo-commits
commit: 0000b29249928745fce7f701afbc25eaa7513e70
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Nov 3 06:07:27 2022 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Nov 3 07:37:10 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0000b292
dev-python/pytest-benchmark: add 4.0.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/Manifest | 1 +
.../pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 47 ++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
index f59164a39..2c1a04329 100644
--- a/dev-python/pytest-benchmark/Manifest
+++ b/dev-python/pytest-benchmark/Manifest
@@ -1 +1,2 @@
DIST pytest-benchmark-3.4.1.gh.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
+DIST pytest-benchmark-4.0.0.gh.tar.gz 315989 BLAKE2B 1d0d8692b1c8e4eada2e0e369362d2938c78cfe53c9fc8b6510a7e679fc9efcd8db8ac4add6b67f21f839467557fa109f911374da003c2537f06b08ca013c0a6 SHA512 88636e44c184f5072ad081a89f08e8838a11397e6b88298d7f235b531f894792001b858fc5c810b1399d41ec55de5db9057552fb7544fb405a04c3ba5ffbe329
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
new file mode 100644
index 000000000..366514267
--- /dev/null
+++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="py.test fixture for benchmarking code"
+HOMEPAGE="
+ https://pypi.python.org/pypi/pytest-benchmark/
+ https://github.com/ionelmc/pytest-benchmark
+"
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DOCS=( {AUTHORS,CHANGELOG,README}.rst )
+
+RDEPEND="
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+"
+BDEPEND="test? (
+ dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ dev-python/hunter[${PYTHON_USEDEP}]
+ dev-python/pygal[${PYTHON_USEDEP}]
+ dev-python/pygaljs[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/mercurial
+)" # tests include pytest-xdist integration
+
+EPYTEST_DESELECT=(
+ tests/test_cli.py::test_help
+ tests/test_cli.py::test_help_compare
+)
+
+distutils_enable_tests pytest
+
+distutils_enable_sphinx docs \
+ dev-python/sphinx-py3doc-enhanced-theme
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2023-05-04 2:02 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2023-05-04 2:02 UTC (permalink / raw
To: gentoo-commits
commit: ed9dc9ddf08b7bc884cd97806999c40cf87cb5ca
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu May 4 01:24:52 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu May 4 01:24:52 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ed9dc9dd
dev-python/pytest-benchmark: drop 3.4.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/Manifest | 1 -
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 71 ----------------------
2 files changed, 72 deletions(-)
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest
index 2c1a04329..69e92289d 100644
--- a/dev-python/pytest-benchmark/Manifest
+++ b/dev-python/pytest-benchmark/Manifest
@@ -1,2 +1 @@
-DIST pytest-benchmark-3.4.1.gh.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5
DIST pytest-benchmark-4.0.0.gh.tar.gz 315989 BLAKE2B 1d0d8692b1c8e4eada2e0e369362d2938c78cfe53c9fc8b6510a7e679fc9efcd8db8ac4add6b67f21f839467557fa109f911374da003c2537f06b08ca013c0a6 SHA512 88636e44c184f5072ad081a89f08e8838a11397e6b88298d7f235b531f894792001b858fc5c810b1399d41ec55de5db9057552fb7544fb405a04c3ba5ffbe329
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
deleted file mode 100644
index 834f35f3c..000000000
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_10 )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
-
-DESCRIPTION="py.test fixture for benchmarking code"
-HOMEPAGE="
- https://pypi.python.org/pypi/pytest-benchmark/
- https://github.com/ionelmc/pytest-benchmark
-"
-SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64"
-
-DOCS=( {AUTHORS,CHANGELOG,README}.rst )
-
-RDEPEND="
- dev-python/py-cpuinfo[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
-"
-BDEPEND="test? (
- dev-python/aspectlib[${PYTHON_USEDEP}]
- dev-python/elasticsearch-py[${PYTHON_USEDEP}]
- dev-python/freezegun[${PYTHON_USEDEP}]
- dev-python/hunter[${PYTHON_USEDEP}]
- dev-python/pygal[${PYTHON_USEDEP}]
- dev-python/pygaljs[${PYTHON_USEDEP}]
- dev-python/pytest-xdist[${PYTHON_USEDEP}]
-)" # tests include pytest-xdist integration
-
-EPYTEST_DESELECT=(
- tests/test_cli.py::test_help
- tests/test_cli.py::test_help_compare
-
- # test failures with pytest7, see:
- # https://github.com/ionelmc/pytest-benchmark/issues/214
- tests/test_benchmark.py::test_groups
- tests/test_benchmark.py::test_group_by_func
- tests/test_benchmark.py::test_group_by_fullfunc
- tests/test_benchmark.py::test_group_by_param_all
- tests/test_benchmark.py::test_group_by_param_select
- tests/test_benchmark.py::test_group_by_param_select_multiple
- tests/test_benchmark.py::test_group_by_fullname
- tests/test_benchmark.py::test_only_override_skip
- tests/test_benchmark.py::test_fixtures_also_skipped
- tests/test_benchmark.py::test_max_time_min_rounds
- tests/test_benchmark.py::test_max_time
- tests/test_benchmark.py::test_disable_gc
- tests/test_benchmark.py::test_custom_timer
- tests/test_benchmark.py::test_sort_by_mean
- tests/test_benchmark.py::test_basic
- tests/test_benchmark.py::test_skip
- tests/test_benchmark.py::test_disable
- tests/test_benchmark.py::test_mark_selection
- tests/test_benchmark.py::test_only_benchmarks
-)
-
-distutils_enable_tests pytest
-
-distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
-
-python_test() {
- local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
- epytest -o markers=benchmark
-}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2023-07-05 13:59 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2023-07-05 13:59 UTC (permalink / raw
To: gentoo-commits
commit: cc571cb51485cc07c30c0a0a11635c4eda7a74ad
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jul 5 13:28:23 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed Jul 5 13:57:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc571cb5
dev-python/pytest-benchmark: update upstream metadata
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/metadata.xml | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml
index 5d8ce4259..ff29dc0df 100644
--- a/dev-python/pytest-benchmark/metadata.xml
+++ b/dev-python/pytest-benchmark/metadata.xml
@@ -1,11 +1,11 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>lssndrbarbieri@gmail.com</email>
- <name>Alessandro Barbieri</name>
- </maintainer>
- <longdescription lang="en">
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <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:
@@ -16,8 +16,10 @@
This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it.
</longdescription>
- <upstream>
- <remote-id type="github">ionelmc/pytest-benchmark</remote-id>
- <remote-id type="pypi">pytest-benchmark</remote-id>
- </upstream>
+ <upstream>
+ <remote-id type="github">ionelmc/pytest-benchmark</remote-id>
+ <remote-id type="pypi">pytest-benchmark</remote-id>
+ <doc>https://pytest-benchmark.readthedocs.io/</doc>
+ <changelog>https://pytest-benchmark.readthedocs.io/en/latest/changelog.html</changelog>
+ </upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2023-07-24 20:26 Anna Vyalkova
0 siblings, 0 replies; 19+ messages in thread
From: Anna Vyalkova @ 2023-07-24 20:26 UTC (permalink / raw
To: gentoo-commits
commit: 395916523b0c06eecd602a231aff96fe8668b37e
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Jul 24 20:23:09 2023 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Jul 24 20:23:26 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=39591652
dev-python/pytest-benchmark: rename dep
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 1baabf8e2..91438a338 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
@@ -29,7 +29,7 @@ RDEPEND="
BDEPEND="
test? (
dev-python/aspectlib[${PYTHON_USEDEP}]
- dev-python/elasticsearch-py[${PYTHON_USEDEP}]
+ dev-python/elasticsearch[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/hunter[${PYTHON_USEDEP}]
dev-python/pygal[${PYTHON_USEDEP}]
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
@ 2024-04-13 12:31 Henri Gasc
0 siblings, 0 replies; 19+ messages in thread
From: Henri Gasc @ 2024-04-13 12:31 UTC (permalink / raw
To: gentoo-commits
commit: 95bb2b4d414b94292c754b9c88a4533d302d6bf4
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Sat Apr 13 12:21:17 2024 +0000
Commit: Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Sat Apr 13 12:31:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=95bb2b4d
dev-python/pytest-benchmark: enable py3.12
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
dev-python/pytest-benchmark/metadata.xml | 11 --------
.../pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 33 ++++++++--------------
2 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml
index 7bd24eb11e..61f67f33d1 100644
--- a/dev-python/pytest-benchmark/metadata.xml
+++ b/dev-python/pytest-benchmark/metadata.xml
@@ -2,17 +2,6 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
- <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>
<remote-id type="github">ionelmc/pytest-benchmark</remote-id>
<remote-id type="pypi">pytest-benchmark</remote-id>
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 91438a338d..c1b86c0d61 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_{10..11} )
+PYTHON_COMPAT=( python3_{10..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
-}
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
2024-04-15 9:34 [gentoo-commits] repo/proj/guru:master " Julien Roy
@ 2024-04-15 9:26 ` Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-04-15 9:26 UTC (permalink / raw
To: gentoo-commits
commit: 739a680b94c5171a993b3b92b4fdbebe74f34658
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Mon Apr 15 09:22:14 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Mon Apr 15 09:22:14 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=739a680b
dev-python/pytest-benchmark: disable py3.10
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 c1b86c0d61..7fcdfec05e 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=setuptools
DOCS_BUILDER="sphinx"
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
2024-05-25 13:01 [gentoo-commits] repo/proj/guru:master " Julien Roy
@ 2024-05-25 12:41 ` Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-05-25 12:41 UTC (permalink / raw
To: gentoo-commits
commit: b6e4f01de1ff1a0897e5214b24d52759d0a61b6c
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sat May 25 12:40:10 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat May 25 12:41:28 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b6e4f01d
dev-python/pytest-benchmark: disable docs
Docs depend on dev-python/sphinx-py3doc-enhanced-theme
Which was treecleaned from ::gentoo
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
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 7fcdfec05..fee0a2b12 100644
--- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
+++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild
@@ -6,11 +6,13 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=setuptools
-DOCS_BUILDER="sphinx"
-DOCS_DEPEND="dev-python/sphinx-py3doc-enhanced-theme"
-DOCS_DIR="docs"
+# Docs depend on dev-python/sphinx-py3doc-enhanced-theme
+# Which was treecleaned from ::gentoo
+# DOCS_BUILDER="sphinx"
+# DOCS_DEPEND="dev-python/sphinx-py3doc-enhanced-theme"
+# DOCS_DIR="docs"
-inherit distutils-r1 docs
+inherit distutils-r1 # docs
DESCRIPTION="py.test fixture for benchmarking code"
HOMEPAGE="
@@ -23,7 +25,7 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
-DOCS=( {AUTHORS,CHANGELOG,README}.rst )
+# DOCS=( {AUTHORS,CHANGELOG,README}.rst )
RDEPEND="
dev-python/py-cpuinfo[${PYTHON_USEDEP}]
^ permalink raw reply related [flat|nested] 19+ messages in thread
end of thread, other threads:[~2024-05-25 12:41 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01 5:03 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/ Anna Vyalkova
-- strict thread matches above, loose matches on Subject: below --
2024-05-25 13:01 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-05-25 12:41 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-04-15 9:34 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-04-15 9:26 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-04-13 12:31 Henri Gasc
2023-07-24 20:26 Anna Vyalkova
2023-07-05 13:59 Anna Vyalkova
2023-05-04 2:02 Anna Vyalkova
2022-11-03 7:37 Anna Vyalkova
2022-06-05 6:16 Anna Vyalkova
2022-06-05 1:09 Alessandro Barbieri
2021-08-14 2:00 Anna Vyalkova
2021-06-14 23:09 Alessandro Barbieri
2021-06-14 2:27 Alessandro Barbieri
2021-05-25 10:37 Anna Vyalkova
2021-05-06 0:22 Alessandro Barbieri
2020-09-24 12:17 Andrew Ammerlaan
2020-06-09 16:37 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-06-09 14:00 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-03-29 13:21 Andrew Ammerlaan
2020-03-29 9:29 Alessandro Barbieri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox