all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Howto disable unit test runs, when building custom Python packages
@ 2023-07-01 22:45 Timothy Washington
  2023-07-02  9:21 ` Csepp
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy Washington @ 2023-07-01 22:45 UTC (permalink / raw)
  To: help-guix

I'm trying to figure out "Howto disable unit test runs, when building
custom Python packages".
I am trying to create a custom guix package of maurosoria/dirsearch
<https://github.com/maurosoria/dirsearch>.
Using this config
<https://github.com/twashing/dotfiles/blob/main/guix/packages/dirsearch.scm>,
"guix build" seems to work, except that it runs the project's unit tests.
But iIt fails when running the project's unit tests, with these logs
<https://snippet.host/fzavuc>.

Details are in this SO post
<https://stackoverflow.com/questions/76595986/howto-disable-unit-test-runs-when-building-custom-python-packages>
.
But basically, when building a custom (Github hosted) Python package, how
can we disable unit test runs?

Thanks
Tim

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

* Re: Howto disable unit test runs, when building custom Python packages
  2023-07-01 22:45 Howto disable unit test runs, when building custom Python packages Timothy Washington
@ 2023-07-02  9:21 ` Csepp
  2023-08-19 12:56   ` Simon Tournier
  0 siblings, 1 reply; 3+ messages in thread
From: Csepp @ 2023-07-02  9:21 UTC (permalink / raw)
  To: Timothy Washington; +Cc: help-guix


Timothy Washington <twashing@gmail.com> writes:

> I'm trying to figure out "Howto disable unit test runs, when building
> custom Python packages".
> I am trying to create a custom guix package of maurosoria/dirsearch
> <https://github.com/maurosoria/dirsearch>.
> Using this config
> <https://github.com/twashing/dotfiles/blob/main/guix/packages/dirsearch.scm>,
> "guix build" seems to work, except that it runs the project's unit tests.
> But iIt fails when running the project's unit tests, with these logs
> <https://snippet.host/fzavuc>.
>
> Details are in this SO post
> <https://stackoverflow.com/questions/76595986/howto-disable-unit-test-runs-when-building-custom-python-packages>
> .
> But basically, when building a custom (Github hosted) Python package, how
> can we disable unit test runs?
>
> Thanks
> Tim

Usually it should be as simple as:
(arguments '(#:tests? #f))
If it runs the tests as part of the build step, then you'll need to
either create a patch for it, use a custom source, or use substitute* to
patch it programmatically.


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

* Re: Howto disable unit test runs, when building custom Python packages
  2023-07-02  9:21 ` Csepp
@ 2023-08-19 12:56   ` Simon Tournier
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Tournier @ 2023-08-19 12:56 UTC (permalink / raw)
  To: Csepp, Timothy Washington; +Cc: help-guix

Hi,

On Sun, 02 Jul 2023 at 11:21, Csepp <raingloom@riseup.net> wrote:

> Usually it should be as simple as:
> (arguments '(#:tests? #f))

In addition,  you can use the options --without-tests directly from the
command-line.


Cheers,
simon


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

end of thread, other threads:[~2023-08-19 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-01 22:45 Howto disable unit test runs, when building custom Python packages Timothy Washington
2023-07-02  9:21 ` Csepp
2023-08-19 12:56   ` Simon Tournier

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.