Date: Tuesday, November 1, 2022 @ 19:52:51
  Author: felixonmars
Revision: 1340294

upgpkg: python-pytest-benchmark 4.0.0-1

Modified:
  python-pytest-benchmark/trunk/PKGBUILD
Deleted:
  python-pytest-benchmark/trunk/python310.patch

-----------------+
 PKGBUILD        |   20 ++++-------------
 python310.patch |   62 ------------------------------------------------------
 2 files changed, 5 insertions(+), 77 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-01 19:48:40 UTC (rev 1340293)
+++ PKGBUILD    2022-11-01 19:52:51 UTC (rev 1340294)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-pytest-benchmark
-pkgver=3.4.1
-pkgrel=3
+pkgver=4.0.0
+pkgrel=1
 pkgdesc='A py.test fixture for benchmarking code'
 arch=('any')
 license=('BSD')
@@ -9,21 +9,11 @@
 url='https://github.com/ionelmc/pytest-benchmark'
 depends=('python-pytest' 'python-py-cpuinfo')
 makedepends=('python-setuptools')
-checkdepends=('python-pygal' 'python-freezegun' 'mercurial' 'python-aspectlib'
+checkdepends=('python-pygal' 'python-pygaljs' 'python-freezegun' 'mercurial' 
'python-aspectlib'
               'python-pytest-xdist' 'python-elasticsearch' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz";
-        python310.patch)
-sha512sums=('54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5'
-            
'8f1c062bc502ea8ec0421509576bc1042354a5bc49f918ff7ceb8360387405f1897b1b79a1700d5ed506c326214a6222fc41353f68eeb72e37914e27ed30b1aa')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz";)
+sha512sums=('88636e44c184f5072ad081a89f08e8838a11397e6b88298d7f235b531f894792001b858fc5c810b1399d41ec55de5db9057552fb7544fb405a04c3ba5ffbe329')
 
-prepare() {
-  cd pytest-benchmark-$pkgver
-  sed -i 's/\[glob_or_file ...]]/...]/' tests/test_cli.py
-
-  # https://github.com/ionelmc/pytest-benchmark/pull/210
-  patch -Np1 -i ../python310.patch
-}
-
 build() {
   cd pytest-benchmark-$pkgver
   python setup.py build

Deleted: python310.patch
===================================================================
--- python310.patch     2022-11-01 19:48:40 UTC (rev 1340293)
+++ python310.patch     2022-11-01 19:52:51 UTC (rev 1340294)
@@ -1,62 +0,0 @@
-From b8c7d662f7b58ce48124c69082acf48acd0539bb Mon Sep 17 00:00:00 2001
-From: Evangelos Foutras <[email protected]>
-Date: Tue, 7 Dec 2021 15:55:02 +0200
-Subject: [PATCH] Fix test_cli.py::test_help* to work on Python 3.10
-
-From Python 3.10 release notes:
-
-Misleading phrase "optional arguments" was replaced with "options" in
-argparse help. Some tests might require adaptation if they rely on exact
-output match. (Contributed by Raymond Hettinger in bpo-9694.)
----
- tests/test_cli.py | 9 +++++----
- 1 file changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/tests/test_cli.py b/tests/test_cli.py
-index c71ef22..be082ad 100644
---- a/tests/test_cli.py
-+++ b/tests/test_cli.py
-@@ -9,6 +9,7 @@ pytest_plugins = 'pytester',
- 
- THIS = py.path.local(__file__)
- STORAGE = THIS.dirpath('test_storage')
-+OPTIONS = 'options' if sys.version_info >= (3, 10) else 'optional arguments'
- 
- 
- @pytest.fixture
-@@ -26,7 +27,7 @@ def test_help(testdir):
-         "",
-         "pytest_benchmark's management commands.",
-         "",
--        "optional arguments:",
-+        "%s:" % OPTIONS,
-         "  -h [COMMAND], --help [COMMAND]",
-         "                        Display help and exit.",
-         "  --storage URI, -s URI",
-@@ -57,7 +58,7 @@ def test_help_command(testdir):
-         'positional arguments:',
-         '  command',
-         '',
--        'optional arguments:',
-+        '%s:' % OPTIONS,
-         '  -h, --help  show this help message and exit',
-     ])
- 
-@@ -70,7 +71,7 @@ def test_help_list(testdir, args):
-         "",
-         "List saved runs.",
-         "",
--        "optional arguments:",
-+        "%s:" % OPTIONS,
-         "  -h, --help  show this help message and exit",
-     ])
-     assert result.ret == 0
-@@ -92,7 +93,7 @@ def test_help_compare(testdir, args):
-         "  glob_or_file          Glob or exact path for json files. If not 
specified",
-         "                        all runs are loaded.",
-         "",
--        "optional arguments:",
-+        "%s:" % OPTIONS,
-         "  -h, --help            show this help message and exit",
-         "  --sort COL            Column to sort on. Can be one of: 'min', 
'max',",
-         "                        'mean', 'stddev', 'name', 'fullname'. 
Default: 'min'",

Reply via email to