* [bug#66886] Update python-textual to 0.41 @ 2023-11-01 16:58 paul via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (3 more replies) 0 siblings, 4 replies; 31+ messages in thread From: paul via Guix-patches via @ 2023-11-01 16:58 UTC (permalink / raw) To: 66886 Hello Guixers, I'm about to send a patchset updating python-textual to its latest version 0.41. Thank you for your time, giacomo ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16. 2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via @ 2023-11-01 17:01 ` Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via ` (4 more replies) 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (2 subsequent siblings) 3 siblings, 5 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart This patch has also been sent to the python-team branch with bug #66884. * gnu/packages/python-xyz.scm (python-pygments-2.16): New variable. Change-Id: I863fc1aaea9930991b6f92643befbde7ba1a335c --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6001e7e6eb..a91b9d9a94 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6144,6 +6144,27 @@ (define-public python-pygments "Pygments is a syntax highlighting package written in Python.") (license license:bsd-2))) +(define-public python-pygments-2.16 + (package + (inherit python-pygments) + (version "2.16.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Pygments" version)) + (sha256 + (base32 + "0abfx7n0mgpxk05f2kini3p78wsp1yi7lh0yjk49pii0914z1bqx")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Some tests require sphinx, which depends on this, so we only run + ;; basic tests. + '(list "--ignore-glob=tests/*/*"))) + (native-inputs + (list python-pytest)))) + (define-public python-pygments-github-lexers (package (name "python-pygments-github-lexers") base-commit: 3991d9e4d9867ec499283bfc71b34d7bfebe49b3 -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0. 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 ` Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 3/5] gnu: python-rich: Update to 13.6.0 Giacomo Leidi via Guix-patches via ` (3 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0. Change-Id: I009ad2fd7cd314e2073621f2cbe00ff97cb7e63c --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a91b9d9a94..810d86f04e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5442,13 +5442,13 @@ (define-public python-makefun (define-public python-markdown-it-py (package (name "python-markdown-it-py") - (version "2.1.0") + (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "markdown-it-py" version)) (sha256 (base32 - "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))) + "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3")))) (build-system pyproject-build-system) (arguments (list #:tests? #f)) ;pypi source does not contains tests (native-inputs (list python-flit)) -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 3/5] gnu: python-rich: Update to 13.6.0. 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 ` Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via ` (2 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-rich): Update to 13.6.0; [source]: switch to git-origin to have tests; [build-system]: switch to pyproject-build-system; [arguments]: remove it since this boilerplate is now handled by the pyproject-build-system; [propagated-inputs]: remove python-colorama as it's not listed on pyproject.toml; replace python-commonmark with python-markdown-it-py; use python-pygments-2.16; move python-attrs from here...; [native-inputs]: ...to here; drop "tests" input; add python-pytest-cov; [home-page]: https://github.com/willmcgugan/rich now redirects to https://github.com/Textualize/rich . Change-Id: I16ea6f27d24f84d86db659c224705c81fac3b42e --- gnu/packages/python-xyz.scm | 43 ++++++++++--------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 810d86f04e..9e79cf8140 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18168,43 +18168,22 @@ (define-public python-slugid (define-public python-rich (package (name "python-rich") - (version "12.4.1") + (version "13.6.0") (source (origin - (method url-fetch) - (uri (pypi-uri "rich" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs tests? #:allow-other-keys) - (when tests? - (copy-recursively (string-append - (assoc-ref inputs "tests") "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv"))))))) + "02cbi53il9j0zfwxi2lsaypj3wyfb70q2g2c1q0a3xk164dnnkfw")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-attrs python-colorama python-commonmark python-pygments - python-typing-extensions)) + (list python-markdown-it-py python-pygments-2.16 python-typing-extensions)) (native-inputs - `(("python-pytest" ,python-pytest) - ("tests" - ;; The release on pypi comes without tests. We can't build from this - ;; checkout, though, because installation requires an invocation of - ;; poetry. - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/willmcgugan/rich") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))))) - (home-page "https://github.com/willmcgugan/rich") + (list poetry python-attr python-pytest python-pytest-cov)) + (home-page "https://github.com/Textualize/rich") (synopsis "Render rich text and more to the terminal") (description "This is a Python package for rendering rich text, tables, progress bars, -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0. 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 3/5] gnu: python-rich: Update to 13.6.0 Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 ` Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 2023-11-02 0:14 ` jgart via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0. Change-Id: I06ddbee6055b570ee2d40f3e4f0a478a4413b4fe --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9e79cf8140..e7889029f3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -909,7 +909,7 @@ (define-public python-lunr (define-public python-mdit-py-plugins (package (name "python-mdit-py-plugins") - (version "0.3.1") + (version "0.4.0") (source (origin (method git-fetch) ;for tests (uri (git-reference @@ -918,7 +918,7 @@ (define-public python-mdit-py-plugins (file-name (git-file-name name version)) (sha256 (base32 - "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0")))) (build-system pyproject-build-system) (propagated-inputs (list python-markdown-it-py -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (2 preceding siblings ...) 2023-11-01 17:01 ` [bug#66886] [PATCH 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 ` Giacomo Leidi via Guix-patches via 2023-11-02 0:14 ` jgart via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-01 17:01 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-textual): Update to 0.41.0; [source]: switch to git-origin; [build-system]: switch to pyproject-build-system; [arguments]<test-flags>: disable failing tests; <phases>: use check phase from pyproject-build-system and adapt build machinery to our old version of poetry; [propagated-inputs]: adapt to pyproject.toml; [native-inputs] add poetry and python-pytest-asyncio. Change-Id: I1060b25cb2ec439f26a4348305bc05fd0b09cf07 --- gnu/packages/python-xyz.scm | 58 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e7889029f3..696790e4a1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18216,20 +18216,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.41.0") (source (origin - (method url-fetch) - (uri (pypi-uri "textual" version)) - (sha256 - (base32 - "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) - (build-system python-build-system) - (arguments - (let ((tests - ;; The release on pypi comes without tests. We can't build - ;; from this checkout, though, because installation requires - ;; an invocation of poetry. - (origin (method git-fetch) (uri (git-reference (url "https://github.com/Textualize/textual") @@ -18237,19 +18225,41 @@ (define-public python-textual (file-name (git-file-name name version)) (sha256 (base32 - "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))) - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (copy-recursively #$(file-append tests "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv")))))))) + "0fmximmnxb7h7swdrs0amlya09h0yyr1h1k09za7isihb40njwib")))) + (build-system pyproject-build-system) + (arguments + (list + ;; 3 failed, 1932 passed, 1 skipped, 4 xfailed, 10 warnings in 115.19s (0:01:55) + #:test-flags + #~'("-k" + ;; this test fails because of an AssertionError: + ;; assert app.devtools is not None + #$(string-append "not test_textual_env_var" + ;; these tests require python-tresitter-languages + " and not test_register_language" + " and not test_register_language_existing_language")) + #:phases #~(modify-phases %standard-phases + ;; TODO: This is because of our old version of poetry. + ;; It can be removed once it's been updated to a current one. + (add-after 'unpack 'adapt-pyproject.toml + (lambda _ + (substitute* "pyproject.toml" + (("group\\.dev\\.") "dev-")))) + ;; snapshot tests require syrupy + (add-after 'adapt-pyproject.toml 'remove-snapshot-tests + (lambda _ + (delete-file "tests/snapshot_tests/test_snapshots.py")))))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-importlib-metadata + python-linkify-it-py + python-markdown-it-py + python-mdit-py-plugins + python-rich + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list poetry + python-pytest + python-pytest-asyncio)) (home-page "https://github.com/Textualize/textual") (synopsis "Build text user interfaces in Python") (description "Textual is a @acronym{TUI, Text User Interface} framework -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (3 preceding siblings ...) 2023-11-01 17:01 ` [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via @ 2023-11-02 0:14 ` jgart via Guix-patches via 2023-11-16 23:55 ` paul via Guix-patches via 2023-11-18 2:44 ` jgart via Guix-patches via 4 siblings, 2 replies; 31+ messages in thread From: jgart via Guix-patches via @ 2023-11-02 0:14 UTC (permalink / raw) To: Giacomo Leidi, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke Hi, Thanks for sending this patch set. I'll try to review this week(end). all best, jgart ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-02 0:14 ` jgart via Guix-patches via @ 2023-11-16 23:55 ` paul via Guix-patches via 2023-11-18 2:44 ` jgart via Guix-patches via 1 sibling, 0 replies; 31+ messages in thread From: paul via Guix-patches via @ 2023-11-16 23:55 UTC (permalink / raw) To: jgart, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke Hi jgart, On 11/2/23 01:14, jgart wrote: > Hi, > > Thanks for sending this patch set. I'll try to review this week(end). > > all best, > > jgart I'm sending an updated patchset rebased on current master. Thank you for your time, giacomo ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-02 0:14 ` jgart via Guix-patches via 2023-11-16 23:55 ` paul via Guix-patches via @ 2023-11-18 2:44 ` jgart via Guix-patches via 2023-12-03 15:21 ` paul via Guix-patches via 1 sibling, 1 reply; 31+ messages in thread From: jgart via Guix-patches via @ 2023-11-18 2:44 UTC (permalink / raw) To: paul, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke Hi, This breaks httpie, did you try building the packages that depend on these updates? ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-18 2:44 ` jgart via Guix-patches via @ 2023-12-03 15:21 ` paul via Guix-patches via 2023-12-29 22:07 ` paul via Guix-patches via 0 siblings, 1 reply; 31+ messages in thread From: paul via Guix-patches via @ 2023-12-03 15:21 UTC (permalink / raw) To: jgart, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke [-- Attachment #1: Type: text/plain, Size: 2214 bytes --] Hi jgart, apologies for the delay but I had some problems with my SSD :( . On 11/18/23 03:44, jgart wrote: > Hi, > > This breaks httpie, did you try building the packages that depend on these updates? I did not because I often work from a Pinebook and it's quite painful building on such hardware, anyway I managed to write a script that builds dependents of a package [0], not sure if it may be useful to add something like this to the Guix repo (maybe there's already something and I just don't know, please correct me if I'm wrong). I now checked that the following packages do not regress on x86_64: build-dependents -p python-textual python-mdit-py-plugins python-rich python-markdown-it-py python-jupytext -e python-vaex-core | grep 'gnu/store' | sort -u /gnu/store/1qsr70xih21ckd7zn086p0g6qj4w294c-python-pygmsh-7.1.17 /gnu/store/31hjy58nzczfgh2wasx693mn40nk5qsx-python-textual-0.41.0 /gnu/store/3iiy6qpfiqsvxvj3yzwan2412bxk98b0-python-pyvista-0.42.3 /gnu/store/4fjyfday8nghnw76xkyaky5a33f6hfi3-clikan-0.2.1-1.55ab29e /gnu/store/4vnm5l46k4lwmg3jywlga1cppcm4czkv-pigx-sars-cov-2-0.0.9 /gnu/store/9f734m0c1ik4kwgqvixlnl1jg8qwbdqi-python-mdit-py-plugins-0.4.0 /gnu/store/b3nd3bpmlqwnw8bbgnk8i78hqa5h038w-python-pytorch-lightning-2.0.2 /gnu/store/fkd73cjmmxshdx5cr5zd190igq3l983i-python-scikit-fem-8.1.0 /gnu/store/jcs4prg3x8pzxfznqsw1qbqknjbh4qh3-python-rich-13.7.0 /gnu/store/jyzv1dhh5q0xmy2m4lk5a64br1qpjak0-pigx-0.0.3 /gnu/store/lr7qr3pqfwy7qxnihjz5kjs6gxwp061b-python-pythonanywhere-0.12.1 /gnu/store/lz43xymxhk4gahl3jvgkq6jqpniwayvg-python-markdown-it-py-3.0.0 /gnu/store/mq1sckkxkhz2snij4y46pslr9hmvhl1q-httpie-3.2.1 /gnu/store/nrspad1inl1lx2zmpacyrq5xrad49v1h-python-spacy-3.5.3 /gnu/store/pckjpvdb5n6fc7zbk4bi0dh52ch7i4ky-python-sphinx-theme-builder-0.2.0b1 /gnu/store/rsv5qiy8mj57429pzqhyb8zkgcd0glvw-python-jupytext-1.15.2 /gnu/store/s3acmhslqfw7k44lcbrw2dsr2v7q3346-pelican-4.7.2 /gnu/store/zqg8bfcd2c37yb5nn484hyi46z823krp-python-enoslib-8.0.1 python-vaex-core is also broken on master. I'm sending an updated patchset rebased on current master. Thank you for your help :) giacomo [0]: https://git.sr.ht/~fishinthecalculator/guix-dev-tools/tree/main/item/src/build-dependents [-- Attachment #2: Type: text/html, Size: 2976 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-12-03 15:21 ` paul via Guix-patches via @ 2023-12-29 22:07 ` paul via Guix-patches via 2024-01-14 23:54 ` paul via Guix-patches via 0 siblings, 1 reply; 31+ messages in thread From: paul via Guix-patches via @ 2023-12-29 22:07 UTC (permalink / raw) To: jgart, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke Hi, this is a friendly ping :) Thank you for your time! ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2023-12-29 22:07 ` paul via Guix-patches via @ 2024-01-14 23:54 ` paul via Guix-patches via 2024-02-27 18:42 ` paul via Guix-patches via 0 siblings, 1 reply; 31+ messages in thread From: paul via Guix-patches via @ 2024-01-14 23:54 UTC (permalink / raw) To: jgart, 66886; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke [-- Attachment #1: Type: text/plain, Size: 1785 bytes --] Hi! This is a friendly ping :) I'm sending an updated patchset, I built the following store paths on x86_64 to make sure there are no regressions: /gnu/store/5mh7vxaaclnh11aprsql6b40hgickmjc-python-sphinx-theme-builder-0.2.0b1 /gnu/store/v12ns2lbyr2a4iagyvjzgala1p4g2qx8-python-cplot-0.9.3 /gnu/store/b9fb35pg45gxd8chzsawk1qddsyqfkh9-python-mdit-py-plugins-0.4.0 /gnu/store/fp1y833b7k02x0fbrf8304clwx1abykq-python-pyvista-0.42.3 /gnu/store/ymiq9p2zy0agam64qaczwh4bflcfbwp5-python-pytorch-lightning-2.0.2 /gnu/store/qx17ipkk3zfhb3p58vbxia5jfcwy012a-python-vaex-core-4.13.0 /gnu/store/lxj3wfcg5nd35fja437qi80njpvaszl1-python-enoslib-8.0.1 /gnu/store/pgbjawlsb3liw9b09ncdilnbaymj97l5-trinityrnaseq-2.13.2 /gnu/store/zb004yxxff9104wlvqp4f3iswrhrfxq9-pelican-4.7.2 /gnu/store/9rrdfiarnv0i48ql0fn7baqd7rl2chyd-clikan-0.2.1-1.55ab29e /gnu/store/imdaffwaxn17x4z4nii0j1361g16sp4x-python-markdown-it-py-3.0.0 /gnu/store/wjjsa5gnni4xhjv0pyrp0whxmhkcs8lc-python-jupytext-1.15.2 /gnu/store/wjjsa5gnni4xhjv0pyrp0whxmhkcs8lc-python-jupytext-1.15.2 /gnu/store/by20s2xdvavjcgljqpmp37slx4dvcn9p-pigx-sars-cov-2-0.0.9 /gnu/store/2f5h7ahyqkr0mrs2k4lkrflvaazcdvw8-httpie-3.2.1 /gnu/store/gkardnjhnddxdxhkabxxvi5qc3rbx42f-python-textual-0.47.1 /gnu/store/61gbzbgdp3xj9p8bg1z70mlmidjfw0zq-python-spacy-3.5.3 /gnu/store/fpvw7hb32n1xqxa7w4m18n7hr9d2v76g-python-pytest-cookies-0.7.0 /gnu/store/9bhr9dvfsvp4xl9xgbgkl3dgd5bj7nzf-python-quadpy-0.16.10 /gnu/store/pzf3nkc8gsdd0ckqsw8aa5br47yqkp3j-python-pygmsh-7.1.17 /gnu/store/hkpdwjspwhgc568yp543pgy4sck9f733-python-rich-13.7.0 /gnu/store/b3y6nzc1aswq45y3kk72dza6fk9nxi92-python-pythonanywhere-0.12.1 /gnu/store/lj8x1sfyzlqcsw9ml71368dqa3zzpcy5-pigx-0.0.3 /gnu/store/gkardnjhnddxdxhkabxxvi5qc3rbx42f-python-textual-0.47.1 Thank you for your time, giacomo [-- Attachment #2: Type: text/html, Size: 2036 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2024-01-14 23:54 ` paul via Guix-patches via @ 2024-02-27 18:42 ` paul via Guix-patches via 2024-02-27 18:42 ` bug#66886: " paul via Guix-patches via 0 siblings, 1 reply; 31+ messages in thread From: paul via Guix-patches via @ 2024-02-27 18:42 UTC (permalink / raw) To: jgart, 66886-done; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke Hi everyone, closing since this has been superseded by 66886 . ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#66886: [PATCH 5/5] gnu: python-textual: Update to 0.41.0. 2024-02-27 18:42 ` paul via Guix-patches via @ 2024-02-27 18:42 ` paul via Guix-patches via 0 siblings, 0 replies; 31+ messages in thread From: paul via Guix-patches via @ 2024-02-27 18:42 UTC (permalink / raw) To: jgart, 66886-done; +Cc: Munyoki Kilyungi, Lars-Dominik Braun, Marius Bakke I meant https://issues.guix.gnu.org/68207 :) On 2/27/24 19:42, paul wrote: > Hi everyone, closing since this has been superseded by 66886 . > ^ permalink raw reply [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16. 2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 ` Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via ` (3 more replies) 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 3 siblings, 4 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart This patch has also been sent to the python-team branch with bug #66884. * gnu/packages/python-xyz.scm (python-pygments-2.16): New variable. Change-Id: I863fc1aaea9930991b6f92643befbde7ba1a335c --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8e89f61373..c4e4535f28 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6144,6 +6144,27 @@ (define-public python-pygments "Pygments is a syntax highlighting package written in Python.") (license license:bsd-2))) +(define-public python-pygments-2.16 + (package + (inherit python-pygments) + (version "2.16.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Pygments" version)) + (sha256 + (base32 + "0abfx7n0mgpxk05f2kini3p78wsp1yi7lh0yjk49pii0914z1bqx")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Some tests require sphinx, which depends on this, so we only run + ;; basic tests. + '(list "--ignore-glob=tests/*/*"))) + (native-inputs + (list python-pytest)))) + (define-public python-pygments-github-lexers (package (name "python-pygments-github-lexers") base-commit: fc6bdaad57bf91609849623c5f485403c030cb49 -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0. 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 ` Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 3/5] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via ` (2 subsequent siblings) 3 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0. Change-Id: I009ad2fd7cd314e2073621f2cbe00ff97cb7e63c --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c4e4535f28..7298b8ad05 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5442,13 +5442,13 @@ (define-public python-makefun (define-public python-markdown-it-py (package (name "python-markdown-it-py") - (version "2.1.0") + (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "markdown-it-py" version)) (sha256 (base32 - "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))) + "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3")))) (build-system pyproject-build-system) (arguments (list #:tests? #f)) ;pypi source does not contains tests (native-inputs (list python-flit)) -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v2 3/5] gnu: python-rich: Update to 13.7.0. 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 ` Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 3 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0; [source]: switch to git-origin to have tests; [build-system]: switch to pyproject-build-system; [arguments]: remove it since this boilerplate is now handled by the pyproject-build-system; [propagated-inputs]: remove python-colorama as it's not listed on pyproject.toml; replace python-commonmark with python-markdown-it-py; use python-pygments-2.16; move python-attrs from here...; [native-inputs]: ...to here; drop "tests" input; add python-pytest-cov; [home-page]: https://github.com/willmcgugan/rich now redirects to https://github.com/Textualize/rich . Change-Id: I16ea6f27d24f84d86db659c224705c81fac3b42e --- gnu/packages/python-xyz.scm | 43 ++++++++++--------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7298b8ad05..67d2057f7f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18169,43 +18169,22 @@ (define-public python-slugid (define-public python-rich (package (name "python-rich") - (version "12.4.1") + (version "13.7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "rich" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs tests? #:allow-other-keys) - (when tests? - (copy-recursively (string-append - (assoc-ref inputs "tests") "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv"))))))) + "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-attrs python-colorama python-commonmark python-pygments - python-typing-extensions)) + (list python-markdown-it-py python-pygments-2.16 python-typing-extensions)) (native-inputs - `(("python-pytest" ,python-pytest) - ("tests" - ;; The release on pypi comes without tests. We can't build from this - ;; checkout, though, because installation requires an invocation of - ;; poetry. - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/willmcgugan/rich") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))))) - (home-page "https://github.com/willmcgugan/rich") + (list poetry python-attr python-pytest python-pytest-cov)) + (home-page "https://github.com/Textualize/rich") (synopsis "Render rich text and more to the terminal") (description "This is a Python package for rendering rich text, tables, progress bars, -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v2 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0. 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 3/5] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 ` Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 3 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0. Change-Id: I06ddbee6055b570ee2d40f3e4f0a478a4413b4fe --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 67d2057f7f..7a8eaf0db3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -909,7 +909,7 @@ (define-public python-lunr (define-public python-mdit-py-plugins (package (name "python-mdit-py-plugins") - (version "0.3.1") + (version "0.4.0") (source (origin (method git-fetch) ;for tests (uri (git-reference @@ -918,7 +918,7 @@ (define-public python-mdit-py-plugins (file-name (git-file-name name version)) (sha256 (base32 - "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0")))) (build-system pyproject-build-system) (propagated-inputs (list python-markdown-it-py -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0. 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (2 preceding siblings ...) 2023-11-16 23:54 ` [bug#66886] [PATCH v2 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 ` Giacomo Leidi via Guix-patches via 3 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-11-16 23:54 UTC (permalink / raw) To: 66886 Cc: Giacomo Leidi, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi, jgart * gnu/packages/python-xyz.scm (python-textual): Update to 0.41.0; [source]: switch to git-origin; [build-system]: switch to pyproject-build-system; [arguments]<test-flags>: disable failing tests; <phases>: use check phase from pyproject-build-system and adapt build machinery to our old version of poetry; [propagated-inputs]: adapt to pyproject.toml; [native-inputs] add poetry and python-pytest-asyncio. Change-Id: I1060b25cb2ec439f26a4348305bc05fd0b09cf07 --- gnu/packages/python-xyz.scm | 58 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7a8eaf0db3..29dcded9a0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18217,20 +18217,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.41.0") (source (origin - (method url-fetch) - (uri (pypi-uri "textual" version)) - (sha256 - (base32 - "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) - (build-system python-build-system) - (arguments - (let ((tests - ;; The release on pypi comes without tests. We can't build - ;; from this checkout, though, because installation requires - ;; an invocation of poetry. - (origin (method git-fetch) (uri (git-reference (url "https://github.com/Textualize/textual") @@ -18238,19 +18226,41 @@ (define-public python-textual (file-name (git-file-name name version)) (sha256 (base32 - "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))) - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (copy-recursively #$(file-append tests "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv")))))))) + "0fmximmnxb7h7swdrs0amlya09h0yyr1h1k09za7isihb40njwib")))) + (build-system pyproject-build-system) + (arguments + (list + ;; 3 failed, 1932 passed, 1 skipped, 4 xfailed, 10 warnings in 115.19s (0:01:55) + #:test-flags + #~'("-k" + ;; this test fails because of an AssertionError: + ;; assert app.devtools is not None + #$(string-append "not test_textual_env_var" + ;; these tests require python-tresitter-languages + " and not test_register_language" + " and not test_register_language_existing_language")) + #:phases #~(modify-phases %standard-phases + ;; TODO: This is because of our old version of poetry. + ;; It can be removed once it's been updated to a current one. + (add-after 'unpack 'adapt-pyproject.toml + (lambda _ + (substitute* "pyproject.toml" + (("group\\.dev\\.") "dev-")))) + ;; snapshot tests require syrupy + (add-after 'adapt-pyproject.toml 'remove-snapshot-tests + (lambda _ + (delete-file "tests/snapshot_tests/test_snapshots.py")))))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-importlib-metadata + python-linkify-it-py + python-markdown-it-py + python-mdit-py-plugins + python-rich + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list poetry + python-pytest + python-pytest-asyncio)) (home-page "https://github.com/Textualize/textual") (synopsis "Build text user interfaces in Python") (description "Textual is a @acronym{TUI, Text User Interface} framework -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16. 2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via ` (4 more replies) 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 3 siblings, 5 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi This patch has also been sent to the python-team branch with bug #66884. * gnu/packages/python-xyz.scm (python-pygments-2.16): New variable. Change-Id: I863fc1aaea9930991b6f92643befbde7ba1a335c --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ce4f2f76ee..865aa51638 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6179,6 +6179,27 @@ (define-public python-pygments "Pygments is a syntax highlighting package written in Python.") (license license:bsd-2))) +(define-public python-pygments-2.16 + (package + (inherit python-pygments) + (version "2.16.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Pygments" version)) + (sha256 + (base32 + "0abfx7n0mgpxk05f2kini3p78wsp1yi7lh0yjk49pii0914z1bqx")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Some tests require sphinx, which depends on this, so we only run + ;; basic tests. + '(list "--ignore-glob=tests/*/*"))) + (native-inputs + (list python-pytest)))) + (define-public python-pygments-github-lexers (package (name "python-pygments-github-lexers") base-commit: 2c9ac9ab20c76abe570ff83f8746fa089fea3047 -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0. 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via ` (3 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0; (python-markdown-it-py-2.1): new variable. * gnu/packages/sphinx.scm (python-myst-parser)[propagated-inputs]: Use python-markdown-it-py-2.1. Change-Id: I009ad2fd7cd314e2073621f2cbe00ff97cb7e63c --- gnu/packages/python-xyz.scm | 15 +++++++++++++-- gnu/packages/sphinx.scm | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 865aa51638..a238764b14 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5477,13 +5477,13 @@ (define-public python-makefun (define-public python-markdown-it-py (package (name "python-markdown-it-py") - (version "2.1.0") + (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "markdown-it-py" version)) (sha256 (base32 - "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))) + "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3")))) (build-system pyproject-build-system) (arguments (list #:tests? #f)) ;pypi source does not contains tests (native-inputs (list python-flit)) @@ -5499,6 +5499,17 @@ (define-public python-markdown-it-py possible.") (license license:expat))) +(define-public python-markdown-it-py-2.1 + (package + (inherit python-markdown-it-py) + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "markdown-it-py" version)) + (sha256 + (base32 + "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))))) + (define-public python-markupsafe (package (name "python-markupsafe") diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 7e5a929241..89196086f2 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -792,7 +792,7 @@ (define-public python-myst-parser (list python-docutils python-jinja2 python-linkify-it-py - python-markdown-it-py + python-markdown-it-py-2.1 python-linkify-it-py python-mdit-py-plugins python-pyyaml -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 3/6] gnu: python-rich: Update to 13.7.0. 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via ` (2 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/bioinformatics.scm (multiqc)[propagated-inputs]: Use python-rich-12.4. * gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0; [source]: switch to git-origin to have tests; [build-system]: switch to pyproject-build-system; [arguments]: remove it since this boilerplate is now handled by the pyproject-build-system; [propagated-inputs]: remove python-colorama as it's not listed on pyproject.toml; replace python-commonmark with python-markdown-it-py; use python-pygments-2.16; move python-attrs from here...; [native-inputs]: ...to here; drop "tests" input; add python-pytest-cov; [home-page]: https://github.com/willmcgugan/rich now redirects to https://github.com/Textualize/rich ; (python-rich-12.4): new variable; (pelican)[propagated-inputs]: use python-pygments-2.16. * gnu/packages/python-web.scm (httpie)[propagated-inputs]: Use python-pygments-2.16. Change-Id: I16ea6f27d24f84d86db659c224705c81fac3b42e --- gnu/packages/bioinformatics.scm | 2 +- gnu/packages/python-web.scm | 2 +- gnu/packages/python-xyz.scm | 64 ++++++++++++++++----------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index a414a58382..63a58f1e26 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -11938,7 +11938,7 @@ (define-public multiqc python-numpy python-pyyaml python-requests - python-rich + python-rich-12.4 python-rich-click python-simplejson python-spectra)) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9d8f3c156f..ab36d2ce28 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1175,7 +1175,7 @@ (define-public httpie '(#:tests? #f)) (propagated-inputs (list python-colorama - python-pygments + python-pygments-2.16 python-requests python-requests-toolbelt python-pysocks diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a238764b14..7b96576810 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7182,7 +7182,7 @@ (define-public pelican python-feedgenerator python-jinja2 python-markdown - python-pygments + python-pygments-2.16 python-pytz python-rich python-unidecode)) @@ -18216,49 +18216,47 @@ (define-public python-slugid (define-public python-rich (package (name "python-rich") - (version "12.4.1") + (version "13.7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "rich" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs tests? #:allow-other-keys) - (when tests? - (copy-recursively (string-append - (assoc-ref inputs "tests") "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv"))))))) + "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-attrs python-colorama python-commonmark python-pygments - python-typing-extensions)) + (list python-markdown-it-py python-pygments-2.16 python-typing-extensions)) (native-inputs - `(("python-pytest" ,python-pytest) - ("tests" - ;; The release on pypi comes without tests. We can't build from this - ;; checkout, though, because installation requires an invocation of - ;; poetry. - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/willmcgugan/rich") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))))) - (home-page "https://github.com/willmcgugan/rich") + (list poetry python-attr python-pytest python-pytest-cov)) + (home-page "https://github.com/Textualize/rich") (synopsis "Render rich text and more to the terminal") (description "This is a Python package for rendering rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal.") (license license:expat))) +(define-public python-rich-12.4 + (package + (inherit python-rich) + (version "12.4.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name "python-rich" version)) + (sha256 + (base32 + "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))) + (propagated-inputs + (list python-colorama + python-commonmark + python-pygments + python-typing-extensions)))) + (define-public python-rich-click (package (name "python-rich-click") -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 4/6] gnu: python-jupytext: Update to 1.15.2. 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 6/6] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-jupytext): Update to 1.15.2; [build-system]: switch to pyproject-build-system; [arguments]<phases>: add setup-test-environment phase, use check phase from build system and move test flags from here... <test-flags>: ... to here. Change-Id: Iaec4090823715230e26865d4639871fb7c565802 --- gnu/packages/python-xyz.scm | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7b96576810..bb69873651 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -336,7 +336,7 @@ (define-public python-janus (define-public python-jupytext (package (name "python-jupytext") - (version "1.14.4") + (version "1.15.2") (source (origin (method git-fetch) @@ -345,27 +345,23 @@ (define-public python-jupytext (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "19d443vx597zzxna09qpync9iic3mris80bwm3kd8xaxaq0zq9w4")))) - (build-system python-build-system) + (base32 "0zi2b2g9b2dkzl69li5rwc17pdcxj8cxzlysd8s6jqbcc37jiwqs")))) + (build-system pyproject-build-system) (arguments (list + #:test-flags + #~'("-k" #$(string-join (list "not test_create_header_with_set_formats" + "test_pre_commit_hook" + "test_sync_with_pre_commit_hook") + " and not ")) #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) + (add-before 'check 'setup-test-environment + (lambda _ ;; some tests fail when HOME=/homeless-shelter. (setenv "HOME" "/tmp") ;; OSError: [Errno 18] Invalid cross-device link - (setenv "TMPDIR" "/tmp") - (when tests? - (let ((disabled-tests - (list "test_create_header_with_set_formats" - "test_pre_commit_hook" - "test_sync_with_pre_commit_hook"))) - (invoke "pytest" "-vv" "-k" - (string-append "not " - (string-join disabled-tests - " and not ")))))))))) + (setenv "TMPDIR" "/tmp")))))) (native-inputs (list git-minimal pre-commit -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0. 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (2 preceding siblings ...) 2023-12-03 15:22 ` [bug#66886] [PATCH v3 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 6/6] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0; (python-mdit-py-plugins-0.3): new variable. * gnu/packages/python-xyz.scm (python-myst-parser)[propagated-inputs]: Use python-mdit-py-plugins-0.3. Change-Id: I06ddbee6055b570ee2d40f3e4f0a478a4413b4fe --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++-- gnu/packages/sphinx.scm | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bb69873651..9ff130319a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -906,7 +906,7 @@ (define-public python-lunr (define-public python-mdit-py-plugins (package (name "python-mdit-py-plugins") - (version "0.3.1") + (version "0.4.0") (source (origin (method git-fetch) ;for tests (uri (git-reference @@ -915,7 +915,7 @@ (define-public python-mdit-py-plugins (file-name (git-file-name name version)) (sha256 (base32 - "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0")))) (build-system pyproject-build-system) (propagated-inputs (list python-markdown-it-py @@ -943,6 +943,23 @@ (define-public python-mdit-py-plugins @end enumerate") (license license:expat))) +(define-public python-mdit-py-plugins-0.3 + (package + (inherit python-mdit-py-plugins) + (version "0.3.1") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/executablebooks/mdit-py-plugins") + (commit (string-append "v" version)))) + (file-name (git-file-name "python-mdit-py-plugins" version)) + (sha256 + (base32 + "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + (propagated-inputs + (modify-inputs (package-propagated-inputs python-mdit-py-plugins) + (replace "python-markdown-it-py" python-markdown-it-py-2.1))))) + (define-public python-mdurl (package (name "python-mdurl") diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 89196086f2..40a65e45b5 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -794,7 +794,7 @@ (define-public python-myst-parser python-linkify-it-py python-markdown-it-py-2.1 python-linkify-it-py - python-mdit-py-plugins + python-mdit-py-plugins-0.3 python-pyyaml python-sphinx python-typing-extensions)) -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v3 6/6] gnu: python-textual: Update to 0.41.0. 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (3 preceding siblings ...) 2023-12-03 15:22 ` [bug#66886] [PATCH v3 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 ` Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2023-12-03 15:22 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-textual): Update to 0.41.0; [source]: switch to git-origin; [build-system]: switch to pyproject-build-system; [arguments]<test-flags>: disable failing tests; <phases>: use check phase from pyproject-build-system and adapt build machinery to our old version of poetry; [propagated-inputs]: adapt to pyproject.toml; [native-inputs] add poetry and python-pytest-asyncio. Change-Id: I1060b25cb2ec439f26a4348305bc05fd0b09cf07 --- gnu/packages/python-xyz.scm | 58 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9ff130319a..f15107a6f2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18296,20 +18296,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.41.0") (source (origin - (method url-fetch) - (uri (pypi-uri "textual" version)) - (sha256 - (base32 - "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) - (build-system python-build-system) - (arguments - (let ((tests - ;; The release on pypi comes without tests. We can't build - ;; from this checkout, though, because installation requires - ;; an invocation of poetry. - (origin (method git-fetch) (uri (git-reference (url "https://github.com/Textualize/textual") @@ -18317,19 +18305,41 @@ (define-public python-textual (file-name (git-file-name name version)) (sha256 (base32 - "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))) - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (copy-recursively #$(file-append tests "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv")))))))) + "0fmximmnxb7h7swdrs0amlya09h0yyr1h1k09za7isihb40njwib")))) + (build-system pyproject-build-system) + (arguments + (list + ;; 3 failed, 1932 passed, 1 skipped, 4 xfailed, 10 warnings in 115.19s (0:01:55) + #:test-flags + #~'("-k" + ;; this test fails because of an AssertionError: + ;; assert app.devtools is not None + #$(string-append "not test_textual_env_var" + ;; these tests require python-tresitter-languages + " and not test_register_language" + " and not test_register_language_existing_language")) + #:phases #~(modify-phases %standard-phases + ;; TODO: This is because of our old version of poetry. + ;; It can be removed once it's been updated to a current one. + (add-after 'unpack 'adapt-pyproject.toml + (lambda _ + (substitute* "pyproject.toml" + (("group\\.dev\\.") "dev-")))) + ;; snapshot tests require syrupy + (add-after 'adapt-pyproject.toml 'remove-snapshot-tests + (lambda _ + (delete-file "tests/snapshot_tests/test_snapshots.py")))))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-importlib-metadata + python-linkify-it-py + python-markdown-it-py + python-mdit-py-plugins + python-rich + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list poetry + python-pytest + python-pytest-asyncio)) (home-page "https://github.com/Textualize/textual") (synopsis "Build text user interfaces in Python") (description "Textual is a @acronym{TUI, Text User Interface} framework -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16. 2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via ` (2 preceding siblings ...) 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via ` (4 more replies) 3 siblings, 5 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi This patch has also been sent to the python-team branch with bug #66884. * gnu/packages/python-xyz.scm (python-pygments-2.16): New variable. Change-Id: I863fc1aaea9930991b6f92643befbde7ba1a335c --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 37d7dd0dd5..5f159c39d1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6202,6 +6202,27 @@ (define-public python-pygments "Pygments is a syntax highlighting package written in Python.") (license license:bsd-2))) +(define-public python-pygments-2.16 + (package + (inherit python-pygments) + (version "2.16.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Pygments" version)) + (sha256 + (base32 + "0abfx7n0mgpxk05f2kini3p78wsp1yi7lh0yjk49pii0914z1bqx")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Some tests require sphinx, which depends on this, so we only run + ;; basic tests. + '(list "--ignore-glob=tests/*/*"))) + (native-inputs + (list python-pytest)))) + (define-public python-pygments-github-lexers (package (name "python-pygments-github-lexers") base-commit: bcc9cd1aaeb53c323b199623de4fafe8594d1a95 -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0. 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via ` (3 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0; (python-markdown-it-py-2.1): new variable. * gnu/packages/sphinx.scm (python-myst-parser)[propagated-inputs]: Use python-markdown-it-py-2.1. Change-Id: I009ad2fd7cd314e2073621f2cbe00ff97cb7e63c --- gnu/packages/python-xyz.scm | 15 +++++++++++++-- gnu/packages/sphinx.scm | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5f159c39d1..a0ad12a29f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5502,13 +5502,13 @@ (define-public python-makefun (define-public python-markdown-it-py (package (name "python-markdown-it-py") - (version "2.1.0") + (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "markdown-it-py" version)) (sha256 (base32 - "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))) + "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3")))) (build-system pyproject-build-system) (arguments (list #:tests? #f)) ;pypi source does not contains tests (native-inputs (list python-flit)) @@ -5524,6 +5524,17 @@ (define-public python-markdown-it-py possible.") (license license:expat))) +(define-public python-markdown-it-py-2.1 + (package + (inherit python-markdown-it-py) + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "markdown-it-py" version)) + (sha256 + (base32 + "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng")))))) + (define-public python-markupsafe (package (name "python-markupsafe") diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 7e5a929241..89196086f2 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -792,7 +792,7 @@ (define-public python-myst-parser (list python-docutils python-jinja2 python-linkify-it-py - python-markdown-it-py + python-markdown-it-py-2.1 python-linkify-it-py python-mdit-py-plugins python-pyyaml -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 3/6] gnu: python-rich: Update to 13.7.0. 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via ` (2 subsequent siblings) 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/bioinformatics.scm (multiqc)[propagated-inputs]: Use python-rich-12.4. * gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0; [source]: switch to git-origin to have tests; [build-system]: switch to pyproject-build-system; [arguments]: remove it since this boilerplate is now handled by the pyproject-build-system; [propagated-inputs]: remove python-colorama as it's not listed on pyproject.toml; replace python-commonmark with python-markdown-it-py; use python-pygments-2.16; move python-attrs from here...; [native-inputs]: ...to here; drop "tests" input; add python-pytest-cov; [home-page]: https://github.com/willmcgugan/rich now redirects to https://github.com/Textualize/rich ; (python-rich-12.4): new variable; (pelican)[propagated-inputs]: use python-pygments-2.16. * gnu/packages/python-web.scm (httpie)[propagated-inputs]: Use python-pygments-2.16. Change-Id: I16ea6f27d24f84d86db659c224705c81fac3b42e --- gnu/packages/bioinformatics.scm | 2 +- gnu/packages/python-web.scm | 2 +- gnu/packages/python-xyz.scm | 64 ++++++++++++++++----------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index f75254ed9f..60d0dc6f8f 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -12512,7 +12512,7 @@ (define-public multiqc python-numpy python-pyyaml python-requests - python-rich + python-rich-12.4 python-rich-click python-simplejson python-spectra)) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 567b01f396..74ec405a94 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1208,7 +1208,7 @@ (define-public httpie '(#:tests? #f)) (propagated-inputs (list python-colorama - python-pygments + python-pygments-2.16 python-requests python-requests-toolbelt python-pysocks diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a0ad12a29f..cef458e0fc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7205,7 +7205,7 @@ (define-public pelican python-feedgenerator python-jinja2 python-markdown - python-pygments + python-pygments-2.16 python-pytz python-rich python-unidecode)) @@ -18585,49 +18585,47 @@ (define-public python-slugid (define-public python-rich (package (name "python-rich") - (version "12.4.1") + (version "13.7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "rich" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs tests? #:allow-other-keys) - (when tests? - (copy-recursively (string-append - (assoc-ref inputs "tests") "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv"))))))) + "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-attrs python-colorama python-commonmark python-pygments - python-typing-extensions)) + (list python-markdown-it-py python-pygments-2.16 python-typing-extensions)) (native-inputs - `(("python-pytest" ,python-pytest) - ("tests" - ;; The release on pypi comes without tests. We can't build from this - ;; checkout, though, because installation requires an invocation of - ;; poetry. - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/willmcgugan/rich") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))))) - (home-page "https://github.com/willmcgugan/rich") + (list poetry python-attr python-pytest python-pytest-cov)) + (home-page "https://github.com/Textualize/rich") (synopsis "Render rich text and more to the terminal") (description "This is a Python package for rendering rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal.") (license license:expat))) +(define-public python-rich-12.4 + (package + (inherit python-rich) + (version "12.4.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Textualize/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name "python-rich" version)) + (sha256 + (base32 + "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))) + (propagated-inputs + (list python-colorama + python-commonmark + python-pygments + python-typing-extensions)))) + (define-public python-rich-click (package (name "python-rich-click") -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2. 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 6/6] gnu: python-textual: Update to 0.47.1 Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-jupytext): Update to 1.15.2; [build-system]: switch to pyproject-build-system; [arguments]<phases>: add setup-test-environment phase, use check phase from build system and move test flags from here... <test-flags>: ... to here. Change-Id: Iaec4090823715230e26865d4639871fb7c565802 --- gnu/packages/python-xyz.scm | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cef458e0fc..b4b95637c7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -336,7 +336,7 @@ (define-public python-janus (define-public python-jupytext (package (name "python-jupytext") - (version "1.14.4") + (version "1.15.2") (source (origin (method git-fetch) @@ -345,27 +345,23 @@ (define-public python-jupytext (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "19d443vx597zzxna09qpync9iic3mris80bwm3kd8xaxaq0zq9w4")))) - (build-system python-build-system) + (base32 "0zi2b2g9b2dkzl69li5rwc17pdcxj8cxzlysd8s6jqbcc37jiwqs")))) + (build-system pyproject-build-system) (arguments (list + #:test-flags + #~'("-k" #$(string-join (list "not test_create_header_with_set_formats" + "test_pre_commit_hook" + "test_sync_with_pre_commit_hook") + " and not ")) #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) + (add-before 'check 'setup-test-environment + (lambda _ ;; some tests fail when HOME=/homeless-shelter. (setenv "HOME" "/tmp") ;; OSError: [Errno 18] Invalid cross-device link - (setenv "TMPDIR" "/tmp") - (when tests? - (let ((disabled-tests - (list "test_create_header_with_set_formats" - "test_pre_commit_hook" - "test_sync_with_pre_commit_hook"))) - (invoke "pytest" "-vv" "-k" - (string-append "not " - (string-join disabled-tests - " and not ")))))))))) + (setenv "TMPDIR" "/tmp")))))) (native-inputs (list git-minimal pre-commit -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0. 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (2 preceding siblings ...) 2024-01-14 23:59 ` [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 6/6] gnu: python-textual: Update to 0.47.1 Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0; (python-mdit-py-plugins-0.3): new variable. * gnu/packages/python-xyz.scm (python-myst-parser)[propagated-inputs]: Use python-mdit-py-plugins-0.3. Change-Id: I06ddbee6055b570ee2d40f3e4f0a478a4413b4fe --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++-- gnu/packages/sphinx.scm | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b4b95637c7..e2013a3995 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -906,7 +906,7 @@ (define-public python-lunr (define-public python-mdit-py-plugins (package (name "python-mdit-py-plugins") - (version "0.3.1") + (version "0.4.0") (source (origin (method git-fetch) ;for tests (uri (git-reference @@ -915,7 +915,7 @@ (define-public python-mdit-py-plugins (file-name (git-file-name name version)) (sha256 (base32 - "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0")))) (build-system pyproject-build-system) (propagated-inputs (list python-markdown-it-py @@ -943,6 +943,23 @@ (define-public python-mdit-py-plugins @end enumerate") (license license:expat))) +(define-public python-mdit-py-plugins-0.3 + (package + (inherit python-mdit-py-plugins) + (version "0.3.1") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/executablebooks/mdit-py-plugins") + (commit (string-append "v" version)))) + (file-name (git-file-name "python-mdit-py-plugins" version)) + (sha256 + (base32 + "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz")))) + (propagated-inputs + (modify-inputs (package-propagated-inputs python-mdit-py-plugins) + (replace "python-markdown-it-py" python-markdown-it-py-2.1))))) + (define-public python-mdurl (package (name "python-mdurl") diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 89196086f2..40a65e45b5 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -794,7 +794,7 @@ (define-public python-myst-parser python-linkify-it-py python-markdown-it-py-2.1 python-linkify-it-py - python-mdit-py-plugins + python-mdit-py-plugins-0.3 python-pyyaml python-sphinx python-typing-extensions)) -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* [bug#66886] [PATCH v4 6/6] gnu: python-textual: Update to 0.47.1. 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via ` (3 preceding siblings ...) 2024-01-14 23:59 ` [bug#66886] [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 ` Giacomo Leidi via Guix-patches via 4 siblings, 0 replies; 31+ messages in thread From: Giacomo Leidi via Guix-patches via @ 2024-01-14 23:59 UTC (permalink / raw) To: 66886; +Cc: Giacomo Leidi * gnu/packages/python-xyz.scm (python-textual): Update to 0.47.1; [source]: switch to git-origin; [build-system]: switch to pyproject-build-system; [arguments]<test-flags>: disable failing tests; <phases>: use check phase from pyproject-build-system and adapt build machinery to our old version of poetry; [propagated-inputs]: adapt to pyproject.toml; [native-inputs] add poetry and python-pytest-asyncio. Change-Id: I1060b25cb2ec439f26a4348305bc05fd0b09cf07 --- gnu/packages/python-xyz.scm | 58 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e2013a3995..997b40172e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18665,20 +18665,8 @@ (define-public python-rich-click (define-public python-textual (package (name "python-textual") - (version "0.1.18") + (version "0.47.1") (source (origin - (method url-fetch) - (uri (pypi-uri "textual" version)) - (sha256 - (base32 - "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) - (build-system python-build-system) - (arguments - (let ((tests - ;; The release on pypi comes without tests. We can't build - ;; from this checkout, though, because installation requires - ;; an invocation of poetry. - (origin (method git-fetch) (uri (git-reference (url "https://github.com/Textualize/textual") @@ -18686,19 +18674,41 @@ (define-public python-textual (file-name (git-file-name name version)) (sha256 (base32 - "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))) - (list #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (copy-recursively #$(file-append tests "/tests") - "tests") - (invoke "python" "-m" "pytest" "-vv")))))))) + "1984v02n2wa7rqgq0f0mkma8fd0nnnbgfwcwgmpsd8xl1wlrjmj4")))) + (build-system pyproject-build-system) + (arguments + (list + ;; 3 failed, 1932 passed, 1 skipped, 4 xfailed, 10 warnings in 115.19s (0:01:55) + #:test-flags + #~'("-k" + ;; this test fails because of an AssertionError: + ;; assert app.devtools is not None + #$(string-append "not test_textual_env_var" + ;; these tests require python-tresitter-languages + " and not test_register_language" + " and not test_register_language_existing_language")) + #:phases #~(modify-phases %standard-phases + ;; TODO: This is because of our old version of poetry. + ;; It can be removed once it's been updated to a current one. + (add-after 'unpack 'adapt-pyproject.toml + (lambda _ + (substitute* "pyproject.toml" + (("group\\.dev\\.") "dev-")))) + ;; snapshot tests require syrupy + (add-after 'adapt-pyproject.toml 'remove-snapshot-tests + (lambda _ + (delete-file "tests/snapshot_tests/test_snapshots.py")))))) (propagated-inputs - (list python-rich python-typing-extensions)) + (list python-importlib-metadata + python-linkify-it-py + python-markdown-it-py + python-mdit-py-plugins + python-rich + python-typing-extensions)) (native-inputs - (list python-pytest)) + (list poetry + python-pytest + python-pytest-asyncio)) (home-page "https://github.com/Textualize/textual") (synopsis "Build text user interfaces in Python") (description "Textual is a @acronym{TUI, Text User Interface} framework -- 2.41.0 ^ permalink raw reply related [flat|nested] 31+ messages in thread
end of thread, other threads:[~2024-02-27 18:56 UTC | newest] Thread overview: 31+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-11-01 16:58 [bug#66886] Update python-textual to 0.41 paul via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 3/5] gnu: python-rich: Update to 13.6.0 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2023-11-01 17:01 ` [bug#66886] [PATCH 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 2023-11-02 0:14 ` jgart via Guix-patches via 2023-11-16 23:55 ` paul via Guix-patches via 2023-11-18 2:44 ` jgart via Guix-patches via 2023-12-03 15:21 ` paul via Guix-patches via 2023-12-29 22:07 ` paul via Guix-patches via 2024-01-14 23:54 ` paul via Guix-patches via 2024-02-27 18:42 ` paul via Guix-patches via 2024-02-27 18:42 ` bug#66886: " paul via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 1/5] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 2/5] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 3/5] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 4/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2023-11-16 23:54 ` [bug#66886] [PATCH v2 5/5] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2023-12-03 15:22 ` [bug#66886] [PATCH v3 6/6] gnu: python-textual: Update to 0.41.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 1/6] gnu: Add python-pygments-2.16 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 2/6] gnu: python-markdown-it-py: Update to 3.0.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 3/6] gnu: python-rich: Update to 13.7.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0 Giacomo Leidi via Guix-patches via 2024-01-14 23:59 ` [bug#66886] [PATCH v4 6/6] gnu: python-textual: Update to 0.47.1 Giacomo Leidi via Guix-patches via
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/guix.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).