Re: How to run unit tests?

2020-12-12 Thread Peter Wienemann

Hi Andrey,

thanks for sharing your thoughts.

On 08.12.20 21:43, Andrey Rahmatullin wrote:

You didn't explain what actual problems do you have, but
https://github.com/lark-parser/lark/issues/792 suggests that some way you
used was skipping some of the tests?


I am not familiar enough with Python unit testing for a solid judgement 
but I find it disturbing that the outcome of the test suite depends on 
the way you run it. I wonder whether this is


a) due to a problem in the test suite,
b) due to a problem somewhere in the tested code,
c) by construction because the three different ways to run the test 
suite are not equivalent?



Upstream uses option 3 in its CI testing [2] and did not see any issues with
lark release 0.11.1. dh_auto_test seems to use option 2 by default (for the
pybuild build system). For autopkgtest I have chosen to use option 1. The
latter two options both fail for version 0.11.1.

Which is good?


After applying a patch provided by upstream [3], also option 2 works but option 
1 still fails.

Which is good or bad? I'm not sure.


I am asking myself the same questions. That is why I am asking for 
advice here. :-)



Upstream suggested to change the way the (autopkgtest) tests are run [4].

So are you asking only about autopkgtests, not build-time tests?


Rereading it I think one should not constrain the question to 
autopkgtests but also consider build-time tests.



Is there something like a general recommendation on what is the best way
to run Python unit tests?

No (except "whatever the upstream CI runs").


This would vote for option 3:

pythonX -m tests

Best regards

Peter



Re: New Python project

2020-12-12 Thread Andrey Rahmatullin
On Sat, Dec 12, 2020 at 01:56:46PM +0100, Nyírő Balázs wrote:
> Can you help me to give the steps
> that how can a new project be placed in Debian repos?
https://mentors.debian.net/intro-maintainers/ has the outline. But please
note the "Please do not treat Debian as a platform to advertise your own
software, unless there is some real request for it." part.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


New Python project

2020-12-12 Thread Nyírő Balázs
Hi,
I have a small Python program to find sample sentences in free ebooks.

https://github.com/BalazsNyiro/sentence-seeker

I'd like to create a Debian package and manage/support it, as an education
project.

I read this articles:
 - https://mentors.debian.net/sponsors/
 - https://wiki.debian.org/Packaging/Intro
 - https://www.debian.org/doc/packaging-manuals/python-policy/

Can you help me to give the steps
that how can a new project be placed in Debian repos?

Does it the proper list or another list would be better?

What I have to do, how it works?

Thank you, Balazs Nyiro


Re: Bug#936604: FYI: Python 3 migration of distributuion

2020-12-12 Thread Moritz Muehlenhoff
On Sat, Dec 12, 2020 at 03:21:06PM +0900, Osamu Aoki wrote:
> Hi,
> 
> It's a fork with a new upstream with some issues.  (Not supported by
> the old upstream)
> 
> Anyway, I switched out from getmail to other MUA.
> 
> No one seems to take over this package maintenance.
> 
> So please remove this package.

Ack, will file an RM bug.

> I am not going to package the new getmail6.

getmail6 _is_ packaged already :-)

https://packages.qa.debian.org/g/getmail6.html

Cheers,
Moritz