Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#870906: ITP: pynmea2 - pynmea2 is a python library for the NMEA 0183 protocol

60 views
Skip to first unread message

Joachim Langenbach

unread,
Aug 6, 2017, 6:00:03 AM8/6/17
to
Package: wnpp
Severity: wishlist
Version: 1.8.0
URL: https://github.com/Knio/pynmea2 or https://pypi.debian.net/pynmea2
License: MIT
Description: You can parse individual NMEA sentences and you can create
NMEASentence objects from your data. Also NMEA 0183 data streams could be
processed.

Herbert Fortes

unread,
Sep 5, 2017, 4:20:05 PM9/5/17
to
Hi Joachim Langenbach,

I was checking the Debian package you did. And
I will try to help you.

First, there is a new version of pynmea2 - 1.9.0.
The version on mentors is 1.8.0.

Debhelper should be 10, not 9.

Standards-Version is out-of-date

Why debian/pynmea2-doc.* files? They are not
been used.

The package does not build two times in a row.
Please clean *egg-info/SOURCES.txt

I liked not build Python 2 version. The file
'debian/rules' can have some '#' lines removed.

Please, put version '1.9.0' on mentors and let
me known when you are ready.



Regards,
Herbert

Joachim Langenbach

unread,
Sep 18, 2017, 1:10:03 PM9/18/17
to
Hi Herbert,

I managed to upload the version 1.9.0 and (hopefully) fixed your hints. May you
have a look at it?

Regards,

Joachim

P.s.: The mentors url is https://mentors.debian.net/package/pynmea2
signature.asc

Herbert Fortes

unread,
Sep 18, 2017, 3:10:03 PM9/18/17
to
Hi Joachim Langenbach,

> Hi Herbert,
>
> I managed to upload the version 1.9.0 and (hopefully) fixed your hints. May you
> have a look at it?
>

I will look at it tomorrow morning.



Regards,
Herbert

Herbert Fortes

unread,
Sep 19, 2017, 8:20:04 AM9/19/17
to
Hi Joachim Langenbach,


> > Hi Herbert,
> >
> > I managed to upload the version 1.9.0 and (hopefully) fixed your hints. May you
> > have a look at it?
> >

There are some adjusts to do:

debian/compat:

    - instead of '9' put '10' (number only)

debian/control:

     - Build-Depends entry: python3-all-dev can be removed.
       'cowbuilder' builds the package without it.
     - lintian needs an update. You can put '4.1.0'.
     - Testsuite can be removed. There is no 'debian/tests' dir.
     - Architecture: should be 'all'. (any is for programs like C, C++)
     - Depends entry: '${shlibs:Depends}' can be removed.
     - Provides entry can be removed.

