python-coverage 5.1

2020-05-18 Thread Pierre-Elliott Bécue
Dear Ben,

Coverage 5.1 is out and is needed, eg by zope.interface version 5 which
requires coverage 5.0.3 or higher for testing. Currently, not having
coverage blocks any update for mailman3 that would help me having it
back into testing.

Would you agree to either have it in unstable, or me doing a release?

Thanks a lot!

-- 
Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528  F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.


signature.asc
Description: PGP signature


Re: packaging DiscoDOS - a cli tool for vinyl DJs

2020-05-18 Thread Andrey Rahmatullin
On Mon, May 18, 2020 at 11:24:23AM +0200, jojo wrote:
> One question: Often I read the workflow is to first create a source
> package and then the binary package from it. Is that true for python
> tools as well? 
Yes.

> I mean there is no "source/binary" in this sense.
It doesn't matter whether there are sources and binaries. There is still a
source package and a binary package created from it.

> And this does not seem to be a source package but a regular
> package I would install as user using apt:
> https://salsa.debian.org/python-team/applications/rename-flac.git
No, you cannot install a git repo with apt.
Binary packages are .deb files.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: packaging DiscoDOS - a cli tool for vinyl DJs

2020-05-18 Thread jojo

Hi Thomas,

On 15.05.20 18:55, Thomas Goirand wrote:

On 5/15/20 5:43 PM, jojo wrote:

Hi,

I'd like to join the list because I think my software is a valuable
addition to the debian universe, my ultimate goal would be to bring it
into Ubuntu Studio because it is music-related.

I really think it's a shame that people join Debian just because of
Ubuntu... :(


Feels like we have room for a little smalltalk here :-) I wouldn't put 
it this way but rather mention how unbelievable it is that Debian is the 
basis for so many other distributions! Back in 98 when I first started 
with Linux Debian was my first love (codename Potato LOL). Only Distro 
that was seemed "logic" and easy customizable IMHO. And I still dig 
Debian based over others but have to admit that I only used Linux at 
work, the past 15 years and only nowish coming back to feeling the need 
of having a Linux box at home. I have been using a Macbook the last 
years - best of both worlds: nice gui and music tools (I use Ableton 
Live mostly) and also via homebrew can use UNIX tools and great Open 
Source tools (Blender, Inkscape, Gimp, Audacity rules!!!). At work we 
have a mixture of RHEL and Ubuntu and for Hardware often there is no 
discussion wether to use something else than RedHat because of support 
and blabla. All have there advantages but Debian will ever stay in my 
heart as the one and only that got me hooked! And most importantly: It 
will be like a dream coming true, when my tool really makes its way into 
DEBIAN! OH YEAH!


One private question: What do you use? I remember that back then when I 
found out that Debian stable is pretty oldish I was always using 
testing. My teamleader recently told me that he's actually using 
unstable these days and prefers it over testing. I think if one wants 
halfway modern software there is only two options: Use Ubuntu(ish) or 
use Debian unstable? Right?





I already filed a bug report against the wnpp pseudo package but I am
not quite sure what would be the next step and which packaging guides it
is best to follow to get started with packaging and finally uploading
it.

IMO, the best thing to start with is the packaging tutorial:
apt-get install packaging-tutorial

It's nicely written. Then you should read the Debian Policy Manual.
Finally, search and read the python policy (in the wiki?) if your app is
Python based.


Should my next step be following this tutorial on packaging?
https://packaging.ubuntu.com/html/packaging-new-software.html

This guide talks about bzr. It's not in use anywhere these days, even
Ubuntu people don't use it anymore. It's also Python 2 only, and
therefore, we removed it from Debian.

IMO, you should install sbuild to start with:
https://wiki.debian.org/sbuild

and then go from the above. Note that I don't think using dh_make is a
good idea. It's IMO nicer to just take another Python app as example.
Look at the team's Git for that.


Thanks so much for all this hints, I would have given up if I were alone 
here. It really is a jungle of documentation and you never know if it's 
the rigth one, if it's outdate or whatevernot easy I have just 
set up sbuild and it seems to run. I think I packaged hello successfully 
haha ;-)


Following your hint and am now cloning a simple python tool 
('rename-flac' seems appropriate for learning). One question: Often I 
read the workflow is to first create a source package and then the 
binary package from it. Is that true for python tools as well? I mean 
there is no "source/binary" in this sense. And this does not seem to be 
a source package but a regular package I would install as user using 
apt: https://salsa.debian.org/python-team/applications/rename-flac.git





Also some other questions arise as my tool has a dependency that I am
pretty sure is not in debian already. the official discogs_client - a
python sdk to access discogs.com rest api, and actually I forked and
extended it. pull-request to official repo is pending:
https://github.com/JOJ0/discogs_client

Well, if you need it for your app, then it must be packaged in Debian as
well if you intend to depend on it.


I guess I knew the answer already ;-) IMHO it's a shame that Discogs is 
not responsive at all to pull-requests in the last ~1-2 years, I would 
rather prefer if I package the official discogs_client (really 
maintained by discogs.com themselves) but to complete my task, I will 
just package my fork because it just works and has two features that I 
just require.


I suppose they will stay unresponsive even if I ask them that I would 
like to package them for Debian. I don't know what there problem is, 
either they are not really interested in a feature-complete python sdk 
or they just don't have enough time/manpower for it. Recently it seems 
they focus on their mobile app a lot (needed work, that buggy piece 
o.. ;-)))


Anyway, tell me what you think: First package my fork to get things 
done, then ask discogs.com if they want to be in 

Re: Issues running pytest from within .pybuild

2020-05-18 Thread Christian Kastner
On 2020-05-18 01:30, Scott Kitterman wrote:
> On Sunday, May 17, 2020 6:26:11 PM EDT Christian Kastner wrote:
>> From the GitHub issue, it seems as if the current practice of testing
>> from within .pybuild is not supported by pytest, but I'm inclined to
>> believe that it is my approach that is flawed.
>>
>> [1] https://github.com/pytest-dev/pytest/issues/7223
> 
> I think this would only happen if sys.path had been extended to include the 
> main source directory.  You may need to cd to $SRCDIR/.pybuild/.../sklearn 
> before calling pytest or something may be inserting the source directory into 
> sys.path.

All of this is being delegated to pybuild, by calling it with the
--test-pytest option. It takes care of cd'ing to the build dir before
calling pytest. The only customization is using --pytest-args to pass
some additional options to exclude some tests.

Hence why I'm puzzled to see this.

Manually cd'ing into the directory and running pytest (to test whether
pybuild is doing something funny) doesn't help.

It really looks as if this is a pytest issue, but on the GitHub issue
linked above, the assessment was "It's a little weird to discover tests
from an ephemeral build dir". Seeing as doing this is the standard
practice for pybuild, I thought it best to check back here.

Christian



Re: packaging DiscoDOS - a cli tool for vinyl DJs

2020-05-18 Thread Nicolas Chauvat
Hi List,

On Sat, May 16, 2020 at 05:32:30PM +0200, Vincent Bernat wrote:
> We still have some things better than Ubuntu:
>  - not converting everything to Snaps

Could the fact that Ubuntu is "converting everything to Snaps" impact
the current policy that "If someone tries to upload a NEW package,
they're always told to go to Debian." ?

In other words, could the contribution from Ubuntu to Debian
diminishes because more effort is put on Snaps and less effort on
improving upstream Debian packages ?

[I hope this is not too off-topic for debian-python, feel free to
point me to an archived thread somewhere else if you know one].

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances