Wrong package name python-jwt

2016-08-29 Thread Cornelius Kölbel
Hello list,

I have a problem with the naming of a python package.

My python project uses the python package
PyJWT. https://github.com/jpadilla/pyjwt
Thus I add 
   install_requires = [...
  "PyJWT>=1.3.0",

in my setup.py of my python project.

Now I am also building a debian package from my project.
My rules looks like this:

        dh $@ --with python2 --buildsystem=python_distutils

The Depends in my control looks like this:
Depends: ${misc:Depends}, ${python:Depends}, python-flask-migrate,
  python-qrcode, python-netaddr,
  python-pyrad, python-yaml, python-configobj, python-bs4, 
  python-pandas, python-matplotlib, python-ecdsa,
  python-gnupg

Due to ${python:Depends} the dependency python-pyjwt is added.
But: In debian the package is called "python-jwt". But obviously
contains the module by jpadilla.

What is the recommended way to deal with that? Is there a way to
exclude a single package from ${python:Depends}?
Like exclude python-pyjwt and manually Depending python-jwt.

Thanks a lot
Cornelius

-- 
Cornelius Kölbel
cornelius.koel...@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel


signature.asc
Description: This is a digitally signed message part


Re: Wrong package name python-jwt

2016-08-29 Thread Piotr Ożarowski
[Cornelius Kölbel, 2016-08-29]
> Due to ${python:Depends} the dependency python-pyjwt is added.

please add dh-python to Build-Depends and try again
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



Re: Wrong package name python-jwt

2016-08-29 Thread Cornelius Kölbel
Hello Piotr,

thanks a lot. That did the trick.
Please enlighten me. dh-python maps python module names to debian
package names?

Kind regards
Cornelius

Am Montag, den 29.08.2016, 12:47 +0200 schrieb Piotr Ożarowski:
> [Cornelius Kölbel, 2016-08-29]
> > 
> > Due to ${python:Depends} the dependency python-pyjwt is added.
> please add dh-python to Build-Depends and try again
-- 
Cornelius Kölbel
cornelius.koel...@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel



signature.asc
Description: This is a digitally signed message part


Re: Wrong package name python-jwt

2016-08-29 Thread Filip Pytloun
Hello Cornelius,

Pretty much on this topic is explained in dh_python2 man page (find
dependencies)
http://manpages.ubuntu.com/manpages/precise/man1/dh_python2.1.html

And here's a little bit more (but I suppose you already know this doc):
https://wiki.debian.org/Python/LibraryStyleGuide

Filip

On 2016/08/29 13:04, Cornelius Kölbel wrote:
> Hello Piotr,
> 
> thanks a lot. That did the trick.
> Please enlighten me. dh-python maps python module names to debian
> package names?
> 
> Kind regards
> Cornelius
> 
> Am Montag, den 29.08.2016, 12:47 +0200 schrieb Piotr Ożarowski:
> > [Cornelius Kölbel, 2016-08-29]
> > > 
> > > Due to ${python:Depends} the dependency python-pyjwt is added.
> > please add dh-python to Build-Depends and try again
> -- 
> Cornelius Kölbel
> cornelius.koel...@netknights.it
> +49 151 2960 1417
> 
> NetKnights GmbH
> http://www.netknights.it
> Landgraf-Karl-Str. 19, 34131 Kassel, Germany
> Tel: +49 561 3166797, Fax: +49 561 3166798
> 
> Amtsgericht Kassel, HRB 16405
> Geschäftsführer: Cornelius Kölbel
> 




signature.asc
Description: Digital signature


Re: Wrong package name python-jwt

2016-08-29 Thread Piotr Ożarowski
[Cornelius Kölbel, 2016-08-29]
> thanks a lot. That did the trick.
> Please enlighten me. dh-python maps python module names to debian
> package names?

without dh-python in Build-Depends: really old dh_python2 version was
used during build. The old one was guessing package name if it wasn't
found on the system (adding python-jwt to Build-Depends would fix it
too). The newer one uses fallback file only.

.oO( it's time to report bugs against packages that still use old
 dh_python2 and get rid of it ASAP )
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



Re: Wrong package name python-jwt

2016-08-29 Thread Cornelius Kölbel
Hi Piotr, hi Filip,

thanks for your input and explanation.
Kind regards
Cornelius

Am Montag, den 29.08.2016, 13:12 +0200 schrieb Filip Pytloun:
> Hello Cornelius,
> 
> Pretty much on this topic is explained in dh_python2 man page (find
> dependencies)
> http://manpages.ubuntu.com/manpages/precise/man1/dh_python2.1.html
> 
> And here's a little bit more (but I suppose you already know this
> doc):
> https://wiki.debian.org/Python/LibraryStyleGuide
> 
> Filip
> 
> On 2016/08/29 13:04, Cornelius Kölbel wrote:
> > 
> > Hello Piotr,
> > 
> > thanks a lot. That did the trick.
> > Please enlighten me. dh-python maps python module names to debian
> > package names?
> > 
> > Kind regards
> > Cornelius
> > 
> > Am Montag, den 29.08.2016, 12:47 +0200 schrieb Piotr Ożarowski:
> > > 
> > > [Cornelius Kölbel, 2016-08-29]
> > > > 
> > > > 
> > > > Due to ${python:Depends} the dependency python-pyjwt is added.
> > > please add dh-python to Build-Depends and try again
-- 
Cornelius Kölbel
cornelius.koel...@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel



signature.asc
Description: This is a digitally signed message part


Re: Request to join DPMT

2016-08-29 Thread Piotr Ożarowski
[Klaus Zimmermann, 2016-08-18]
> I'd like to join DPMT to maintain the new package cf-python[1].
> 
> My alioth account is zklaus-guest and I have read and agree to the
> policies [2], [3].

welcome :)
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



Re: Request to join DPMT (was: "ITP: python-whitenoise -- static file serving for WSGI applications")

2016-08-29 Thread Piotr Ożarowski
> Turns out the "any DD can write" thing doesn't quite work, or at least I
> couldn't create a new repository. So, please add me to DPMT team on
> Alioth. I have read https://python-modules.alioth.debian.org/policy.html
> and agree with it.

that's after last alioth migration, there's something wrong with ACLs
and nobody knows what...

You're oficially z DPMT member now :)
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



Packaging pytango 9.2.0

2016-08-29 Thread PICCA Frederic-Emmanuel
Hello Guyes,

I am working with Sandor (CC) in order to upgrade the pytango package.
With this new version, the upstream decided to rename the module from PyTango 
to tango

import PyTango -> import tango

The previous package provided these binary packages

python-pytango
python3-pytango

now it seems that we must rename them

python-tango.
python3-tango

now the problem is that in the setup file the project is still pytango

name='pytango',

so when we build a package depending on python-tango (the itango package in 
preparation)

dh_python add a dependency to python-pytango and not python-tango

so my question is what is the proper way to fix this issue ?


Another question about the package, the upstream provide a PyTango.py files 
which allow to still 
import PyTango (for retro compatibility).

when should we put this file ? in the python-tango or in the transition package 
python-pytango or in a python-pytango-legacy ???

does a Provides python-pytango necessary in the python-tango in that case ? 

thanks for your help.

Frederic