debian/copyright:

    - Debian entry is missing. The file should look like this:

 Files: *
 Copyright: (C) 2013-2017 Tom Flanagan <t...@zkpq.ca>
 License: MIT

 Files: debian/*
 Copyright: 2017 Your-name-here <em...@here.something>
 License: Choose-one (usually upstream choice)

 License: MIT
 Permission is hereby granted, free of charge, to any person obtaining
 blababla

 License: (If you choose something different add here)
 blablabla
 a copy of this software and associated documentation files


debian/rules:
 
    - I said about cleaning SOÛRCES.txt. You did right. But
      I learned something that looks better. Instead of an
      override_dh_auto_clean, 'egg-info' can be ignored if
      we use 'debian/source/options' file. One line in the
      file:
       
         extend-diff-ignore="^[^/]+\.egg-info/"
 
      Just in case, please see:
      https://anonscm.debian.org/cgit/debian-science/packages/python-meshio.git/tree/debian/source/options


That's it. Let me know when you when the package
is ready.



regards,
Herbert

Joachim Langenbach

unread,
Sep 20, 2017, 11:10:04 AM9/20/17
to
Hi Herbert,

thanks for your hints. Hopefully this time, I got all of them ;-) I have some
questions related to some of your hints:

> There are some adjusts to do:
>
> debian/compat:
>
> - instead of '9' put '10' (number only)
>
> debian/control:
>
> - Build-Depends entry: python3-all-dev can be removed.
> 'cowbuilder' builds the package without it.
> - lintian needs an update. You can put '4.1.0'.

I only found 4.0.1 (at https://www.debian.org/doc/debian-policy/upgrading-checklist.html). Are there any other sources to find the most recent standards
version? However, I used 4.1.0 in my new upload.

> - Testsuite can be removed. There is no 'debian/tests' dir.

I added the testsuite, because it should run the python tests included in
pynmea2 sources. Did I understand testsuite the wrong way here? (Removed it in
my upload)

Regards,

Joachim
signature.asc

Herbert Fortes

unread,
Sep 20, 2017, 2:50:02 PM9/20/17
to
Hi Joachim Langenbach,


>
> thanks for your hints. Hopefully this time, I got all of them ;-) I have some
> questions related to some of your hints:
>
>> There are some adjusts to do:
>>
>> debian/compat:
>>
>> - instead of '9' put '10' (number only)
>>
>> debian/control:
>>
>> - Build-Depends entry: python3-all-dev can be removed.
>> 'cowbuilder' builds the package without it.
>> - lintian needs an update. You can put '4.1.0'.
>
> I only found 4.0.1 (at https://www.debian.org/doc/debian-policy/upgrading-checklist.html). Are there any other sources to find the most recent standards
> version? However, I used 4.1.0 in my new upload.

Read here:
https://lists.debian.org/debian-devel-announce/2017/08/msg00007.html


>
>> - Testsuite can be removed. There is no 'debian/tests' dir.
>
> I added the testsuite, because it should run the python tests included in
> pynmea2 sources. Did I understand testsuite the wrong way here? (Removed it in
> my upload)

autopkgtest is a CI (Debian Continuous Integration). Read about it here:

https://ci.debian.net/doc/file.TUTORIAL.html

I honestly do not remember about the tests during build of the package
you did. But the build system "Automatically detects the command to run
the test suite."

Read here:
https://wiki.debian.org/Python/LibraryStyleGuide

I will 'dget' your package.



Regards,
Herbert

Herbert Fortes

unread,
Sep 21, 2017, 9:50:03 AM9/21/17
to
Hi Joachim Langenbach,


> Hi Herbert,
>
> thanks for your hints. Hopefully this time, I got all of them ;-) I have some
> questions related to some of your hints:
>
>> There are some adjusts to do:
>>
>> debian/compat:
>>
>> - instead of '9' put '10' (number only)
>>
>> debian/control:
>>
>> - Build-Depends entry: python3-all-dev can be removed.
>> 'cowbuilder' builds the package without it.
>> - lintian needs an update. You can put '4.1.0'.
>
> I only found 4.0.1 (at https://www.debian.org/doc/debian-policy/upgrading-checklist.html). Are there any other sources to find the most recent standards
> version? However, I used 4.1.0 in my new upload.
q>
>> - Testsuite can be removed. There is no 'debian/tests' dir.
>
> I added the testsuite, because it should run the python tests included in
> pynmea2 sources. Did I understand testsuite the wrong way here? (Removed it in
> my upload)

The upstream is not using unittest, so this happens:

dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd /home/qemu/sponsor/pynmea2-1.9.0/.pybuild/pythonX.Y_3.6/build; python3.6 -m unittest discover -v

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
I: pybuild base:184: cd /home/qemu/sponsor/pynmea2-1.9.0/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK


As the upstream is using pytest it is necessary to put in debian/rules:

export PYBUILD_TEST_PYTEST = 1

Then we have:

dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd /home/qemu/sponsor/pynmea2-1.9.0/.pybuild/pythonX.Y_3.6/build; python3.6 -m pytest test
============================= test session starts ==============================
platform linux -- Python 3.6.2, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
rootdir: /home/qemu/sponsor/pynmea2-1.9.0, inifile:
collected 54 items

test/test_file.py .
test/test_proprietary.py ..............
test/test_pynmea.py ..................
test/test_stream.py .....
test/test_types.py ................

========================== 54 passed in 0.36 seconds ===========================
I: pybuild base:184: cd /home/qemu/sponsor/pynmea2-1.9.0/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest test
============================= test session starts ==============================
platform linux -- Python 3.5.4, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
rootdir: /home/qemu/sponsor/pynmea2-1.9.0, inifile:
collected 54 items

test/test_file.py .
test/test_proprietary.py ..............
test/test_pynmea.py ..................
test/test_stream.py .....
test/test_types.py ................

========================== 54 passed in 0.36 seconds ===========================


I think this is the last fix. :)



Regards,
Herbert

Joachim Langenbach

unread,
Sep 22, 2017, 1:50:03 AM9/22/17
to
Good Morning,

fixed it. Many thanks for your help and hints!

Regards,

Joachim
signature.asc

Herbert Fortes

unread,
Sep 22, 2017, 9:10:03 AM9/22/17
to
Hi Joachim Langenbach,


I just uploaded the package. Please be patient
because it will go to NEW[0]. FTP Master Team will
check everything carefully.

I am sorry that I did not help with autopkgtest
(CI). I just read about it once and have to
understand better how to deal with it.

Thanks for helping Debian!

[0] - https://ftp-master.debian.org/new.html



Regards,
Herbert

Herbert Fortes

unread,
Nov 12, 2017, 1:40:02 PM11/12/17
to
Hi,

As Dererk <der...@debian.org> said, pynmea2 is
in Debian already.

https://packages.debian.org/python-nmea2

This bug (ITP and RFS) can be closed by email:

bugnumb...@bugs.debian.org



Regards,
Herbert
0 new messages