Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8814 > unrolled thread

Wrong package name python-jwt

Started byCornelius Kölbel <cornelius.koelbel@netknights.it>
First post2016-08-29 12:50 +0200
Last post2016-08-29 13:40 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Wrong package name python-jwt Cornelius Kölbel <cornelius.koelbel@netknights.it> - 2016-08-29 12:50 +0200
    Re: Wrong package name python-jwt Piotr Ożarowski <piotr@debian.org> - 2016-08-29 12:50 +0200
      Re: Wrong package name python-jwt Cornelius Kölbel <cornelius.koelbel@netknights.it> - 2016-08-29 13:10 +0200
        Re: Wrong package name python-jwt Filip Pytloun <filip@pytloun.cz> - 2016-08-29 13:20 +0200
          Re: Wrong package name python-jwt Cornelius Kölbel <cornelius.koelbel@netknights.it> - 2016-08-29 14:30 +0200
        Re: Wrong package name python-jwt Piotr Ożarowski <piotr@debian.org> - 2016-08-29 13:40 +0200

#8814 — Wrong package name python-jwt

FromCornelius Kölbel <cornelius.koelbel@netknights.it>
Date2016-08-29 12:50 +0200
SubjectWrong package name python-jwt
Message-ID<sbsiB-6dl-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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.koelbel@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

[toc] | [next] | [standalone]


#8815

FromPiotr Ożarowski <piotr@debian.org>
Date2016-08-29 12:50 +0200
Message-ID<sbsiB-6dl-15@gated-at.bofh.it>
In reply to#8814
[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

[toc] | [prev] | [next] | [standalone]


#8816

FromCornelius Kölbel <cornelius.koelbel@netknights.it>
Date2016-08-29 13:10 +0200
Message-ID<sbsBX-6z7-21@gated-at.bofh.it>
In reply to#8815

[Multipart message — attachments visible in raw view] — view raw

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.koelbel@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

[toc] | [prev] | [next] | [standalone]


#8817

FromFilip Pytloun <filip@pytloun.cz>
Date2016-08-29 13:20 +0200
Message-ID<sbsLE-6Cn-35@gated-at.bofh.it>
In reply to#8816

[Multipart message — attachments visible in raw view] — view raw

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.koelbel@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
> 


[toc] | [prev] | [next] | [standalone]


#8819

FromCornelius Kölbel <cornelius.koelbel@netknights.it>
Date2016-08-29 14:30 +0200
Message-ID<sbtRo-7g9-23@gated-at.bofh.it>
In reply to#8817

[Multipart message — attachments visible in raw view] — view raw

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.koelbel@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

[toc] | [prev] | [next] | [standalone]


#8818

FromPiotr Ożarowski <piotr@debian.org>
Date2016-08-29 13:40 +0200
Message-ID<sbt4Z-6IF-11@gated-at.bofh.it>
In reply to#8816
[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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web