[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: python-fastapi: Do not delete tests, and add orjson.
From: |
guix-commits |
Subject: |
10/11: gnu: python-fastapi: Do not delete tests, and add orjson. |
Date: |
Tue, 9 May 2023 13:57:10 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit a9bd722d671a2b6e2742c44334c6c83bc66fc6e9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue May 9 19:53:30 2023 +0200
gnu: python-fastapi: Do not delete tests, and add orjson.
* gnu/packages/python-web.scm (python-fastapi)[arguments]: Remove all custom
phases; ignore two test files.
[propagated-inputs]: Add python-orjson.
---
gnu/packages/python-web.scm | 26 +++++---------------------
1 file changed, 5 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 99853acec5..486414c3f1 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8287,32 +8287,16 @@ Interface) framework/toolkit for building async web
services in Python.")
(build-system pyproject-build-system)
(arguments
(list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'drop-orjson
- (lambda _
- (substitute* "pyproject.toml"
- (("\"orjson.*\",") ""))))
- (add-after 'unpack 'delete-failing-tests
- (lambda _
- (for-each
- delete-file
- (append
- '("docs_src/app_testing/app_b_py310/test_main.py"
- "tests/test_tutorial/test_templates/test_tutorial001.py")
- (find-files "docs_src/sql_databases/"
- "test_sql_app\\.py$")
- (find-files "tests"
- "test_(default|orjson)_response_class\\.py$")
- (find-files "tests/test_tutorial"
- "test_tutorial00(1b|9c)\\.py$")
- (find-files "tests/test_tutorial"
- "test_testing_databases.*\\.py$"))))))))
+ #:test-flags
+ ;; The test_create_user tests fail with a 400 error: "Email already
registered".
+ '(list
"--ignore=docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py"
+
"--ignore=docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py")))
(propagated-inputs (list python-email-validator
python-httpx
python-itsdangerous
python-jinja2
python-multipart
+ python-orjson
python-starlette
python-pydantic
python-pyyaml
- branch master updated (a759cbffaf -> 5b58608f56), guix-commits, 2023/05/09
- 04/11: gnu: python-pymysql: Update to 1.0.2., guix-commits, 2023/05/09
- 06/11: gnu: python-aiosqlite: Update to 0.18.0., guix-commits, 2023/05/09
- 02/11: gnu: python-sqlalchemy: Update to 1.4.42., guix-commits, 2023/05/09
- 01/11: gnu: python-starlette: Update to 0.25.0., guix-commits, 2023/05/09
- 03/11: gnu: python-sqlalchemy: Use pyproject-build-system., guix-commits, 2023/05/09
- 07/11: gnu: python-databases: Update to 0.7.0., guix-commits, 2023/05/09
- 09/11: gnu: Add python-fastapi., guix-commits, 2023/05/09
- 10/11: gnu: python-fastapi: Do not delete tests, and add orjson.,
guix-commits <=
- 08/11: gnu: python-databases: Revise description., guix-commits, 2023/05/09
- 11/11: gnu: Add python-clinguin., guix-commits, 2023/05/09
- 05/11: gnu: python-aiomysql: Update to 0.1.1., guix-commits, 2023/05/09