all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
@ 2024-03-02 20:46 Troy Figiel
  2024-03-09  6:44 ` Vagrant Cascadian
  2024-06-24 20:03 ` jgart via Guix-patches via
  0 siblings, 2 replies; 7+ messages in thread
From: Troy Figiel @ 2024-03-02 20:46 UTC (permalink / raw)
  To: 69514

* gnu/packages/python-science.scm (python-pandera): Update to 0.18.0.
[source]: Remove snippet.
[arguments]<#:phases>: Add 'fix-tests phase.
---
 gnu/packages/python-science.scm | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index b6a116f16b..93b5c5c91d 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -826,7 +826,7 @@ (define-public python-pandarallel
 (define-public python-pandera
   (package
     (name "python-pandera")
-    (version "0.17.2")
+    (version "0.18.0")
     (source
      (origin
        ;; No tests in the PyPI tarball.
@@ -836,14 +836,7 @@ (define-public python-pandera
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1mnqk583z90k1n0z3lfa4rd0ng40v7hqfk7phz5gjmxlzfjbxa1x"))
-       (modules '((guix build utils)))
-       ;; These tests require PySpark and Modin. We need to remove the entire
-       ;; directory, since the conftest.py in these directories contain
-       ;; imports.  (See: https://github.com/pytest-dev/pytest/issues/7452)
-       (snippet '(begin
-                   (delete-file-recursively "tests/pyspark")
-                   (delete-file-recursively "tests/modin")))))
+        (base32 "14b5aij5zjkwvsimg0v00qvp59mhhq7ljim4qghcn432vkg9gh47"))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -854,7 +847,16 @@ (define-public python-pandera
                            ;; positives. These tests currently fail.
                            "not test_python_std_list_dict_generics"
                            " and not test_python_std_list_dict_empty_and_none"
-                           " and not test_pandas_modules_importable"))))
+                           " and not test_pandas_modules_importable"))
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'check 'fix-tests
+                     (lambda _
+                       ;; These tests require PySpark and Modin. We need to
+                       ;; remove the entire directory, since the conftest.py
+                       ;; in these directories contain imports.  (See:
+                       ;; https://github.com/pytest-dev/pytest/issues/7452)
+                       (for-each delete-file-recursively
+                                 '("tests/pyspark" "tests/modin")))))))
     ;; Pandera comes with a lot of extras. We test as many as possible, but do
     ;; not include all of them in the propagated-inputs. Currently, we have to
     ;; skip the pyspark and io tests due to missing packages python-pyspark

base-commit: 6f5ea7ac1acb3d1c53baf7620cca66cc87fe5a73
-- 
2.42.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-03-02 20:46 [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0 Troy Figiel
@ 2024-03-09  6:44 ` Vagrant Cascadian
  2024-03-09  8:50   ` Troy Figiel
  2024-06-24 20:03 ` jgart via Guix-patches via
  1 sibling, 1 reply; 7+ messages in thread
From: Vagrant Cascadian @ 2024-03-09  6:44 UTC (permalink / raw)
  To: Troy Figiel, 69514

[-- Attachment #1: Type: text/plain, Size: 2711 bytes --]

On 2024-03-02, Troy Figiel wrote:
> diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
> index b6a116f16b..93b5c5c91d 100644
> --- a/gnu/packages/python-science.scm
> +++ b/gnu/packages/python-science.scm
...
> @@ -836,14 +836,7 @@ (define-public python-pandera
>               (commit (string-append "v" version))))
>         (file-name (git-file-name name version))
>         (sha256
> -        (base32 "1mnqk583z90k1n0z3lfa4rd0ng40v7hqfk7phz5gjmxlzfjbxa1x"))
> -       (modules '((guix build utils)))
> -       ;; These tests require PySpark and Modin. We need to remove the entire
> -       ;; directory, since the conftest.py in these directories contain
> -       ;; imports.  (See: https://github.com/pytest-dev/pytest/issues/7452)
> -       (snippet '(begin
> -                   (delete-file-recursively "tests/pyspark")
> -                   (delete-file-recursively "tests/modin")))))
> +        (base32 "14b5aij5zjkwvsimg0v00qvp59mhhq7ljim4qghcn432vkg9gh47"))))
>      (build-system pyproject-build-system)
>      (arguments
>       (list
> @@ -854,7 +847,16 @@ (define-public python-pandera
>                             ;; positives. These tests currently fail.
>                             "not test_python_std_list_dict_generics"
>                             " and not test_python_std_list_dict_empty_and_none"
> -                           " and not test_pandas_modules_importable"))))
> +                           " and not test_pandas_modules_importable"))
> +      #:phases #~(modify-phases %standard-phases
> +                   (add-before 'check 'fix-tests
> +                     (lambda _
> +                       ;; These tests require PySpark and Modin. We need to
> +                       ;; remove the entire directory, since the conftest.py
> +                       ;; in these directories contain imports.  (See:
> +                       ;; https://github.com/pytest-dev/pytest/issues/7452)
> +                       (for-each delete-file-recursively
> +                                 '("tests/pyspark" "tests/modin")))))))
>      ;; Pandera comes with a lot of extras. We test as many as possible, but do
>      ;; not include all of them in the propagated-inputs. Currently, we have to
>      ;; skip the pyspark and io tests due to missing packages python-pyspark

Any compelling reason why the test removal should be moved from a
snippet to a phase? The documentation admits to this being an elusive
distinction, not really clearing things up much:

  https://guix.gnu.org/en/manual/devel/en/guix.html#Snippets-versus-Phases

Other than that, this looks like a trivial version bump. :)

Builds fine, no dependents...

live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-03-09  6:44 ` Vagrant Cascadian
@ 2024-03-09  8:50   ` Troy Figiel
  0 siblings, 0 replies; 7+ messages in thread
From: Troy Figiel @ 2024-03-09  8:50 UTC (permalink / raw)
  To: Vagrant Cascadian, 69514

Hi vagrant,

On 2024-03-09 07:44, Vagrant Cascadian wrote:
> Any compelling reason why the test removal should be moved from a
> snippet to a phase? The documentation admits to this being an elusive
> distinction, not really clearing things up much:
> 

I read the following as stating we should keep any source code that
could be used to build the package on different systems, including tests
that could be run on other systems:

--8<---------------cut here---------------start------------->8---
The source derived from an origin should produce a source that can be
used to build the package on any system that the upstream package
supports (i.e., act as the corresponding source).
--8<---------------cut here---------------end--------------->8---

Other than that, no reason and either would be fine in my opinion. The
current documentation is more confusing rather than enlightening in this
case.

Best wishes,

Troy




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-03-02 20:46 [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0 Troy Figiel
  2024-03-09  6:44 ` Vagrant Cascadian
@ 2024-06-24 20:03 ` jgart via Guix-patches via
  2024-06-24 21:58   ` Troy Figiel
  1 sibling, 1 reply; 7+ messages in thread
From: jgart via Guix-patches via @ 2024-06-24 20:03 UTC (permalink / raw)
  To: Troy Figiel, 69514

Hi Troy,

Thanks for your work on this.

Can you send an updated patch and I'll take another look?

This patch no longer applies cleanly.

all best,

jgart

https://whereis.みんな/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-06-24 20:03 ` jgart via Guix-patches via
@ 2024-06-24 21:58   ` Troy Figiel
  2024-06-24 22:09     ` Troy Figiel
  0 siblings, 1 reply; 7+ messages in thread
From: Troy Figiel @ 2024-06-24 21:58 UTC (permalink / raw)
  To: jgart, 69514

Hi jgart,

Sorry, life got in the way.  I will pull in the latest Guix master,
rebase and see if python-pandera still builds.

Best wishes,

Troy




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-06-24 21:58   ` Troy Figiel
@ 2024-06-24 22:09     ` Troy Figiel
  2024-06-24 23:11       ` bug#69514: " jgart via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Troy Figiel @ 2024-06-24 22:09 UTC (permalink / raw)
  To: jgart, 69514

Well, these are the nicest issues to solve :-)  It seems python-pandera
was already bumped to 0.18.0 by commit
da9eed295c8737b8563a3472d7a82b34270d181b.  We can close this issue.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#69514: [PATCH] gnu: python-pandera: Update to 0.18.0.
  2024-06-24 22:09     ` Troy Figiel
@ 2024-06-24 23:11       ` jgart via Guix-patches via
  0 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2024-06-24 23:11 UTC (permalink / raw)
  To: Troy Figiel, 69514-done

Thanks for the notice. Ok, closing this issue.

all best,

jgart




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-24 23:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-02 20:46 [bug#69514] [PATCH] gnu: python-pandera: Update to 0.18.0 Troy Figiel
2024-03-09  6:44 ` Vagrant Cascadian
2024-03-09  8:50   ` Troy Figiel
2024-06-24 20:03 ` jgart via Guix-patches via
2024-06-24 21:58   ` Troy Figiel
2024-06-24 22:09     ` Troy Figiel
2024-06-24 23:11       ` bug#69514: " jgart via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.