Re: RFR: cairosvg -- SVG converter based on Cairo

2012-06-11 Thread Michael Fladischer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Jakub,

thanks for your input!

On 06/08/2012 04:19 PM, Jakub Wilk wrote:
 No, it's not really correct. /usr/bin/cairosvg has currently 
 #!/usr/bin/python2.7 (sic!) shebang, so it won't work out-of-the
 box if only python-ciarosvg is installed.
 
 I would recommend you to get rid of the -common package and use 
 alternatives to manage /usr/bin/cairosvg symlink, that would point 
 either to #!/usr/bin/python or #!/usr/bin/python3 script.

I switched to alternatives. setuptools seem to be responsible for
changing the shebang line in bin/cairosvg. I'm tempted to change it to
#!/usr/bin/python instead of #!/usr/bin/python2.7 but this would
require meddling with the dependencies. But now the binary package
depends on python2.7 while it should also work with python2.6 alone.
Same for python3.2.

 Re fix_setup.patch, what was wrong with the original code?

Running setup.py clean with python3.2 fails:

Traceback (most recent call last):
  File setup.py, line 24, in module
VERSION = re.search(VERSION = '([^']+)', fd.read().strip()).group(1)
  File /usr/lib/python3.2/encodings/ascii.py, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
68: ordinal not in range(128)

 Some dependencies are missing:

I've added them and I'll issue the RFS soon.

Cheers,
- -- 
Michael Fladischer mich...@fladi.at
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/VuQAACgkQeJ3z1zFMUGZHygCdG6igy9a/VmxBetgF/JmBMHcG
H7gAn1OWFj7EtNmjjxZxPfX78lry4C5E
=D/2w
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4fd5b900.7000...@fladi.at



Re: RFR: cairosvg -- SVG converter based on Cairo

2012-06-11 Thread Jakub Wilk

* Michael Fladischer mich...@fladi.at, 2012-06-11, 11:23:
No, it's not really correct. /usr/bin/cairosvg has currently 
#!/usr/bin/python2.7 (sic!) shebang, so it won't work out-of-the box 
if only python-ciarosvg is installed.


I would recommend you to get rid of the -common package and use 
alternatives to manage /usr/bin/cairosvg symlink, that would point 
either to #!/usr/bin/python or #!/usr/bin/python3 script.


I switched to alternatives. setuptools seem to be responsible for 
changing the shebang line in bin/cairosvg.


s/setuptools/distutils/. This package doesn't use setuptools AFAICS 
(which makes me wonder why it build-depends on it...).


I'm tempted to change it to #!/usr/bin/python instead of 
#!/usr/bin/python2.7 but this would require meddling with the 
dependencies.


The dependencies are generated by dh_python{2,3}, so it's a matter of 
fixing shebangs before they are called, isn't it?


This may help:
https://lists.debian.org/debian-python/2011/03/msg00077.html


Re fix_setup.patch, what was wrong with the original code?

Running setup.py clean with python3.2 fails:

Traceback (most recent call last):
 File setup.py, line 24, in module
   VERSION = re.search(VERSION = '([^']+)', fd.read().strip()).group(1)
 File /usr/lib/python3.2/encodings/ascii.py, line 26, in decode
   return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
68: ordinal not in range(128)


Fair enough. It would be nice if the patch header explained that.

One more thing: Vcs-* fields are broken:

$ svn ls -v $(grep-dctrl -ns Vcs-Svn ''  debian/control)
svn: URL 'svn://svn.debian.org/python-modules/packages/cairosvg/trunk' 
non-existent in that revision

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120611101256.ga6...@jwilk.net



RFS: numpydoc/0.4-1 [RFP/ITP 559916]

2012-06-11 Thread Denis Laxalde

Hi,

I am looking for a sponsor for my package numpydoc (see RFP/ITP #559916).

 * Package name: numpydoc
   Version : 0.4
   Upstream Author : Pauli Virtanen and others p...@iki.fi
 * URL : 
https://github.com/numpy/numpy/tree/master/doc/sphinxext

 * License : BSD
   Section : python

It builds the following binary package:

  python-numpydoc-sphinx - Sphinx extension to support docstrings in 
Numpy format


To access further information about this package, please visit the 
following URL:


  http://mentors.debian.net/package/numpydoc

Alternatively, one can download the package with dget using this command:

  dget -x 
http://mentors.debian.net/debian/pool/main/n/numpydoc/numpydoc_0.4-1.dsc


(I'll commit the package into the svn repo as soon as I can.)

Thanks.

--
Denis Laxalde


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4fd6928d.8080...@laxalde.org