[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/28: gnu: python-pytest-asyncio: Update to 0.17.2.
From: |
guix-commits |
Subject: |
09/28: gnu: python-pytest-asyncio: Update to 0.17.2. |
Date: |
Sat, 22 Jan 2022 04:23:43 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 8830d9f900f3dc2107a0ce9541312579fa6ccb6e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jan 21 20:36:25 2022 +0100
gnu: python-pytest-asyncio: Update to 0.17.2.
* gnu/packages/check.scm (python-pytest-asyncio): Update to 0.17.2.
[arguments]: Specify setuptools-scm version. Replace check phase.
[native-inputs]: Remove PYTHON-COVERAGE. Add PYTHON-FLAKY and
PYTHON-SETUPTOOLS-SCM.
* gnu/packages/python-xyz.scm (python-tqdm, python-watchgod)[arguments]:
Specify asyncio_mode when running tests.
---
gnu/packages/check.scm | 21 +++++++++++++++++----
gnu/packages/python-xyz.scm | 7 +++++--
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 481c0332cd..2dbb95c899 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1789,7 +1789,7 @@ executed.")
(define-public python-pytest-asyncio
(package
(name "python-pytest-asyncio")
- (version "0.15.1")
+ (version "0.17.2")
(source
(origin
(method git-fetch) ;for tests
@@ -1798,11 +1798,24 @@ executed.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "03drs4myv1ik79148xyhli37q6mp931jb14cz65n8qvls2zvvwgx"))))
+ (base32 "0sl0ckc23m40q6r2xcidsizrgqbbsfa7rwmr80fss359xsydf073"))))
(build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'pretend-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(package-version this-package))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (invoke "pytest" "-vv" "tests"))))))
(native-inputs
- (list python-coverage python-async-generator python-hypothesis
- python-pytest))
+ (list python-async-generator
+ python-flaky
+ python-hypothesis
+ python-pytest
+ python-setuptools-scm))
(home-page "https://github.com/pytest-dev/pytest-asyncio")
(synopsis "Pytest support for asyncio")
(description "Python asyncio code is usually written in the form of
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d3a8c7a5f..450b5fc498 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20227,7 +20227,9 @@ ignoring formatting changes.")
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
- (invoke "pytest" "-vv" "-k" "not perf"))))))
+ (invoke "pytest" "-vv"
+ "-o" "asyncio_mode=auto"
+ "-k" "not perf"))))))
(native-inputs
(list python-pytest python-pytest-asyncio python-pytest-timeout
python-setuptools-scm python-toml))
@@ -24884,7 +24886,8 @@ but portable.")
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest" "-vv")))))))
+ (invoke "pytest" "-vv"
+ "-o" "asyncio_mode=auto")))))))
(native-inputs
(list python-coverage
python-pygments
- 01/28: gnu: python-psycopg2: Update to 2.9.3., (continued)
- 01/28: gnu: python-psycopg2: Update to 2.9.3., guix-commits, 2022/01/22
- 02/28: gnu: postgresql: Add 14.1., guix-commits, 2022/01/22
- 04/28: gnu: python-cython: Add 3.0.0a10., guix-commits, 2022/01/22
- 12/28: gnu: python-pandas: Remove old version., guix-commits, 2022/01/22
- 11/28: gnu: Add python-psycopg., guix-commits, 2022/01/22
- 14/28: gnu: python-tqdm: Update to 4.62.3., guix-commits, 2022/01/22
- 06/28: gnu: Add python-typeguard., guix-commits, 2022/01/22
- 08/28: gnu: python-pytest-mock: Cope with test warnings., guix-commits, 2022/01/22
- 07/28: gnu: python-tenacity: Update to 8.0.1., guix-commits, 2022/01/22
- 05/28: gnu: python-mypy: Update to 0.931., guix-commits, 2022/01/22
- 09/28: gnu: python-pytest-asyncio: Update to 0.17.2.,
guix-commits <=
- 17/28: gnu: python-flask: Update to 2.0.2., guix-commits, 2022/01/22
- 20/28: gnu: Deprecate python-flask-restplus., guix-commits, 2022/01/22
- 24/28: gnu: behave: Update to 1.2.7.dev2., guix-commits, 2022/01/22
- 10/28: gnu: Add python-psycopg-pool., guix-commits, 2022/01/22
- 18/28: gnu: python-flask-session: Update to 0.4.0., guix-commits, 2022/01/22
- 22/28: gnu: Add python-pytest-metadata., guix-commits, 2022/01/22
- 25/28: gnu: cwltool: Update to 3.1.20220119140128., guix-commits, 2022/01/22
- 26/28: gnu: python-flask-oidc: Update to 1.4.0., guix-commits, 2022/01/22
- 27/28: gnu: python-watchdog: Remove unused input., guix-commits, 2022/01/22
- 15/28: gnu: python-louvain: Build with older setuptools., guix-commits, 2022/01/22