Re: Packaging python-xrayutilities

2019-03-21 Thread Dmitry Shachnev
On Thu, Mar 21, 2019 at 02:36:01PM +0300, Dmitry Shachnev wrote:
> Hi Marie!

Perhaps this should have been ‘Hi Alexandre’. Sorry if I got this wrong.

--
Dmitry Shachnev


signature.asc
Description: PGP signature


Re: Packaging python-xrayutilities

2019-03-21 Thread Dmitry Shachnev
Hi Marie!

On Thu, Mar 21, 2019 at 10:09:22AM +, MARIE Alexandre wrote:
> Hello,
>
> I'm still working on the package python-xrayutilities for debian.
>
> I've come to a point where the package can be built but when generating the 
> doc,
> lintian comes with a bunch of privacy-generic-breach tags like this :
>
> W: python-xrayutilities-doc: privacy-breach-generic [...]
> (https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=tex-ams-mml_htmlormml)
>
> I have tried to add in debian/rules this :
> override_dh_installdocs:
> ln -s /usr/share/javascript/mathjax/MathJax.js 
> $(CURDIR)/doc/build/html/_static/MathJax.js
> find doc/build/html -name "*.html" -exec sed -i 
> "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" {} 
> \;
> dh_installdocs -ppython-xrayutilities-doc doc/build/html
>
> But it does not seem to work.

Don’t do anything in debian/rules. Instead, patch your conf.py to
have a line like this:

  mathjax_path = 
'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

This way the files produced by Sphinx will have the right path, and there
won’t be any need for making symlinks.

--
Dmitry Shachnev
(maintainer of both sphinx and mathjax packages)


signature.asc
Description: PGP signature


RE:Packaging python-xrayutilities

2019-03-21 Thread MARIE Alexandre
> Hi,
> 
> I didn't have time to look into issue, but may be looking on how other
> people solve similar problems will give you a hint:
>
>  https://codesearch.debian.net/search?q=path%3Adebian%2Frules+mathjax
>
> Best,
> Alex

Hello,
Thanks for the hint, 
this is where I am looking to deal with the issue, 
but there are things that I don't understand,
thus I'm asking it here.

Cheers,

Alex



Re: Packaging python-xrayutilities

2019-03-21 Thread Alex Mestiashvili
On 3/21/19 11:44 AM, MARIE Alexandre wrote:
>> Is there really the leading tab only on the second line?
> 
> In fact I am trying to figure out where should I install the doc, and how 
> could I avoid the lintian tag : privacy-breach-generic.
> 
>> What exactly doesn't seem to work?
> 
> The code I paste before wasn't working because the path was not good, I 
> should have cleaned that before, sorry.
> 
> First I have this overrided to use the right method : 
> _
> override_dh_installdocs-indep:
>   PYTONPATH=$(CURDIR)/debian python3 setup.py build_doc
>   dh_installdocs
> _
> 
> Then I want to deal with mathjax causing the privacy-breach-generic.
> But I really don't know how to do that.
> 
> Cheers,
> 
> Alex
> 
> 

Hi,

I didn't have time to look into issue, but may be looking on how other
people solve similar problems will give you a hint:

 https://codesearch.debian.net/search?q=path%3Adebian%2Frules+mathjax

Best,
Alex



RE:Packaging python-xrayutilities

2019-03-21 Thread MARIE Alexandre
> Wild guessing: The files to be changed might reside in debian/tmp - thus
>
> 
> find debian ...
> 
> could be the solution.

I am trying to do so, thanks for your response.

Cheers,

Alex



RE:Packaging python-xrayutilities

2019-03-21 Thread MARIE Alexandre
> Is there really the leading tab only on the second line?

In fact I am trying to figure out where should I install the doc, and how could 
I avoid the lintian tag : privacy-breach-generic.

> What exactly doesn't seem to work?

The code I paste before wasn't working because the path was not good, I should 
have cleaned that before, sorry.

First I have this overrided to use the right method : 
_
override_dh_installdocs-indep:
PYTONPATH=$(CURDIR)/debian python3 setup.py build_doc
dh_installdocs
_

Then I want to deal with mathjax causing the privacy-breach-generic.
But I really don't know how to do that.

Cheers,

Alex




Re: Packaging python-xrayutilities

2019-03-21 Thread Andreas Tille
On Thu, Mar 21, 2019 at 03:23:52PM +0500, Andrey Rahmatullin wrote:
> On Thu, Mar 21, 2019 at 10:09:22AM +, MARIE Alexandre wrote:
> > override_dh_installdocs:
> > ln -s /usr/share/javascript/mathjax/MathJax.js 
> > $(CURDIR)/doc/build/html/_static/MathJax.js
> > find doc/build/html -name "*.html" -exec sed -i 
> > "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" 
> > {} \;
> > dh_installdocs -ppython-xrayutilities-doc doc/build/html
> Is there really the leading tab only on the second line?
> 
> > But it does not seem to work.
> What exactly doesn't seem to work?

Wild guessing: The files to be changed might reside in debian/tmp - thus


find debian ...

could be the solution.

Kind regards

 Andreas.

-- 
http://fam-tille.de



Re: Packaging python-xrayutilities

2019-03-21 Thread Andrey Rahmatullin
On Thu, Mar 21, 2019 at 10:09:22AM +, MARIE Alexandre wrote:
> override_dh_installdocs:
> ln -s /usr/share/javascript/mathjax/MathJax.js 
> $(CURDIR)/doc/build/html/_static/MathJax.js
>   find doc/build/html -name "*.html" -exec sed -i 
> "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" {} 
> \;
>   dh_installdocs -ppython-xrayutilities-doc doc/build/html
Is there really the leading tab only on the second line?

> But it does not seem to work.
What exactly doesn't seem to work?

-- 
WBR, wRAR


signature.asc
Description: PGP signature


RE:Packaging python-xrayutilities

2019-03-21 Thread MARIE Alexandre
Hello,

I'm still working on the package python-xrayutilities for debian.

I've come to a point where the package can be built but when generating the doc,
lintian comes with a bunch of privacy-generic-breach tags like this :

W: python-xrayutilities-doc: privacy-breach-generic 
usr/share/doc/python-xrayutilities/html/_modules/index.html 

Re: Please enable me pushing to python-team/applications

2019-03-21 Thread Andreas Tille
On Thu, Mar 21, 2019 at 09:22:05AM +0100, W. Martin Borgert wrote:
> On 2019-03-21 00:47, Thomas Goirand wrote:
> > Can't you guys just simply give write access to Andreas? What's the
> > issue? Why is it taking so long? This really give the feeling the "team"
> > is still very much dysfunctional,
> 
> Maybe two, three people more can get "owner" permissions?

According to

   
https://salsa.debian.org/groups/python-team/applications/-/group_members?sort=access_level_desc

there are five owners and at least three of them are very active here on
this list (according to my perception).  I thinks that should be qualify
for "sufficient manpower" - but I might be wrong and misinterpret the
ownership in this subteam.

Kind regards

Andreas. 

-- 
http://fam-tille.de



Re: Please enable me pushing to python-team/applications

2019-03-21 Thread W. Martin Borgert
On 2019-03-21 00:47, Thomas Goirand wrote:
> Can't you guys just simply give write access to Andreas? What's the
> issue? Why is it taking so long? This really give the feeling the "team"
> is still very much dysfunctional,

Maybe two, three people more can get "owner" permissions?