Python 3 package build dep on Python 2?

2014-02-02 Thread Iain R. Learmonth
Hi,

I'm packaging a Python module for Debian and lintian is giving the message:

E: python3-fitbitscraper source: missing-python-build-dependency

Should a Python 3 only module have a build dependency on Python 2?

When I tried adding it, I ended up with compiled bytecode in the 2.7
dist-packages folder, which definitely shouldn't be there.

The source for the package can be found at:

http://anonscm.debian.org/gitweb/?p=debian-med/python3-fitbitscraper.git

Thanks,
Iain.

-- 
urn:x-human:Iain R. Learmonth
http://iain.learmonth.me/
mailto:i...@fsfe.org
xmpp:i...@jabber.fsfe.org
tel:+447875886930

GPG Fingerprint: 1F72 607C 5FF2 CCD5 3F01 600D 56FF 9EA4 E984 6C49
Please verify out-of-band before trusting with sensitive information.

[[[ To any GCHQ or other security service agents reading my email: ]]]
[[[ Please consider if any professional body code of conduct to]]]
[[[ which you subscribe requires you to follow Snowden's example.  ]]]
[[[ Your professional membership, chartered or incorporated status ]]]
[[[ may be at risk.]]]



signature.asc
Description: OpenPGP digital signature


Re: Python 3 package build dep on Python 2?

2014-02-02 Thread Piotr Ożarowski
Hi,

[Iain R. Learmonth, 2014-02-02]
> I'm packaging a Python module for Debian and lintian is giving the message:
> 
> E: python3-fitbitscraper source: missing-python-build-dependency
> 
> Should a Python 3 only module have a build dependency on Python 2?

you're using python (2.X) in debian/rules line 8, so lintian is right
about missing python build dependency

You most probably want to remove this line and set
PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/python3-fitbitscraper/
instead

PS you probably also want to change Architecture to all
-- 
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


signature.asc
Description: Digital signature


Re: Python 3 package build dep on Python 2?

2014-02-02 Thread Iain R. Learmonth
On 02/02/14 19:32, Piotr Ożarowski wrote:
> [Iain R. Learmonth, 2014-02-02]
>> I'm packaging a Python module for Debian and lintian is giving the message:
>>
>> E: python3-fitbitscraper source: missing-python-build-dependency
>>
>> Should a Python 3 only module have a build dependency on Python 2?
> 
> you're using python (2.X) in debian/rules line 8, so lintian is right
> about missing python build dependency
> 

You are observant. I totally missed that. Thanks.

> You most probably want to remove this line and set
> PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/python3-fitbitscraper/
> instead
> 

That works perfectly! The Python packaging page on the wiki didn't have
that. Is that a cue for dh_python3?

> PS you probably also want to change Architecture to all
> 

Done.

Thanks for your help. This is my first package and I believe it's ready now.

Iain.

-- 
urn:x-human:Iain R. Learmonth
http://iain.learmonth.me/
mailto:i...@fsfe.org
xmpp:i...@jabber.fsfe.org
tel:+447875886930

GPG Fingerprint: 1F72 607C 5FF2 CCD5 3F01 600D 56FF 9EA4 E984 6C49
Please verify out-of-band before trusting with sensitive information.

[[[ To any GCHQ or other security service agents reading my email: ]]]
[[[ Please consider if any professional body code of conduct to]]]
[[[ which you subscribe requires you to follow Snowden's example.  ]]]
[[[ Your professional membership, chartered or incorporated status ]]]
[[[ may be at risk.]]]



signature.asc
Description: OpenPGP digital signature


Re: Python 3 package build dep on Python 2?

2014-02-02 Thread Piotr Ożarowski
[Iain R. Learmonth, 2014-02-02]
> > You most probably want to remove this line and set
> > PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/python3-fitbitscraper/
> > instead
> > 
> 
> That works perfectly! The Python packaging page on the wiki didn't have
> that. Is that a cue for dh_python3?

If you meant https://wiki.debian.org/Python/LibraryStyleGuide then it's
for libraries... and since binary package name is python3-fitbitscraper,
installing files to a private directory is not a good idea (we do that
fro applications only, if you meant to install it as a public library,
just remove PYBUILD_INSTALL... line)

and yes, as someone pointed out recently, I'm not that good at writing
documentation. I'd be happy to answer all questions from someone who
wants to improve the docs, though.
-- 
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


signature.asc
Description: Digital signature


Re: Python 3 package build dep on Python 2?

2014-02-02 Thread Iain R. Learmonth
On 02/02/14 20:38, Piotr Ożarowski wrote:
> [Iain R. Learmonth, 2014-02-02]
>> That works perfectly! The Python packaging page on the wiki didn't have
>> that. Is that a cue for dh_python3?
> 
> If you meant https://wiki.debian.org/Python/LibraryStyleGuide then it's
> for libraries... and since binary package name is python3-fitbitscraper,
> installing files to a private directory is not a good idea (we do that
> fro applications only, if you meant to install it as a public library,
> just remove PYBUILD_INSTALL... line)
> 

That makes sense. I've checked in the deb and everything seems to be in
the right place.

> and yes, as someone pointed out recently, I'm not that good at writing
> documentation. I'd be happy to answer all questions from someone who
> wants to improve the docs, though.
> 

I will be packaging two more Python packages in the next couple of
weeks. If I feel I understand it well enough after that, I may take a
look at the docs with a view to improving them.

Thanks,
Iain.

-- 
urn:x-human:Iain R. Learmonth
http://iain.learmonth.me/
mailto:i...@fsfe.org
xmpp:i...@jabber.fsfe.org
tel:+447875886930

GPG Fingerprint: 1F72 607C 5FF2 CCD5 3F01 600D 56FF 9EA4 E984 6C49
Please verify out-of-band before trusting with sensitive information.

[[[ To any GCHQ or other security service agents reading my email: ]]]
[[[ Please consider if any professional body code of conduct to]]]
[[[ which you subscribe requires you to follow Snowden's example.  ]]]
[[[ Your professional membership, chartered or incorporated status ]]]
[[[ may be at risk.]]]



signature.asc
Description: OpenPGP digital signature


Bug#737485: RFP: python-django-localflavor -- Country-specific Django helpers

2014-02-02 Thread Marcelo Jorge Vieira
Package: wnpp
Severity: wishlist
X-Debbugs-CC: debian-python@lists.debian.org

* Package name: python-django-localflavor
  Version : 1.0
  Upstream Author : Django Software Foundation
* URL : http://github.com/cowboy/grunt/
* License : BSD
  Programming Lang: Python
  Description : Country-specific Django helpers

Django's "localflavor" packages offer additional functionality for particular 
countries or cultures. For example, these might include form fields for your 
country's postal codes, phone number formats or government ID numbers.

This code used to live in Django proper -- in django.contrib.localflavor -- but 
was separated into a standalone package in Django 1.5 to keep the framework's 
core clean.


Cheers,

-- 
Marcelo Jorge Vieira
xmpp:me...@jabber-br.org
http://metaldot.alucinados.com


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