Re: Sympy 0.7.2

2012-11-12 Thread Thomas Kluyver
Returning to the original topic: I've now svn-injected python3-sympy [1],
and successfully built it in a PPA [2].

[1] http://anonscm.debian.org/viewvc/python-modules/packages/python3-sympy/
[2] https://launchpad.net/~takluyver/+archive/python3

Thanks,
Thomas


On 8 November 2012 13:32, Jakub Wilk  wrote:

> * Dmitry Shachnev , 2012-10-29, 14:47:
>
>> 2. dh_sphinxdoc should handle URLs starting with a protocol name
>> correctly (so that it won't complain about .../html/file:///usr/share/**
>> javascript/mathjax/MathJax.js?**config=TeX-AMS_HTML-full missing)
>>
>
> This is now fixed in svn.
>
>
>  3. It would be also good if dh_sphinxdoc stripped everything after ?
>> character.
>>
>
> Ditto.
>
> --
> Jakub Wilk
>
>
>
> --
> To UNSUBSCRIBE, email to 
> debian-python-REQUEST@lists.**debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/**20121108133234.GA1777@jwilk.**net
>
>


Re: Sympy 0.7.2

2012-11-08 Thread Jakub Wilk

* Dmitry Shachnev , 2012-10-29, 14:47:
2. dh_sphinxdoc should handle URLs starting with a protocol name 
correctly (so that it won't complain about 
.../html/file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_HTML-full 
missing)


This is now fixed in svn.

3. It would be also good if dh_sphinxdoc stripped everything after ? 
character.


Ditto.

--
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/20121108133234.ga1...@jwilk.net



Re: Sympy 0.7.2

2012-10-29 Thread Dmitry Shachnev
On Mon, Oct 29, 2012 at 10:45 PM, Dmitry Shachnev  wrote:
> Removing "file://" (and keeping only /absolute/path) should work as
> far as libjs-mathjax is installed on the server (and the permissions
> are set correctly). In this case, dh_sphinxdoc should handle absolute
> paths correctly. At least, you can make the check not critical (print
> a warning and continue).

(just to make sure I am understood correctly)

s/permissions/links from wwwroot to actual files and permissions/

--
Dmitry Shachnev


-- 
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/CAKimPHVDarqQnoAxqb7L2OSbAOJi0kaCwNSwz11L=x6pfvw...@mail.gmail.com



Re: Sympy 0.7.2

2012-10-29 Thread Dmitry Shachnev
On Mon, Oct 29, 2012 at 9:38 PM, Jakub Wilk  wrote:
> Yeah, that's a bug. You can work around it by passing "-Xfile:/" to
> dh_sphinxdoc.
>
> However, I wonder if this is a correct approach. If /usr/share/doc/ was
> served via an HTTP server, a web browser wouldn't load that file, would it?

Removing "file://" (and keeping only /absolute/path) should work as
far as libjs-mathjax is installed on the server (and the permissions
are set correctly). In this case, dh_sphinxdoc should handle absolute
paths correctly. At least, you can make the check not critical (print
a warning and continue).

--
Dmitry Shachnev


-- 
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/CAKimPHUPEXgOd5K-pY0TRYDY+z4DwFaiJO35=yhsha3u1zx...@mail.gmail.com



Re: Sympy 0.7.2

2012-10-29 Thread Jakub Wilk

* Dmitry Shachnev , 2012-10-29, 14:47:
2. dh_sphinxdoc should handle URLs starting with a protocol name 
correctly (so that it won't complain about 
.../html/file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_HTML-full 
missing)


Yeah, that's a bug. You can work around it by passing "-Xfile:/" to 
dh_sphinxdoc.


However, I wonder if this is a correct approach. If /usr/share/doc/ was 
served via an HTTP server, a web browser wouldn't load that file, would 
it?


3. It would be also good if dh_sphinxdoc stripped everything after ? 
character.


Right. Added to my todo list, too.

--
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/20121029173823.ga8...@jwilk.net



Re: Sympy 0.7.2

2012-10-29 Thread Dmitry Shachnev
Yes, that should be a one-line change, but it requires dh_sphinxdoc's
side to be fixed first.

Please also note that Debian experimental has mathjax 2.0 (I'm
planning to upload 2.1 this week) while wheezy/sid has 1.1 which is
quite outdated.

--
Dmitry Shachnev

On Mon, Oct 29, 2012 at 3:11 PM, Thomas Kluyver  wrote:
> On 29 October 2012 10:45, Dmitry Shachnev  wrote:
>>
>> 1. You should use the packaged version of libjs-mathjax (and add a
>> build-dependency on it);
>
>
> Should I patch the location in conf.py? Is
> file:///usr/share/javascript/mathjax/MathJax.js the correct URL to use?
>
> Thanks,
> Thomas


-- 
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/CAKimPHVxSbA_7tBv6pTcZq0-JCWQ=fs5dguEMhxgU=4qse6...@mail.gmail.com



Re: Sympy 0.7.2

2012-10-29 Thread Dmitry Shachnev
Hmm, I see at least two issues there:

1. You should use the packaged version of libjs-mathjax (and add a
build-dependency on it);
2. dh_sphinxdoc should handle URLs starting with a protocol name
correctly (so that it won't complain about
.../html/file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_HTML-full
missing)
3. It would be also good if dh_sphinxdoc stripped everything after ? character.

Jakub, can you please look at these issues?

--
Dmitry Shachnev

On Mon, Oct 29, 2012 at 2:37 PM, Thomas Kluyver  wrote:
> On 29 October 2012 04:42, Dmitry Shachnev  wrote:
>>
>> What was the MathJax complain about? I maybe can help you with that.
>
>
> dh_sphinxdoc:
> debian/python-sympy/usr/share/doc/python-sympy/html/https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full
> is missing
>
> Thanks,
> Thomas


-- 
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/CAKimPHWE62EU35i+wyRWBUVuxjmJaDr_5X3DwBaHARBas=s...@mail.gmail.com



Re: Sympy 0.7.2

2012-10-29 Thread Thomas Kluyver
On 29 October 2012 04:42, Dmitry Shachnev  wrote:

> What was the MathJax complain about? I maybe can help you with that.
>

dh_sphinxdoc: debian/python-sympy/usr/share/doc/python-sympy/html/
https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-fullis
missing

Thanks,
Thomas


Re: Sympy 0.7.2

2012-10-28 Thread Dmitry Shachnev
What was the MathJax complain about? I maybe can help you with that.

--
Dmitry Shachnev


On 10/28/12, Thomas Kluyver  wrote:
> On 28 October 2012 08:47, Jakub Wilk  wrote:
>
>>  I assume that building the binary packages from a single source package
 is preferred?

>>> sympy devs reckon we should use the separate release tarballs. Is that
>>> acceptable for Debian?
>>>
>>
>> Yes.
>
>
> OK. I've committed the minor changes (diff attached) to update the Python 2
> package to 0.7.2. I tried to add a -docs package with the Sphinx docs, but
> it complained about Mathjax, so I've left it for now. If that sounds OK,
> could someone upload it?
>
> Also attached is the new packaging for the Python 3 version. This now calls
> the script isympy3. Is it OK to svn-inject this? And is python3-sympy the
> right name to use for the SVN directory?
>
> Thanks,
> Thomas
>


-- 
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/CAKimPHW6spofq5yX6_jWq+T-=xkahjxpr_fodcby-s+9fo+...@mail.gmail.com



Re: Sympy 0.7.2

2012-10-28 Thread Thomas Kluyver
On 28 October 2012 08:47, Jakub Wilk  wrote:

>  I assume that building the binary packages from a single source package
>>> is preferred?
>>>
>> sympy devs reckon we should use the separate release tarballs. Is that
>> acceptable for Debian?
>>
>
> Yes.


OK. I've committed the minor changes (diff attached) to update the Python 2
package to 0.7.2. I tried to add a -docs package with the Sphinx docs, but
it complained about Mathjax, so I've left it for now. If that sounds OK,
could someone upload it?

Also attached is the new packaging for the Python 3 version. This now calls
the script isympy3. Is it OK to svn-inject this? And is python3-sympy the
right name to use for the SVN directory?

Thanks,
Thomas


sympy-0.7.2.patch
Description: Binary data


python3-sympy-debianpackaging.tar.gz
Description: GNU Zip compressed data


Re: Sympy 0.7.2

2012-10-28 Thread Jakub Wilk

* Thomas Kluyver , 2012-10-28, 08:41:
I assume that building the binary packages from a single source 
package is preferred?
sympy devs reckon we should use the separate release tarballs. Is that 
acceptable for Debian?


Yes.

--
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/20121028084733.ga3...@jwilk.net



Re: Sympy 0.7.2

2012-10-28 Thread Thomas Kluyver
On Oct 25, 2012 6:31 PM, "Thomas Kluyver"  wrote:
> I assume that building the binary packages from a single source
> package is preferred?

sympy devs reckon we should use the separate release tarballs. Is that
acceptable for Debian?

Thomas


Sympy 0.7.2

2012-10-25 Thread Thomas Kluyver
The attached patch is a first stab at packaging SymPy 0.7.2, which
supports Python 3. There's some polishing to be done, such as adding
an isympy3 script, but it at least builds.

I assume that building the binary packages from a single source
package is preferred? The upstream releases on Google Code and PyPI
have separate py2/py3 tarballs, and they don't include the conversion
script. So I've used the tarball from the github tag as the source. I
also had to patch the conversion script, which assumes it's working
inside a git repository. I've raised an issue upstream about this.

I'm still not sure of the protocol, so I thought I'd bring it up here
first. Let me know if I should commit the changes to the DPMT SVN.

Thanks,
Thomas


sympy-0.7.2-and-py3.patch
Description: Binary data