[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
161/223: gnu: dynaconf: Improve package style.
From: |
guix-commits |
Subject: |
161/223: gnu: dynaconf: Improve package style. |
Date: |
Thu, 17 Oct 2024 06:21:02 -0400 (EDT) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit e0cdd205f1c9c78baf4ef1189adf272ba3da0da5
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:53:22 2024 +0200
gnu: dynaconf: Improve package style.
* gnu/packages/python-xyz.scm (dynaconf): Improve package-style and
ignore coverage tests.
[origin](snippet): More concise snippet. Remove coverage management.
[arguments]<#:test-flags>: Add arguments from former check
replacement phase.
<#:phases>: Remove check replacement phase.
Change-Id: I2a0e0a8dea5000aecc05707c35d307c867c96709
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/python-xyz.scm | 42 ++++++++++++++----------------------------
1 file changed, 14 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9f40a9e6e4..7f73bfc124 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36037,43 +36037,29 @@ Python @code{set} interface.")
"0fj2ffvzfvjf4d7f672h5x5fzq26f8hax9j3dfsix158fwm0212w"))
(patches (search-patches "dynaconf-unvendor-deps.patch"))
(modules '((guix build utils)))
- (snippet '(begin
- ;; Remove vendored dependencies
- (let ((unvendor '("click" "dotenv" "ruamel" "toml")))
- (with-directory-excursion "dynaconf/vendor"
- (for-each delete-file-recursively unvendor)))
- ;; Lower coverage quality gate for unit tests
- (substitute* ".coveragerc"
- (("fail_under = 95") "fail_under = 50"))))))
+ ;; Remove vendored dependencies
+ (snippet '(let ((unvendor '("click" "dotenv" "ruamel" "toml")))
+ (with-directory-excursion "dynaconf/vendor"
+ (for-each delete-file-recursively unvendor))))))
(build-system pyproject-build-system)
(arguments
`(#:test-flags
- '("-k"
- ,(let ((click-tests '("test_negative_get"
- "test_inspect_invalid_format")))
- ;; Disable integration tests
- (string-append "not integration and not "
- ;; These tests fail because we use Click 8.*
instead of
- ;; Click 7
- (string-join click-tests " and not "))))
+ '("--ignore=tests/test_vault.py" ; depend on hvac and a live Vault
+ "-k" ,(let ((click-tests '("test_negative_get"
+ "test_inspect_invalid_format")))
+ ;; Disable integration tests
+ (string-append "not integration and not "
+ ;; These tests fail because we use Click 8.*
+ ;; instead of Click 7
+ (string-join click-tests " and not ")))
+ "tests")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-for-click-8
(lambda _
(substitute* "dynaconf/cli.py"
(("click.get_os_args\\()") ;deprecated from Click 8.1+
- "sys.argv[1:]"))))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- ;; These tests depend on hvac and a live Vault process.
- (delete-file "tests/test_vault.py")
- (apply invoke
- `("py.test" ,@test-flags "-v"
- "--cov-config" ".coveragerc"
- "--cov=dynaconf"
- "-l" "--tb=short"
- "--maxfail=1" "tests/"))))))))
+ "sys.argv[1:]")))))))
(propagated-inputs
(list python-click python-configobj python-dotenv-0.13.0
python-ruamel.yaml-0.16 python-toml python-tomli))
- 192/223: gnu: python-pytest-enabler: Break dependency cycle., (continued)
- 192/223: gnu: python-pytest-enabler: Break dependency cycle., guix-commits, 2024/10/17
- 199/223: gnu: python-rich: Update to 13.7.1., guix-commits, 2024/10/17
- 202/223: gnu: python-uqbar: Improve package style., guix-commits, 2024/10/17
- 203/223: gnu: python-uqbar: Upgrade to python-team branch., guix-commits, 2024/10/17
- 216/223: gnu: python-matplotlib: Ignore failing tests., guix-commits, 2024/10/17
- 223/223: gnu: python-urllib3: Update to 2.2.1., guix-commits, 2024/10/17
- 73/223: gnu: Add python-hatch-jupyter-builder., guix-commits, 2024/10/17
- 130/223: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/10/17
- 139/223: gnu: python-black: Move to pyproject-build-system., guix-commits, 2024/10/17
- 146/223: gnu: vdirsyncer: Move to pyproject-build-system and enable tests., guix-commits, 2024/10/17
- 161/223: gnu: dynaconf: Improve package style.,
guix-commits <=
- 170/223: gnu: python-tinycss: Move to pyproject-build-system., guix-commits, 2024/10/17
- 175/223: gnu: python-amqp: Move to pyproject-build-system., guix-commits, 2024/10/17
- 176/223: gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system., guix-commits, 2024/10/17
- 187/223: gnu: python-jaraco-packaging: Move to pyproject-build-system., guix-commits, 2024/10/17
- 191/223: gnu: python-sparse: Move to pyproject-build-system., guix-commits, 2024/10/17
- 206/223: gnu: python-zope-i18nmessageid: Move to pyproject-build-system., guix-commits, 2024/10/17
- 208/223: gnu: borgmatic: Move to pyproject-build-system., guix-commits, 2024/10/17
- 197/223: gnu: python-flake8-isort: Move to pyproject-build-system., guix-commits, 2024/10/17
- 204/223: gnu: python-uqbar: Update to 0.6.9., guix-commits, 2024/10/17
- 214/223: gnu: python-warcio: Move to pyproject-build-system., guix-commits, 2024/10/17