* [bug#42390] [PATCH] gnu: Add python-mamba.
@ 2020-07-16 12:25 Tanguy Le Carrour
2020-07-21 16:41 ` bug#42390: " Ludovic Courtès
2020-07-31 6:42 ` Tanguy Le Carrour
0 siblings, 2 replies; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-16 12:25 UTC (permalink / raw)
To: 42390; +Cc: Tanguy Le Carrour
* gnu/packages/python-xyz.scm (python-mamba): New variable.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 15d9e097c5..b5485caa3a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14394,6 +14394,28 @@ in other versions.")
(define-public python2-configparser
(package-with-python2 python-configparser))
+(define-public python-mamba
+ (package
+ (name "python-mamba")
+ (version "0.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "mamba" version))
+ (sha256
+ (base32
+ "0bpbgz9v63rpanjjpc8bnvrr8fkms5rzylh77xrcki1x6az7gnsz"))))
+ (build-system python-build-system)
+ (arguments `(#:tests? #f)) ; No test
+ (propagated-inputs
+ `(("python-clint" ,python-clint)
+ ("python-coverage" ,python-coverage)))
+ (home-page "https://nestorsalceda.com/mamba/")
+ (synopsis "Test runner for Python")
+ (description
+ "Mamba is a Behaviour-Driven Development tool for Python developers.
+Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
+ (license license:expat)))
+
(define-public python-mando
(package
(name "python-mando")
--
2.27.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* bug#42390: [PATCH] gnu: Add python-mamba.
2020-07-16 12:25 [bug#42390] [PATCH] gnu: Add python-mamba Tanguy Le Carrour
@ 2020-07-21 16:41 ` Ludovic Courtès
2020-07-22 7:36 ` [bug#42390] " Tanguy Le Carrour
2020-07-31 6:42 ` Tanguy Le Carrour
1 sibling, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2020-07-21 16:41 UTC (permalink / raw)
To: Tanguy Le Carrour; +Cc: 42390-done
Hi,
Tanguy Le Carrour <tanguy@bioneland.org> skribis:
> * gnu/packages/python-xyz.scm (python-mamba): New variable.
Applied, thanks!
There’s a lint warning though I don’t know if it’s applicable:
--8<---------------cut here---------------start------------->8---
gnu/packages/python-xyz.scm:14542:2: python-mamba@0.11.0: 'python-coverage' should probably be a native input
--8<---------------cut here---------------end--------------->8---
If ‘python-coverage’ is only used at build time, then it should
definitely be a native input.
WDYT?
Ludo’.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-21 16:41 ` bug#42390: " Ludovic Courtès
@ 2020-07-22 7:36 ` Tanguy Le Carrour
2020-07-22 10:38 ` Ludovic Courtès
0 siblings, 1 reply; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-22 7:36 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 42390-done
Hi,
Le 07/21, Ludovic Courtès a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> skribis:
> > * gnu/packages/python-xyz.scm (python-mamba): New variable.
> […]
>
> There’s a lint warning though I don’t know if it’s applicable:
>
> --8<---------------cut here---------------start------------->8---
> gnu/packages/python-xyz.scm:14542:2: python-mamba@0.11.0: 'python-coverage' should probably be a native input
> --8<---------------cut here---------------end--------------->8---
>
> If ‘python-coverage’ is only used at build time, then it should
> definitely be a native input.
>
> WDYT?
I saw the warning (should I have mentioned it in the bug report?),
but `python-coverage` is definitively a run time dependency.
If I remove it, I get:
```
pkg_resources.DistributionNotFound: The 'coverage' distribution was not found and is required by mamba
```
Is there a way to know why the linter is reporting it?!
FYI, I might update `python-mamba` in a near future to fetch the sources from git
and enable the check phase. But this requires that I add (at least) 2 more
packages. So this will have to wait for the week-end.
Regards
--
Tanguy
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-22 7:36 ` [bug#42390] " Tanguy Le Carrour
@ 2020-07-22 10:38 ` Ludovic Courtès
2020-07-23 19:19 ` Hartmut Goebel
0 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2020-07-22 10:38 UTC (permalink / raw)
To: Tanguy Le Carrour; +Cc: Hartmut Goebel, 42390-done
Howdy,
(+Cc: Hartmut.)
Tanguy Le Carrour <tanguy@bioneland.org> skribis:
> Le 07/21, Ludovic Courtès a écrit :
>> Tanguy Le Carrour <tanguy@bioneland.org> skribis:
>> > * gnu/packages/python-xyz.scm (python-mamba): New variable.
>> […]
>>
>> There’s a lint warning though I don’t know if it’s applicable:
>>
>> --8<---------------cut here---------------start------------->8---
>> gnu/packages/python-xyz.scm:14542:2: python-mamba@0.11.0: 'python-coverage' should probably be a native input
>> --8<---------------cut here---------------end--------------->8---
>>
>> If ‘python-coverage’ is only used at build time, then it should
>> definitely be a native input.
>>
>> WDYT?
>
> I saw the warning (should I have mentioned it in the bug report?),
> but `python-coverage` is definitively a run time dependency.
> If I remove it, I get:
>
> ```
> pkg_resources.DistributionNotFound: The 'coverage' distribution was not found and is required by mamba
> ```
Ah, I see.
> Is there a way to know why the linter is reporting it?!
I don’t know, it comes from commit
e442246a2f5f73b2484adb340b53d3a0018636b1 by Hartmut (Cc’d.)
Hartmut, it looks like there are cases like this where python-coverage
is used as a library and thus should not be in ‘native-inputs’. Should
we remove it from the list?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-22 10:38 ` Ludovic Courtès
@ 2020-07-23 19:19 ` Hartmut Goebel
2020-07-24 6:36 ` Tanguy Le Carrour
2020-07-24 13:14 ` Ludovic Courtès
0 siblings, 2 replies; 12+ messages in thread
From: Hartmut Goebel @ 2020-07-23 19:19 UTC (permalink / raw)
To: Ludovic Courtès, Tanguy Le Carrour; +Cc: 42390-done
Am 22.07.20 um 12:38 schrieb Ludovic Courtès:
> Hartmut, it looks like there are cases like this where python-coverage
> is used as a library and thus should not be in ‘native-inputs’. Should
> we remove it from the list?
This depends on whether you see "guix lint" as a helper or an enforcer -
and on how one classifies this package.
IMHO lint is a helper and coverage is used at build-time only most of
the time. This is why I added it to the list. YMMV, though.
In the case of python-mamba - which is a test-runner -,
"propagated-input" seems to be correct, so lint gives inaccurate advice
here.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-23 19:19 ` Hartmut Goebel
@ 2020-07-24 6:36 ` Tanguy Le Carrour
2020-07-24 13:14 ` Ludovic Courtès
1 sibling, 0 replies; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-24 6:36 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: Ludovic Courtès, 42390-done
Le 07/23, Hartmut Goebel a écrit :
> Am 22.07.20 um 12:38 schrieb Ludovic Courtès:
> > Hartmut, it looks like there are cases like this where python-coverage
> > is used as a library and thus should not be in ‘native-inputs’. Should
> > we remove it from the list?
>
> This depends on whether you see "guix lint" as a helper or an enforcer -
> and on how one classifies this package.
>
> IMHO lint is a helper and coverage is used at build-time only most of
> the time. This is why I added it to the list. YMMV, though.
>
> In the case of python-mamba - which is a test-runner -,
> "propagated-input" seems to be correct, so lint gives inaccurate advice
> here.
Thanks Hartmut! This makes sense.
The only problem is that it adds to the noise. :-(
Wouldn't it be possible to mark such exception in the package definition?
With flake8, I often find myself adding a `noqa` comment, for instance.
I do the same with mypy with `type: ignore`.
--
Tanguy
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-23 19:19 ` Hartmut Goebel
2020-07-24 6:36 ` Tanguy Le Carrour
@ 2020-07-24 13:14 ` Ludovic Courtès
2020-07-27 7:47 ` Hartmut Goebel
1 sibling, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2020-07-24 13:14 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: 42390-done, Tanguy Le Carrour
Hi,
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> Am 22.07.20 um 12:38 schrieb Ludovic Courtès:
>> Hartmut, it looks like there are cases like this where python-coverage
>> is used as a library and thus should not be in ‘native-inputs’. Should
>> we remove it from the list?
>
> This depends on whether you see "guix lint" as a helper or an enforcer -
> and on how one classifies this package.
The message is “python-coverage should probably be a native input”.
That suggests it’s unlikely (but not impossible) to be a false positive.
To me, we should keep python-coverage in the list only if we know it
should be a native input 90% of the time.
Tanguy, Hartmut, do you have an estimate here? :-)
Adding a package property to instruct ‘guix lint’ to ignore the issue
would also work, as Tanguy proposed.
Ludo’.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-24 13:14 ` Ludovic Courtès
@ 2020-07-27 7:47 ` Hartmut Goebel
2020-07-27 8:10 ` Tanguy Le Carrour
0 siblings, 1 reply; 12+ messages in thread
From: Hartmut Goebel @ 2020-07-27 7:47 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 42390-done, Tanguy Le Carrour
Am 24.07.20 um 15:14 schrieb Ludovic Courtès:
> To me, we should keep python-coverage in the list only if we know it
> should be a native input 90% of the time.
> 90%
Rational: Checking code-coverage is a typical part of testing, thus like
other testing-tools, coverage is required native. The only case, this
module is *not* a native input are test-suites/test-runner like
python-mamba.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-27 7:47 ` Hartmut Goebel
@ 2020-07-27 8:10 ` Tanguy Le Carrour
2020-07-28 21:56 ` Ludovic Courtès
0 siblings, 1 reply; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-27 8:10 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: Ludovic Courtès, 42390-done
Le 07/27, Hartmut Goebel a écrit :
> Am 24.07.20 um 15:14 schrieb Ludovic Courtès:
> > To me, we should keep python-coverage in the list only if we know it
> > should be a native input 90% of the time.
>
> > 90%
>
> Rational: Checking code-coverage is a typical part of testing, thus like
> other testing-tools, coverage is required native. The only case, this
> module is *not* a native input are test-suites/test-runner like
> python-mamba.
+1!
The question is now: is it possible to make the warning go away by
marking it as being an "exception" in the package definition?
Are comments "part of the code" and be used for that? Can we use a
different package name (`python-coverage-propagated`) that would not
be in the list?
--
Tanguy
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-27 8:10 ` Tanguy Le Carrour
@ 2020-07-28 21:56 ` Ludovic Courtès
2020-07-29 6:52 ` Tanguy Le Carrour
0 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2020-07-28 21:56 UTC (permalink / raw)
To: Tanguy Le Carrour; +Cc: Hartmut Goebel, 42390-done
Hi,
Tanguy Le Carrour <tanguy@bioneland.org> skribis:
> The question is now: is it possible to make the warning go away by
> marking it as being an "exception" in the package definition?
> Are comments "part of the code" and be used for that? Can we use a
> different package name (`python-coverage-propagated`) that would not
> be in the list?
We could use a property, similar to how the ‘lint-hidden-cve’ property
is handled by the ‘cve’ linter.
Ludo’.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-28 21:56 ` Ludovic Courtès
@ 2020-07-29 6:52 ` Tanguy Le Carrour
0 siblings, 0 replies; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-29 6:52 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Hartmut Goebel, 42390-done
Hi,
Le 07/28, Ludovic Courtès a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> skribis:
>
> > The question is now: is it possible to make the warning go away by
> > marking it as being an "exception" in the package definition?
> > Are comments "part of the code" and be used for that? Can we use a
> > different package name (`python-coverage-propagated`) that would not
> > be in the list?
>
> We could use a property, similar to how the ‘lint-hidden-cve’ property
> is handled by the ‘cve’ linter.
Sounds great! … unless you expected me to implement it! ^_^'
I guesse `check-inputs-should-be-native` should look a bit like
`check-vulnerabilities`, but I have no idea how to do that! Sorry!
--
Tanguy
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#42390] [PATCH] gnu: Add python-mamba.
2020-07-16 12:25 [bug#42390] [PATCH] gnu: Add python-mamba Tanguy Le Carrour
2020-07-21 16:41 ` bug#42390: " Ludovic Courtès
@ 2020-07-31 6:42 ` Tanguy Le Carrour
1 sibling, 0 replies; 12+ messages in thread
From: Tanguy Le Carrour @ 2020-07-31 6:42 UTC (permalink / raw)
To: 42390-done; +Cc: h.goebel, ludo
For the record, I also have a lint warning with `python-robber`
(WIP: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42364), because
it propagates `python-mock`.
--
Tanguy
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2020-07-31 6:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-16 12:25 [bug#42390] [PATCH] gnu: Add python-mamba Tanguy Le Carrour
2020-07-21 16:41 ` bug#42390: " Ludovic Courtès
2020-07-22 7:36 ` [bug#42390] " Tanguy Le Carrour
2020-07-22 10:38 ` Ludovic Courtès
2020-07-23 19:19 ` Hartmut Goebel
2020-07-24 6:36 ` Tanguy Le Carrour
2020-07-24 13:14 ` Ludovic Courtès
2020-07-27 7:47 ` Hartmut Goebel
2020-07-27 8:10 ` Tanguy Le Carrour
2020-07-28 21:56 ` Ludovic Courtès
2020-07-29 6:52 ` Tanguy Le Carrour
2020-07-31 6:42 ` Tanguy Le Carrour
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.